nulljava.lang.NullPointerException

Jenkins JIRA | Justin Wagner | 1 year 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

    Before upgrading from 1.3.33 to 1.3.35 Jenkins was able to create a Perforce workspace when it didn't already exist, however after upgrading to 1.3.35 I get the following NPE: My Perforce configuration has a username listed, but the password is blank, and not necessary. {code:java} Building in workspace /path/to/workspace Using master perforce client: workspace_name [ltconeng] $ /corp/tools/perforce/2011.1/cli/p4 workspace -o workspace_name Changing P4 Client Root to: /path/to/workspace Caught exception in perforce-plugin. nulljava.lang.NullPointerException at hudson.plugins.perforce.PerforceSCM.parseProjectPath(PerforceSCM.java:2502) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1710) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1602) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:907) at hudson.model.AbstractProject.checkout(AbstractProject.java:1274) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) ERROR: Caught exception in perfoce-plugin. null {code}

    Jenkins JIRA | 1 year ago | Justin Wagner
    nulljava.lang.NullPointerException
  2. 0

    Before upgrading from 1.3.33 to 1.3.35 Jenkins was able to create a Perforce workspace when it didn't already exist, however after upgrading to 1.3.35 I get the following NPE: My Perforce configuration has a username listed, but the password is blank, and not necessary. {code:java} Building in workspace /path/to/workspace Using master perforce client: workspace_name [ltconeng] $ /corp/tools/perforce/2011.1/cli/p4 workspace -o workspace_name Changing P4 Client Root to: /path/to/workspace Caught exception in perforce-plugin. nulljava.lang.NullPointerException at hudson.plugins.perforce.PerforceSCM.parseProjectPath(PerforceSCM.java:2502) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1710) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1602) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:907) at hudson.model.AbstractProject.checkout(AbstractProject.java:1274) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) ERROR: Caught exception in perfoce-plugin. null {code}

    Jenkins JIRA | 1 year ago | Justin Wagner
    nulljava.lang.NullPointerException

    Root Cause Analysis

    1. nulljava.lang.NullPointerException

      No message provided

      at hudson.plugins.perforce.PerforceSCM.parseProjectPath()
    2. hudson.plugins.perforce
      PerforceSCM.checkout
      1. hudson.plugins.perforce.PerforceSCM.parseProjectPath(PerforceSCM.java:2502)
      2. hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1710)
      3. hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1602)
      4. hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:907)
      4 frames
    3. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1274)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609)
      2 frames
    4. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
      2. hudson.model.Run.execute(Run.java:1738)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:381)
      5 frames