java.lang.NullPointerException

Jenkins JIRA | atbrockett | 6 years ago
  1. 0

    I'm trying to configure the Perforce plugin (1.1.9) with Hudson (1.378), and Build Now fails every time with this log (same when the job polls): Started by user anonymous Clearing workspace... Cleared workspace. Using master perforce client: hudson [workspace] $ /Users/abrockett/perforce/p4 workspace -o hudson Changing P4 Client Root to: /Users/abrockett/.hudson/jobs/p4test/workspace FATAL: null java.lang.NullPointerException at hudson.plugins.perforce.PerforceSCM.parseProjectPath(PerforceSCM.java:1386) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1028) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1082) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1280) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:137) when the job runs. I created a new p4 user, as suggested, and a new workspace (named hudson) for Hudson to use. Let Hudson Manage Workspace View is checked, along with one time force sync and always force sync. The plugin appears to have no trouble executing p4 commands. P4PORT is set to localhost:1666, username and password are correct for the hudson user. Searching the issues here and the comments on the wiki at http://wiki.jenkins-ci.org/display/JENKINS/Perforce+Plugin don't turn up anybody with similar problems, so I suspect it's some simple setup problem. I'd be grateful for a shove in the right direction.

    Jenkins JIRA | 6 years ago | atbrockett
    java.lang.NullPointerException
  2. 0

    I'm trying to configure the Perforce plugin (1.1.9) with Hudson (1.378), and Build Now fails every time with this log (same when the job polls): Started by user anonymous Clearing workspace... Cleared workspace. Using master perforce client: hudson [workspace] $ /Users/abrockett/perforce/p4 workspace -o hudson Changing P4 Client Root to: /Users/abrockett/.hudson/jobs/p4test/workspace FATAL: null java.lang.NullPointerException at hudson.plugins.perforce.PerforceSCM.parseProjectPath(PerforceSCM.java:1386) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1028) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1082) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1280) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:137) when the job runs. I created a new p4 user, as suggested, and a new workspace (named hudson) for Hudson to use. Let Hudson Manage Workspace View is checked, along with one time force sync and always force sync. The plugin appears to have no trouble executing p4 commands. P4PORT is set to localhost:1666, username and password are correct for the hudson user. Searching the issues here and the comments on the wiki at http://wiki.jenkins-ci.org/display/JENKINS/Perforce+Plugin don't turn up anybody with similar problems, so I suspect it's some simple setup problem. I'd be grateful for a shove in the right direction.

    Jenkins JIRA | 6 years ago | atbrockett
    java.lang.NullPointerException
  3. 0

    Double whammy: Perforce plugin NPE and Jira failure

    Google Groups | 5 years ago | Steve Freeland
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 hudson.plugins.perforce.PerforceSCM.parseProjectPath()
    2. hudson.plugins.perforce
      PerforceSCM.checkout
      1. hudson.plugins.perforce.PerforceSCM.parseProjectPath(PerforceSCM.java:1386)
      2. hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1028)
      3. hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:504)
      3 frames
    3. Hudson
      Executor.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1082)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
      4. hudson.model.Run.run(Run.java:1280)
      5. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      6. hudson.model.ResourceController.execute(ResourceController.java:88)
      7. hudson.model.Executor.run(Executor.java:137)
      7 frames