Windows agent cannot be launched via Java Web Start

1 minute read

Issue

  • Windows agent can’t be launched via Java Web Start

  • You get logs in the agent like the ones below:

Error when connecting windows JNLP:

JNLP agent connected from /X.X.X.X

<===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 2.47

This is a Windows agent

Slave successfully connected and online

ERROR: Connection terminated

java.io.IOException (https://stacktrace.jenkins-ci.org/search?query=java.io.IOException): Connection aborted: org.jenkinsci.remoting.nio.NioChannelHub$MonoNioTransport@4055660c[name=testslave]

at org.jenkinsci.remoting.nio.NioChannelHub$NioTransport.abort(NioChannelHub.java:211) (https://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.nio.NioChannelHub$NioTransport.abort&entity=method)

at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:631) (https://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.nio.NioChannelHub.run&entity=method)

Environment

  • CloudBees Jenkins Enterprise launched on Java 8

  • Windows agent launched on Java 6

Resolution

  • Update your Windows agent to use Java 8