Unable to start ssh slave , Getting java.lang.NullPointerException in hudson.Util.copyStream(Util.java:437)

219 views
Skip to first unread message

Prafulla T

unread,
Aug 19, 2012, 4:09:00 AM8/19/12
to jenkins...@googlegroups.com

Hi All,

I am getting following error while starting ssh slave.
Any help on how to solve this ?

. hudson.util.IOException2: Could not copy slave.jar to slave at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:530) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:291) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: hudson.util.IOException2: Could not copy slave.jar to '/data/c2sw/jenkins/slave.jar' on slave at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:527) ... 7 more Caused by: java.lang.NullPointerException at hudson.Util.copyStream(Util.java:437) at hudson.Util.copyStreamAndClose(Util.java:450) at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:522) ... 7 more [08/19/12 00:54:21] [SSH] Connection closed.

Prafulla T

unread,
Aug 19, 2012, 4:35:24 AM8/19/12
to jenkins...@googlegroups.com
It automatically got fixed when I disabled ruby-runtime plugin.
Somebody needs to debug this dependency and fix this issue.

Dante Pichardo

unread,
Mar 21, 2017, 2:18:58 PM3/21/17
to Jenkins Users
I got the same error.  I copied slave.jar to this location /var/cache/jenkins/war/WEB-INF/
And it fixed the issue.
Reply all
Reply to author
Forward
0 new messages