-
-
Notifications
You must be signed in to change notification settings - Fork 13
[JENKINS-70551] JDK Parameter Plugin 1.3 Null pointer exception when the build is triggered remotely via URL with an Authentication Token #53
Copy link
Copy link
Open
Description
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.
Originally reported by
leo_, imported from: JDK Parameter Plugin 1.3 Null pointer exception when the build is triggered remotely via URL with an Authentication Token
- status: Open
- priority: Major
- component(s): jdk_parameter_plugin-plugin
- resolution: Unresolved
- votes: 0
- watchers: 3
- imported: 20251216-225446
Raw content of original issue
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.
environment
JDK Parameter 1.3<br/>
Jenkins 2.504.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Fields
Give feedbackNo fields configured for Bug.