Windows agent cannot be launched via Java Web Start

Article ID:204204494
1 minute readKnowledge base

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

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.