hudson.util.IOException2

Could not find any known supported java version in [java, /usr/bin/java, /usr/java/default/bin/java, /usr/java/latest/bin/java, /usr/local/bin/java, /usr/local/java/bin/java, /jenkinsslave/jdk/bin/java], and we also failed to install JDK as a fallback

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5

  • via by Sebastien Tardif,
  • via by Sebastien Tardif,
  • via by pestalella,
  • Stack trace

    • hudson.util.IOException2: Could not find any known supported java version in [java, /usr/bin/java, /usr/java/default/bin/java, /usr/java/latest/bin/java, /usr/local/bin/java, /usr/local/java/bin/java, /jenkinsslave/jdk/bin/java], and we also failed to install JDK as a fallback at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:350) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:288) 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: java.io.IOException: Unexpected end of sftp stream. at com.trilead.ssh2.SFTPv3Client.readBytes(SFTPv3Client.java:218) at com.trilead.ssh2.SFTPv3Client.receiveMessage(SFTPv3Client.java:241) at com.trilead.ssh2.SFTPv3Client.write(SFTPv3Client.java:1341) at hudson.plugins.sshslaves.SFTPClient$1.write(SFTPClient.java:102) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109) at hudson.Util.copyStream(Util.java:409) at hudson.Util.copyStreamAndClose(Util.java:421) at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:418) at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:348) ... 7 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    No Bugmate found.