nulljava.lang.NullPointerException

Jenkins JIRA | Mike Delaney | 2 years ago
  1. 0

    After updating to 1.3.29, we noticed that when we have jobs with the 'Run Parameter', the Perforce plug-in throws a NPE when trying to calculate the effective workspace name. The stack trace printed out by Jenkins is a: {panel} [sample-run-parameter-job] $ p4 workspace -o sample-run-parameter-job Caught exception in perforce-plugin. nulljava.lang.NullPointerException at java.lang.String.replace(String.java:2219) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:185) at hudson.plugins.perforce.utils.MacroStringHelper.getDefaultSubstitutions(MacroStringHelper.java:341) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:246) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:298) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:148) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:876) at hudson.model.AbstractProject.checkout(AbstractProject.java:1252) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:615) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:232) ERROR: Caught exception in perfoce-plugin. null {panel}

    Jenkins JIRA | 2 years ago | Mike Delaney
    nulljava.lang.NullPointerException
  2. 0

    After updating to 1.3.29, we noticed that when we have jobs with the 'Run Parameter', the Perforce plug-in throws a NPE when trying to calculate the effective workspace name. The stack trace printed out by Jenkins is a: {panel} [sample-run-parameter-job] $ p4 workspace -o sample-run-parameter-job Caught exception in perforce-plugin. nulljava.lang.NullPointerException at java.lang.String.replace(String.java:2219) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:185) at hudson.plugins.perforce.utils.MacroStringHelper.getDefaultSubstitutions(MacroStringHelper.java:341) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:246) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:298) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:148) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:876) at hudson.model.AbstractProject.checkout(AbstractProject.java:1252) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:615) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:232) ERROR: Caught exception in perfoce-plugin. null {panel}

    Jenkins JIRA | 2 years ago | Mike Delaney
    nulljava.lang.NullPointerException
  3. 0

    Cannot deliver to FTP destination from SOAP (Web Service)

    Oracle Community | 5 years ago | GarryLawton
    nulljava.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HeaderRegex parsing

    Google Groups | 3 years ago | Christophe S
    nulljava.lang.NullPointerException
  6. 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

    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. nulljava.lang.NullPointerException

      No message provided

      at java.lang.String.replace()
    2. Java RT
      String.replace
      1. java.lang.String.replace(String.java:2219)
      1 frame
    3. hudson.plugins.perforce
      PerforceSCM.checkout
      1. hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:185)
      2. hudson.plugins.perforce.utils.MacroStringHelper.getDefaultSubstitutions(MacroStringHelper.java:341)
      3. hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:246)
      4. hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:298)
      5. hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:148)
      6. hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:876)
      6 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1252)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:615)
      2 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524)
      2. hudson.model.Run.execute(Run.java:1706)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:232)
      5 frames