Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70551

JDK Parameter Plugin 1.2 Null pointer exception when the build is triggered remotely via URL with an Authentication Token

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • JDK Parameter 1.2
      Jenkins 2.389

      JDK Parameter Plugin 1.2 regression bug breaks builds triggered remotely via URL with a Authentication Token.
      https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/Trigger-Jenkins-Builds-Remotely-Example-403-Error-Fix

      After triggering the build I get this error when using JDK Parameter Plugin v1.2.

      FATAL: null
      java.lang.NullPointerException
      	at java.base/java.util.TreeMap.getEntry(TreeMap.java:345)
      	at java.base/java.util.TreeMap.containsKey(TreeMap.java:231)
      	at java.base/java.util.TreeSet.contains(TreeSet.java:234)
      	at hudson.model.ParametersAction.isSafeParameter(ParametersAction.java:364)
      	at hudson.model.ParametersAction.filter(ParametersAction.java:335)
      	at hudson.model.ParametersAction.getParameters(ParametersAction.java:182)
      	at hudson.model.ParametersAction.iterator(ParametersAction.java:177)
      	at hudson.model.AbstractBuild.getBuildVariables(AbstractBuild.java:1071)
      	at hudson.scm.SubversionSCM.getLocations(SubversionSCM.java:544)
      	at hudson.scm.SubversionSCM.buildEnvironment(SubversionSCM.java:730)
      	at hudson.scm.SCM.buildEnvVars(SCM.java:589)
      	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:967)
      	at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:57)
      	at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:168)
      	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:887)
      	at hudson.scm.SCM.checkout(SCM.java:540)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1240)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:649)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:521)
      	at hudson.model.Run.execute(Run.java:1900)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      	at hudson.model.ResourceController.execute(ResourceController.java:101)
      	at hudson.model.Executor.run(Executor.java:442)  

      I had to downgrade to v1.0 to get it working again.

            Unassigned Unassigned
            leo_ Leo Leung
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: