Jenkins throws NPE when triggering remote job with parameterized-remote-trigger-plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins throws NPE when triggering remote job with parameterized-remote-trigger-plugin

misha
Has anyone encountered this error using the https://wiki.jenkins.io/display/JENKINS/Parameterized+Remote+Trigger+Plugin

Building remotely on xxxxxxxxxxxxx (deployment) in workspace C:\jenkins\workspace\testlaunch
Triggering this remote job: Remote_Job_Name
Not checking if the remote job Remote_Job_Name is building.
Using job-level defined credentails in place of those from remote Jenkins config [Remote_Jenkins_VM_Name]
Triggering remote job now.
Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.
Checking parameters of #4
ERROR
: Build step failed with exception
java
.lang.NullPointerException
 at java
.io.Reader.<init>(Reader.java:78)
 at java
.io.InputStreamReader.<init>(InputStreamReader.java:72)
 at org
.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.sendHTTPCall(RemoteBuildConfiguration.java:980)
 at org
.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.sendHTTPCall(RemoteBuildConfiguration.java:799)
 at org
.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:556)
 at hudson
.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
 at hudson
.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
 at hudson
.model.Build$BuildExecution.build(Build.java:206)
 at hudson
.model.Build$BuildExecution.doRun(Build.java:163)
 at hudson
.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
 at hudson
.model.Run.execute(Run.java:1728)
 at hudson
.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 at hudson
.model.ResourceController.execute(ResourceController.java:98)
 at hudson
.model.Executor.run(Executor.java:405)
Build step 'Trigger a remote parameterized job' marked build as failure
Finished: FAILURE

Basically I use testlaunch job from [Jenkins v2.46.2] to launch Remote_Job_Name from [Jenkins v2.73.3]

Same operation works OK when destination server is an older version i.e. v1.651.3

The version of Parameterized Remote Trigger Plugin from [Jenkins v2.46.2] is the latest i.e. 2.2.2

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/68a6240d-37fe-4bcc-9e6e-03209d4a1414%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins throws NPE when triggering remote job with parameterized-remote-trigger-plugin

Romain Dupont
Hi

I'm getting the same error (jenkins 2.73.2 and plugin 2.2.2). Have you found any solution? 

Plugin doesn't seem to be maintained anymore. could be related to the upgrade to TLS 1.2...

Regards

On Thursday, 9 November 2017 19:09:31 UTC, misha wrote:
Has anyone encountered this error using the<a href="https://wiki.jenkins.io/display/JENKINS/Parameterized+Remote+Trigger+Plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FParameterized%2BRemote%2BTrigger%2BPlugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGkQQkTiAv2hsaSRGQ9sAohfWtTHg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FParameterized%2BRemote%2BTrigger%2BPlugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGkQQkTiAv2hsaSRGQ9sAohfWtTHg&#39;;return true;"> https://wiki.jenkins.io/display/JENKINS/Parameterized+Remote+Trigger+Plugin

Building remotely on xxxxxxxxxxxxx (deployment) in workspace C:\jenkins\workspace\testlaunch
Triggering this remote job: Remote_Job_Name
Not checking if the remote job Remote_Job_Name is building.
Using job-level defined credentails in place of those from remote Jenkins config [Remote_Jenkins_VM_Name]
Triggering remote job now.
Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.
Checking parameters of #4
ERROR
: Build step failed with exception
java
.lang.NullPointerException
 at java
.io.Reader.<init>(Reader.java:78)
 at java
.io.InputStreamReader.<init>(InputStreamReader.java:72)
 at org
.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.sendHTTPCall(RemoteBuildConfiguration.java:980)
 at org
.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.sendHTTPCall(RemoteBuildConfiguration.java:799)
 at org
.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:556)
 at hudson
.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
 at hudson
.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
 at hudson
.model.Build$BuildExecution.build(Build.java:206)
 at hudson
.model.Build$BuildExecution.doRun(Build.java:163)
 at hudson
.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
 at hudson
.model.Run.execute(Run.java:1728)
 at hudson
.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 at hudson
.model.ResourceController.execute(ResourceController.java:98)
 at hudson
.model.Executor.run(Executor.java:405)
Build step 'Trigger a remote parameterized job' marked build as failure
Finished: FAILURE

Basically I use testlaunch job from [Jenkins v2.46.2] to launch Remote_Job_Name from [Jenkins v2.73.3]

Same operation works OK when destination server is an older version i.e. v1.651.3

The version of <a href="https://plugins.jenkins.io/Parameterized-Remote-Trigger" style="color:rgb(92,53,102);font-family:Helvetica,Arial,sans-serif" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fplugins.jenkins.io%2FParameterized-Remote-Trigger\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHnABdYfKmAw_jadhAc0k5kQksMOw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fplugins.jenkins.io%2FParameterized-Remote-Trigger\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHnABdYfKmAw_jadhAc0k5kQksMOw&#39;;return true;">Parameterized Remote Trigger Plugin from [Jenkins v2.46.2] is the latest i.e. 2.2.2

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ac14d299-65de-444a-a97b-e902b6247036%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.