blackducksoftware / hub-detect

This is now deprecated. Please see synopsys-detect.
Apache License 2.0
38 stars 39 forks source link

Nuget inspector fails with null-pointer exception #340

Closed imbeyondboredom closed 6 years ago

imbeyondboredom commented 6 years ago

Nuget inspector fails with null-pointer exception

Expected behavior

Version

Project Version:

In particular I would love to learn how you can turn up logging. I tried setting: "logging.level.com.blackducksoftware.integration":"ALL" and saw no change in the log

[10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- ====================================================================================================== [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- Search results [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- ====================================================================================================== [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- C:\BuildAgent\work\37da67b48aae830a [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- APPLIES: NUGET - Solution [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- ====================================================================================================== [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- ====================================================================================================== [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- Preparation for extraction [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- ====================================================================================================== [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- C:\BuildAgent\work\37da67b48aae830a [10:50:52] [Step 1/1] 2018-10-15 08:36:33 ERROR [main] --- FAILED: NUGET - Solution - Exception occured: java.lang.NullPointerException [10:50:52] [Step 1/1] 2018-10-15 08:36:33 INFO [main] --- ======================================================================================================

stavvy-akamen commented 6 years ago

@taikuukaits can you help @imbeyondboredom with the logging? NPE is obviously quite unfortunate, perhaps we can push the new NI soon.

imbeyondboredom commented 6 years ago

@taikuukaits I can provide a sample solution if we can do it privately in some way. Also if there is any way to increase logging that'd be great.

taikuukaits commented 6 years ago

@imbeyondboredom Debug should show an increase in the logs. logging.level.com.blackducksoftware.integration=DEBUG or if you could run it in diagnostic (-d) and attach the diagnostic zip.

taikuukaits commented 6 years ago

It's most likely not able to find a nuget executable. I believe we have improved handling of that scenario in the next version (4.4.0)

imbeyondboredom commented 6 years ago

@taikuukaits That was definitely it. You all can close this if you want but I figured I'd leave it up until 4.4.0 released

stavvy-akamen commented 6 years ago

@imbeyondboredom please close if latest version addresses the problem.

imbeyondboredom commented 6 years ago

We were still having problems but it was related to machine set-up. We finally got it working so I'll close. Thanks so much!