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.

  • With Accurev 0.6.35 plugin: 10:34:55 [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" setproperty -H usmlvv1prodv01:5050 -s HDX-INTGCODE_ELRF -r style <style><color><background-color>#FFFFFF</background-color></color></style> 10:34:55 FATAL: You are not authorized to perform this operation. 10:34:55 Setting "text" property "style" on "stream" is an admin function: 10:34:55 server_admin_trig: You are not in the Depot Admin or User Admin group. 10:34:55 10:34:55 FATAL: Failed authentication. (failed with exit code 1 ) and the build continues. With Accurev 0.7.0 plugin: [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" setproperty -H usmlvv1prodv01:5050 -s HDX-INTGCODE_ELRF -r style <style><color><background-color>#FFFFFF</background-color></color></style> 10:33:36 FATAL: You are not authorized to perform this operation. 10:33:36 Setting "text" property "style" on "stream" is an admin function: 10:33:36 server_admin_trig: You are not in the Depot Admin or User Admin group. 10:33:36 10:33:36 FATAL: Failed authentication. (failed with exit code 1 ) 10:33:36 FATAL: null 10:33:36 java.lang.NullPointerException 10:33:36 at hudson.plugins.accurev.AccurevLauncher.runCommand(AccurevLauncher.java:146) 10:33:36 at hudson.plugins.accurev.cmd.SetProperty.setproperty(SetProperty.java:42) 10:33:36 at hudson.plugins.accurev.delegates.AbstractModeDelegate.setStreamColor(AbstractModeDelegate.java:308) 10:33:36 at hudson.plugins.accurev.delegates.AbstractModeDelegate.checkout(AbstractModeDelegate.java:189) 10:33:36 at hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:338) 10:33:36 at hudson.scm.SCM.checkout(SCM.java:495) 10:33:36 at hudson.model.AbstractProject.checkout(AbstractProject.java:1278) 10:33:36 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) 10:33:36 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 10:33:36 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 10:33:36 at hudson.model.Run.execute(Run.java:1720) 10:33:36 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 10:33:36 at hudson.model.ResourceController.execute(ResourceController.java:98) 10:33:36 at hudson.model.Executor.run(Executor.java:404) and the build fails.
    via by Mark Berchem,
  • We are evaluating Jenkins as a replacement to our current CI solution (Cruise Control .Net). We use Accurev as our source control solution and will be using it going forward. Our Accurev process resembles the following architecture: {panel} Integration Stream --> Test Stream --> Gold Release Stream {panel} * We build using workspaces attached to the Integration and Test steams. * We use the "Poll SM" build trigger. The problem is whenever a change is promoted into the _Test Steam (Upstream)_ this causes a change to be detected in the _Integration stream (Downstream)_. In Cruse Control .Net we are able to specifically state which files are to be ignored when polling for changes. This functionality does not yet exist, however the "Ignore parent changes" option does exist. When we try and employ the use of this option the following exception is produced in the log: {panel} Setting ACCUREV_HOME to "C:\accurev_ws" [job] $ "C:\Program Files\AccuRev\bin\accurev.exe" info -H accurev47:5050 Currently authenticated with Accurev server as 'login', not logging in again. Getting a list of streams... [job] $ "C:\Program Files\AccuRev\bin\accurev.exe" show -H accurev47:5050 -fx -p main -s int_stream streams Getting a list of workspaces... [job] $ "C:\Program Files\AccuRev\bin\accurev.exe" show -H accurev47:5050 -fx -p main wspaces FATAL: null java.lang.NullPointerException at hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:421) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {panel}
    via by William Crossland,
  • We are evaluating Jenkins as a replacement to our current CI solution (Cruise Control .Net). We use Accurev as our source control solution and will be using it going forward. Our Accurev process resembles the following architecture: {panel} Integration Stream --> Test Stream --> Gold Release Stream {panel} * We build using workspaces attached to the Integration and Test steams. * We use the "Poll SM" build trigger. The problem is whenever a change is promoted into the _Test Steam (Upstream)_ this causes a change to be detected in the _Integration stream (Downstream)_. In Cruse Control .Net we are able to specifically state which files are to be ignored when polling for changes. This functionality does not yet exist, however the "Ignore parent changes" option does exist. When we try and employ the use of this option the following exception is produced in the log: {panel} Setting ACCUREV_HOME to "C:\accurev_ws" [job] $ "C:\Program Files\AccuRev\bin\accurev.exe" info -H accurev47:5050 Currently authenticated with Accurev server as 'login', not logging in again. Getting a list of streams... [job] $ "C:\Program Files\AccuRev\bin\accurev.exe" show -H accurev47:5050 -fx -p main -s int_stream streams Getting a list of workspaces... [job] $ "C:\Program Files\AccuRev\bin\accurev.exe" show -H accurev47:5050 -fx -p main wspaces FATAL: null java.lang.NullPointerException at hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:421) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {panel}
    via by William Crossland,
  • Issue is related somewhat to UNIX/OSX: [Set hostname FQDN|https://github.com/DigitalOcean-User-Projects/Articles-and-Tutorials/blob/master/set_hostname_fqdn_on_ubuntu_centos.md#setting-the-fully-qualified-domain-name-fqdn] The exception does not reveal the actual issue but looking into the workspace part I was able to determine that Accurev does not approve of workspaces being assigned to IP addresses. {code:java} [workspacepolltest] $ /Applications/AccuRev/bin/accurev update -H snip:5050 -fx FATAL: <?xml version="1.0" encoding="utf-8"?> <acResponse command="update" TaskId="1737"/> You are not in a directory associated with a workspace FATAL: Failed authentication. (failed with exit code 1 ) FATAL: null java.lang.NullPointerException at hudson.plugins.accurev.cmd.Update.performUpdate(Update.java:111) at hudson.plugins.accurev.delegates.ReftreeDelegate.doUpdate(ReftreeDelegate.java:148) at hudson.plugins.accurev.delegates.ReftreeDelegate.checkout(ReftreeDelegate.java:142) at hudson.plugins.accurev.delegates.AbstractModeDelegate.checkout(AbstractModeDelegate.java:191) at hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:338) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE {code}
    via by Joseph Petersen,
  • [JIRA] (JENKINS-38148) NullPointerException in AccuRev Launcher
    via by mark.b...@cerner.com (JIRA),
  • Issues occurs constantly! Environment: * master: Jenkins v1.424, Mac OS 10.7.1, AccuRev 4.9.1, AccuRev plugin v0.6.18, JDK 1.6.0_26 * slave: connected via JNLP, Windows 2008 R2, JRE1.6.0_23_x64, AccuRev 4.9.1 * AccuRev settings: Polling set to be on master, show one stream at the time, synch accurev, minimize login, use non-expiring login * job settings: use workspace, set ONE subpath {code} Started by user xxx ?????????? ???????? ?? slave_xxx Purging workspace... Workspace purged. Setting ACCUREV_HOME to "C:\Builds" [job_xxx] $ accurev.exe info -H xxx:5050 Currently authenticated with Accurev server as 'user_xxx', not logging in again. Getting a list of streams... [job_xxx] $ accurev.exe show -H xxx:5050 -fx -p depot_xxx -s stream_jkl streams [job_xxx] $ accurev.exe show -H xxx:5050 -fx -p depot_xxx -s stream_ghi streams [job_xxx] $ accurev.exe show -H xxx:5050 -fx -p depot_xxx -s stream_def streams [job_xxx] $ accurev.exe show -H xxx:5050 -fx -p depot_xxx -s stream_abc streams Getting a list of workspaces... [job_xxx] $ accurev.exe show -H xxx:5050 -fx -p depot_xxx wspaces FATAL: null java.lang.NullPointerException at hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:421) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) {code} Disabling "Show one stream at a time" at the master AccuRev-plugin solved the issue.
    via by robsimon,
  • Issues occurs constantly! Environment: * master: Jenkins v1.424, Mac OS 10.7.1, AccuRev 4.9.1, AccuRev plugin v0.6.18, JDK 1.6.0_26 * slave: connected via JNLP, Windows 2008 R2, JRE1.6.0_23_x64, AccuRev 4.9.1 * AccuRev settings: Polling set to be on master, show one stream at the time, synch accurev, minimize login, use non-expiring login * job settings: use workspace, set ONE subpath {code} Started by user xxx ?????????? ???????? ?? slave_xxx Purging workspace... Workspace purged. Setting ACCUREV_HOME to "C:\Builds" [job_xxx] $ accurev.exe info -H xxx:5050 Currently authenticated with Accurev server as 'user_xxx', not logging in again. Getting a list of streams... [job_xxx] $ accurev.exe show -H xxx:5050 -fx -p depot_xxx -s stream_jkl streams [job_xxx] $ accurev.exe show -H xxx:5050 -fx -p depot_xxx -s stream_ghi streams [job_xxx] $ accurev.exe show -H xxx:5050 -fx -p depot_xxx -s stream_def streams [job_xxx] $ accurev.exe show -H xxx:5050 -fx -p depot_xxx -s stream_abc streams Getting a list of workspaces... [job_xxx] $ accurev.exe show -H xxx:5050 -fx -p depot_xxx wspaces FATAL: null java.lang.NullPointerException at hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:421) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) {code} Disabling "Show one stream at a time" at the master AccuRev-plugin solved the issue.
    via by robsimon,
    • java.lang.NullPointerException at hudson.plugins.accurev.AccurevLauncher.runCommand(AccurevLauncher.java:146) at hudson.plugins.accurev.cmd.SetProperty.setproperty(SetProperty.java:42) at hudson.plugins.accurev.delegates.AbstractModeDelegate.setStreamColor(AbstractModeDelegate.java:308) at hudson.plugins.accurev.delegates.AbstractModeDelegate.checkout(AbstractModeDelegate.java:189) at hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:338) at hudson.scm.SCM.checkout(SCM.java:495) at hudson.model.AbstractProject.checkout(AbstractProject.java:1278) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1720) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404)
    No Bugmate found.