blackducksoftware / hub-detect

This is now deprecated. Please see synopsys-detect.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuget inspector fails with null-pointer exception

imbeyondboredom opened this issue · comments

Nuget inspector fails with null-pointer exception

Expected behavior

  • Nuget scanner completes successfully

Actual behavior

  • Nuget scanner fails with a null-pointer exception

Steps to Reproduce

  • I'm trying to get a sample solution file but I'm not sure why it fails. We might have to figure out how to get the file to you all privately

Version

Project Version:

  • 4.3.2
    Language Version:

  • Nuget
    OS:

  • Windows 10 Pro

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] --- ======================================================================================================

commented

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

@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.

@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.

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)

@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

commented

@imbeyondboredom please close if latest version addresses the problem.

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!