java.lang.NullPointerException

Jenkins JIRA | Pei-Tang Huang | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The help text of "Fortify 360 Server Project Id" described: {code} ... Leaving this field to blank will disable the upload... {code} However, if we enabled the Fortify FPR Publisher (for its wonderful NVS plotting and UNSTABLE checking), fortify360 plugin still shows following stack trace: {code} Uploading FPR to Fortify 360 Server at #################################################################### FortifyClientClassLoader: JarsPath = null Error uploading to F360 Server: java.lang.NullPointerException at java.io.File.<init>(Unknown Source) at org.jvnet.hudson.plugins.fortify360.FortifyClientClassLoader.getInstance(FortifyClientClassLoader.java:79) at org.jvnet.hudson.plugins.fortify360.FPRPublisher.invokeFortifyClient(FPRPublisher.java:263) at org.jvnet.hudson.plugins.fortify360.FPRPublisher.perform(FPRPublisher.java:178) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) at hudson.model.Run.execute(Run.java:1541) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} Can we skip the whole operation? I checked out the source code, and found: {code:java} // if the project ID is not null, then we need to upload the FPR to 360 server if ( null != f360projId && DESCRIPTOR.canUploadToF360() ) { ... } {code} But every time I enable Fortify FPR Publisher from Jenkins job configuration page, the Project Id will be set to 0!

    Jenkins JIRA | 4 years ago | Pei-Tang Huang
    java.lang.NullPointerException
  2. 0

    The help text of "Fortify 360 Server Project Id" described: {code} ... Leaving this field to blank will disable the upload... {code} However, if we enabled the Fortify FPR Publisher (for its wonderful NVS plotting and UNSTABLE checking), fortify360 plugin still shows following stack trace: {code} Uploading FPR to Fortify 360 Server at #################################################################### FortifyClientClassLoader: JarsPath = null Error uploading to F360 Server: java.lang.NullPointerException at java.io.File.<init>(Unknown Source) at org.jvnet.hudson.plugins.fortify360.FortifyClientClassLoader.getInstance(FortifyClientClassLoader.java:79) at org.jvnet.hudson.plugins.fortify360.FPRPublisher.invokeFortifyClient(FPRPublisher.java:263) at org.jvnet.hudson.plugins.fortify360.FPRPublisher.perform(FPRPublisher.java:178) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) at hudson.model.Run.execute(Run.java:1541) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} Can we skip the whole operation? I checked out the source code, and found: {code:java} // if the project ID is not null, then we need to upload the FPR to 360 server if ( null != f360projId && DESCRIPTOR.canUploadToF360() ) { ... } {code} But every time I enable Fortify FPR Publisher from Jenkins job configuration page, the Project Id will be set to 0!

    Jenkins JIRA | 4 years ago | Pei-Tang Huang
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    NullPointerException with incorrect conkeyref

    GitHub | 3 years ago | raducoravu
    java.lang.NullPointerException

  1. linxiaolong 6 times, last 3 weeks ago
  2. ajinkya_w 1 times, last 5 months ago
  3. emmanuelstroem 1 times, last 8 months ago
  4. adawolfs 31 times, last 5 months ago
  5. Diogo Jaym 6 times, last 9 months ago
7 more registered users
20 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at java.io.File.<init>()
  2. Java RT
    File.<init>
    1. java.io.File.<init>(Unknown Source)
    1 frame
  3. org.jvnet.hudson
    FPRPublisher.perform
    1. org.jvnet.hudson.plugins.fortify360.FortifyClientClassLoader.getInstance(FortifyClientClassLoader.java:79)
    2. org.jvnet.hudson.plugins.fortify360.FPRPublisher.invokeFortifyClient(FPRPublisher.java:263)
    3. org.jvnet.hudson.plugins.fortify360.FPRPublisher.perform(FPRPublisher.java:178)
    3 frames
  4. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729)
    6. hudson.model.Run.execute(Run.java:1541)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:236)
    9 frames