java.lang.NullPointerException

Jenkins JIRA | Mark Berchem | 3 months ago
  1. 0

    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.

    Jenkins JIRA | 3 months ago | Mark Berchem
    java.lang.NullPointerException
  2. 0

    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}

    Jenkins JIRA | 4 years ago | William Crossland
    java.lang.NullPointerException
  3. 0

    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}

    Jenkins JIRA | 4 years ago | William Crossland
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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}

    Jenkins JIRA | 3 months ago | Joseph Petersen
    java.lang.NullPointerException
  6. 0

    [JIRA] (JENKINS-38201) NullPointerException in Update CMD when hostname was resolved to IP

    Google Groups | 3 months ago | jose...@gmail.com (JIRA)
    java.lang.NullPointerException

    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.accurev.AccurevLauncher.runCommand()
    2. hudson.plugins.accurev
      AccurevSCM.checkout
      1. hudson.plugins.accurev.AccurevLauncher.runCommand(AccurevLauncher.java:146)
      2. hudson.plugins.accurev.cmd.SetProperty.setproperty(SetProperty.java:42)
      3. hudson.plugins.accurev.delegates.AbstractModeDelegate.setStreamColor(AbstractModeDelegate.java:308)
      4. hudson.plugins.accurev.delegates.AbstractModeDelegate.checkout(AbstractModeDelegate.java:189)
      5. hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:338)
      5 frames
    3. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SCM.checkout(SCM.java:495)
      2. hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
      3 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:529)
      2. hudson.model.Run.execute(Run.java:1720)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:404)
      5 frames