java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • P4 plugin throws a null pointer exception causing job failure when running a "p4 -s users <deleted-user>" where <deleted-user> is a once active, now deleted account. The only workaround appears to be to recreate the deleted account which consumes a Perforce license. I have verified this workaround twice with two different deleted accounts. Example failure output: Started by user cmteam Building in workspace /var/opt/jenkins-data/jobs/some-deploy/workspace Using master perforce client: ciqa-some-deploy [workspace] $ p4 workspace -o ciqa-some-deploy Saving modified client ciqa-some-deploy [workspace] $ p4 -s client -i Clearing workspace... Note: .repository directory in workspace (if exists) is skipped. Cleared workspace. Last build changeset: 79972 [workspace] $ p4 -s changes -s submitted -m 1 //ciqa-some-deploy/...@somelabel-4.1.0.0 [workspace] $ p4 -s changes -s submitted //ciqa-some-deploy/...@79973,@85075 [workspace] $ p4 describe -s 85075 [workspace] $ p4 -G where //... [workspace] $ p4 describe -s 85012 [workspace] $ p4 describe -s 85005 [workspace] $ p4 describe -s 84668 <snip> [workspace] $ p4 describe -s 81052 [workspace] $ p4 describe -s 81031 [workspace] $ p4 describe -s 81029 [workspace] $ p4 -s users valid-user-1 [workspace] $ p4 user -o valid-user-1 [workspace] $ p4 -s users valid-user-2 [workspace] $ p4 user -o valid-user-2 [workspace] $ p4 -s users deleted-user FATAL: null java.lang.NullPointerException at hudson.plugins.perforce.PerforceSCM.retrieveUserInformation(PerforceSCM.java:633) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:816) at hudson.model.AbstractProject.checkout(AbstractProject.java:1197) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468) at hudson.model.Run.run(Run.java:1410) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) And of course the job fails at this point. Note that "p4 -s users deleted-user" returns error: deleted-user - no such user(s). exit: 0 while "p4 -s users valid-user" returns info: valid-user <valid-user@my.company.com> (Valid User) accessed 2012/03/29 exit: 0
    via by S Stack,
  • P4 plugin throws a null pointer exception causing job failure when running a "p4 -s users <deleted-user>" where <deleted-user> is a once active, now deleted account. The only workaround appears to be to recreate the deleted account which consumes a Perforce license. I have verified this workaround twice with two different deleted accounts. Example failure output: Started by user cmteam Building in workspace /var/opt/jenkins-data/jobs/some-deploy/workspace Using master perforce client: ciqa-some-deploy [workspace] $ p4 workspace -o ciqa-some-deploy Saving modified client ciqa-some-deploy [workspace] $ p4 -s client -i Clearing workspace... Note: .repository directory in workspace (if exists) is skipped. Cleared workspace. Last build changeset: 79972 [workspace] $ p4 -s changes -s submitted -m 1 //ciqa-some-deploy/...@somelabel-4.1.0.0 [workspace] $ p4 -s changes -s submitted //ciqa-some-deploy/...@79973,@85075 [workspace] $ p4 describe -s 85075 [workspace] $ p4 -G where //... [workspace] $ p4 describe -s 85012 [workspace] $ p4 describe -s 85005 [workspace] $ p4 describe -s 84668 <snip> [workspace] $ p4 describe -s 81052 [workspace] $ p4 describe -s 81031 [workspace] $ p4 describe -s 81029 [workspace] $ p4 -s users valid-user-1 [workspace] $ p4 user -o valid-user-1 [workspace] $ p4 -s users valid-user-2 [workspace] $ p4 user -o valid-user-2 [workspace] $ p4 -s users deleted-user FATAL: null java.lang.NullPointerException at hudson.plugins.perforce.PerforceSCM.retrieveUserInformation(PerforceSCM.java:633) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:816) at hudson.model.AbstractProject.checkout(AbstractProject.java:1197) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468) at hudson.model.Run.run(Run.java:1410) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) And of course the job fails at this point. Note that "p4 -s users deleted-user" returns error: deleted-user - no such user(s). exit: 0 while "p4 -s users valid-user" returns info: valid-user <valid-user@my.company.com> (Valid User) accessed 2012/03/29 exit: 0
    via by S Stack,
  • 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.
    via by atbrockett,
    • java.lang.NullPointerException at hudson.plugins.perforce.PerforceSCM.retrieveUserInformation(PerforceSCM.java:633) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:816) at hudson.model.AbstractProject.checkout(AbstractProject.java:1197) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468) at hudson.model.Run.run(Run.java:1410) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238)
    No Bugmate found.