# Jenkins LTS JDK17 java.nio.channels.ClosedChannelException

**URL:** <https://community.jenkins.io/t/jenkins-lts-jdk17-java-nio-channels-closedchannelexception/28921>\
**Category:** Ask a question\
**Tags:** question, docker\
**Created:** [March 26, 2025, 8:48pm UTC](https://community.jenkins.io/t/jenkins-lts-jdk17-java-nio-channels-closedchannelexception/28921 "2025-03-26T20:48:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![katastr0phal](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@katastr0phal](https://community.jenkins.io/u/katastr0phal)\
**Post date:** [March 26, 2025, 8:48pm UTC](https://community.jenkins.io/t/jenkins-lts-jdk17-java-nio-channels-closedchannelexception/28921/1 "2025-03-26T20:48:02Z")

</div>

Hi,

I am having serious trouble upgrading my Jenkins Setup to Jenkins LTS JDK17 from JDK11.

My inbound agent can connect to the controller but every minute the connection is lost which kills all my running builds.

The biggest difference is that my older Jenkins Controller Version did support agents to connect without “-webSocket”, which doesn’t seem to work now anymore. Maybe this is the culprit?

Thanks for taking the time to read this.

**Controller-Logs:**

```auto
2025-03-26 20:45:53.321+0000 [id=18] INFO j.s.DefaultJnlpSlaveReceiver#channelClosed: Jetty (winstone)-18 for ATGKPAS70 terminated: java.nio.channels.ClosedChannelException
2025-03-26 20:45:53.323+0000 [id=18] INFO j.s.DefaultJnlpSlaveReceiver#channelClosed: Jetty (winstone)-18 for ATGKPAS70 terminated: java.nio.channels.ClosedChannelException

```

**Agent-Logs:**

```auto
März 26, 2025 9:44:27 PM hudson.remoting.Launcher createEngine
INFO: Setting up agent: ATGKPAS70
März 26, 2025 9:44:27 PM hudson.remoting.Engine startEngine
INFO: Using Remoting version: 3283.v92c105e0f819
März 26, 2025 9:44:27 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using D:\Jenkins\DEV\remoting as a remoting work directory
März 26, 2025 9:44:28 PM hudson.remoting.Launcher$CuiListener status
INFO: WebSocket connection open
März 26, 2025 9:44:28 PM hudson.remoting.Launcher$CuiListener status
INFO: Connected
März 26, 2025 9:45:53 PM io.jenkins.remoting.shaded.org.glassfish.tyrus.container.jdk.client.ClientFilter processError
SEVERE: Connection error has occurred
java.io.IOException: The I/O operation has been aborted because of either a thread exit or an application request
	at java.base/sun.nio.ch.Iocp.translateErrorToIOException(Iocp.java:299)
	at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:389)
	at java.base/java.lang.Thread.run(Thread.java:840)

März 26, 2025 9:45:53 PM hudson.remoting.Launcher$CuiListener status
INFO: Read side closed
März 26, 2025 9:45:53 PM hudson.remoting.Launcher$CuiListener status
INFO: Terminated
März 26, 2025 9:45:53 PM hudson.remoting.Launcher$CuiListener status
INFO: Performing onReconnect operation.
März 26, 2025 9:45:53 PM hudson.remoting.Launcher$CuiListener status
INFO: onReconnect operation completed.
März 26, 2025 9:45:53 PM hudson.remoting.Launcher$CuiListener status
INFO: WebSocket connection open
März 26, 2025 9:45:53 PM hudson.remoting.Launcher$CuiListener status
INFO: Connected
März 26, 2025 9:46:48 PM io.jenkins.remoting.shaded.org.glassfish.tyrus.container.jdk.client.ClientFilter processError
SEVERE: Connection error has occurred
java.io.IOException: The I/O operation has been aborted because of either a thread exit or an application request
	at java.base/sun.nio.ch.Iocp.translateErrorToIOException(Iocp.java:299)
	at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:389)
	at java.base/java.lang.Thread.run(Thread.java:840)

März 26, 2025 9:46:48 PM hudson.remoting.Launcher$CuiListener status
INFO: Read side closed
März 26, 2025 9:46:48 PM hudson.remoting.Launcher$CuiListener status
INFO: Terminated
März 26, 2025 9:46:48 PM hudson.remoting.Launcher$CuiListener status
INFO: Performing onReconnect operation.
März 26, 2025 9:46:48 PM hudson.remoting.Launcher$CuiListener status
INFO: onReconnect operation completed.
März 26, 2025 9:46:48 PM hudson.remoting.Launcher$CuiListener status
INFO: WebSocket connection open
März 26, 2025 9:46:48 PM hudson.remoting.Launcher$CuiListener status
INFO: Connected
März 26, 2025 9:48:13 PM io.jenkins.remoting.shaded.org.glassfish.tyrus.container.jdk.client.ClientFilter processError
SEVERE: Connection error has occurred
java.io.IOException: The I/O operation has been aborted because of either a thread exit or an application request
	at java.base/sun.nio.ch.Iocp.translateErrorToIOException(Iocp.java:299)
	at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:389)
	at java.base/java.lang.Thread.run(Thread.java:840)

März 26, 2025 9:50:17 PM hudson.remoting.Launcher$CuiListener status
INFO: Read side closed
März 26, 2025 9:50:17 PM hudson.remoting.Launcher$CuiListener status
INFO: Terminated
März 26, 2025 9:50:17 PM hudson.remoting.Launcher$CuiListener status
INFO: Performing onReconnect operation.
März 26, 2025 9:50:17 PM hudson.remoting.Launcher$CuiListener status
INFO: onReconnect operation completed.
März 26, 2025 9:50:17 PM hudson.remoting.Launcher$CuiListener status
INFO: WebSocket connection open
März 26, 2025 9:50:17 PM hudson.remoting.Launcher$CuiListener status
INFO: Connected

```

**Controller:**  
My Jenkins Controller runs based on the jenkins/jenkins:lts-jdk17 image as a podman container on RHEL9.

Java:

```auto
java -version
Picked up JAVA_TOOL_OPTIONS: -Djavax.net.ssl.trustStore=/opt/java/amazon-corretto-11.0.22.7.1/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Djdk.util.zip.disableZip64ExtraFieldValidation=true
openjdk version "17.0.14" 2025-01-21
OpenJDK Runtime Environment Temurin-17.0.14+7 (build 17.0.14+7)
OpenJDK 64-Bit Server VM Temurin-17.0.14+7 (build 17.0.14+7, mixed mode)

```

**Agent:**  
My Jenkins Agent connects inboud via agent.jar:

```auto
D:/Jenkins/openlogic-openjdk-17.0.14/bin/java.exe -jar D:\Jenkins\DEV\windows-agent\agent.jar -url "http://atgkvas95.brp.local:8082/" -secret "mysecret" -name "ATGKPAS70" -workDir "D:/Jenkins/DEV" -webSocket

```

OS:

```auto
OS Name: Microsoft Windows Server 2022 Standard
OS Version: 10.0.20348 N/A Build 20348

```

Java:

```auto
D:/Jenkins/openlogic-openjdk-17.0.14/bin/java.exe -version
Picked up JAVA_TOOL_OPTIONS:
openjdk version "17.0.14" 2025-01-21
OpenJDK Runtime Environment OpenLogic-OpenJDK (build 17.0.14+7-adhoc..jdk17u)
OpenJDK 64-Bit Server VM OpenLogic-OpenJDK (build 17.0.14+7-adhoc..jdk17u, mixed mode, sharing)

```

Jenkins setup:

## Jenkins: 2.492.2 OS: Linux - 5.14.0-503.29.1.el9\_5.x86\_64 Java: 17.0.14 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)

ant:513.vde9e7b\_a\_0da\_0f  
antisamy-markup-formatter:173.v680e3a\_b\_69ff3  
apache-httpcomponents-client-4-api:4.5.14-269.vfa\_2321039a\_83  
asm-api:9.7.1-129.vf5618e98eed1  
authentication-tokens:1.131.v7199556c3004  
authorize-project:2.0.0  
blueocean:1.27.17  
blueocean-bitbucket-pipeline:1.27.17  
blueocean-commons:1.27.17  
blueocean-config:1.27.17  
blueocean-core-js:1.27.17  
blueocean-dashboard:1.27.17  
blueocean-display-url:2.4.4  
blueocean-events:1.27.17  
blueocean-git-pipeline:1.27.17  
blueocean-github-pipeline:1.27.17  
blueocean-i18n:1.27.17  
blueocean-jwt:1.27.17  
blueocean-personalization:1.27.17  
blueocean-pipeline-api-impl:1.27.17  
blueocean-pipeline-editor:1.27.17  
blueocean-pipeline-scm-api:1.27.17  
blueocean-rest:1.27.17  
blueocean-rest-impl:1.27.17  
blueocean-web:1.27.17  
bootstrap5-api:5.3.3-2  
bouncycastle-api:2.30.1.80-256.vf98926042a\_9b\_  
branch-api:2.1214.v3f652804588d  
build-timeout:1.37  
caffeine-api:3.2.0-166.v72a\_6d74b\_870f  
checks-api:367.v18b\_7f530e54a\_  
cloudbees-bitbucket-branch-source:935.1.3  
cloudbees-folder:6.995.v6ea\_28196da\_93  
command-launcher:118.v72741845c17a\_  
commons-compress-api:1.27.1-3  
commons-lang3-api:3.17.0-87.v5cf526e63b\_8b\_  
commons-text-api:1.13.0-153.v91dcd89e2a\_22  
configuration-as-code:1947.v7d33fe23569c  
configuration-as-code-groovy:1.1  
credentials:1413.va\_51c53703df1  
credentials-binding:687.v619cb\_15e923f  
dark-theme:524.vd675b\_22b\_30cb\_  
display-url-api:2.209.v582ed814ff2f  
durable-task:587.v84b\_877235b\_45  
echarts-api:5.6.0-2  
eddsa-api:0.3.0.1-19.vc432d923e5ee  
email-ext:1876.v28d8d38315b\_d  
favorite:2.225.v68765b\_b\_a\_1fa\_3  
file-parameters:367.vc2cc39fb\_b\_593  
flatpickr-api:4.6.13-18.vcf5f6a\_5b\_8468  
font-awesome-api:6.7.2-1  
git:5.7.0  
git-client:6.1.2  
github:1.42.0  
github-api:1.321-486.vd7fa\_ef919b\_48  
github-branch-source:1810.v913311241fa\_9  
gradle:2.14.1  
gson-api:2.12.1-113.v347686d6729f  
handy-uri-templates-2-api:2.1.8-36.v85e4cb\_234a\_13  
htmlpublisher:425  
instance-identity:203.v15e81a\_1b\_7a\_38  
integrity-plugin:2.7-SNAPSHOT (private-19eb0b54-schodmi)  
ionicons-api:82.v0597178874e1  
jackson2-api:2.18.3-402.v74c4eb\_f122b\_2  
jakarta-activation-api:2.1.3-2  
jakarta-mail-api:2.1.3-2  
javax-activation-api:1.2.0-8  
javax-mail-api:1.6.2-10  
jaxb:2.3.9-133.vb\_ec76a\_73f706  
jdk-tool:83.v417146707a\_3d  
jenkins-design-language:1.27.17  
jjwt-api:0.11.5-120.v0268cf544b\_89  
job-dsl:1.91  
joda-time-api:2.13.1-115.va\_6b\_5f8efb\_1d8  
jquery3-api:3.7.1-3  
json-api:20250107-125.v28b\_a\_ffa\_eb\_f01  
json-path-api:2.9.0-148.v22a\_7ffe323ce  
junit:1319.v000471ca\_e5e2  
ldap:780.vcb\_33c9a\_e4332  
mailer:489.vd4b\_25144138f  
mapdb-api:1.0.9-44.va\_1e1310c9118  
matlab:2.12.0  
matrix-auth:3.2.5  
matrix-project:847.v88a\_f90ff9f20  
mina-sshd-api-common:2.14.0-143.v2b\_362fc39576  
mina-sshd-api-core:2.14.0-143.v2b\_362fc39576  
okhttp-api:4.11.0-183.va\_87fc7a\_89810  
pam-auth:1.12  
pipeline-build-step:557.v95d96f77b\_2b\_8  
pipeline-github-lib:65.v203688e7727e  
pipeline-graph-analysis:235.vb\_a\_a\_36b\_f248c2  
pipeline-groovy-lib:752.vdddedf804e72  
pipeline-input-step:517.vf8e782ee645c  
pipeline-milestone-step:127.vb\_52887ca\_3b\_6d  
pipeline-model-api:2.2247.va\_423189a\_7dff  
pipeline-model-definition:2.2247.va\_423189a\_7dff  
pipeline-model-extensions:2.2247.va\_423189a\_7dff  
pipeline-rest-api:2.37  
pipeline-stage-step:322.vecffa\_99f371c  
pipeline-stage-tags-metadata:2.2247.va\_423189a\_7dff  
pipeline-stage-view:2.37  
pipeline-utility-steps:2.19.0  
plain-credentials:195.vb\_906e9073dee  
plugin-util-api:6.1.0  
prism-api:1.30.0-1  
pubsub-light:1.19  
resource-disposer:0.25  
schedule-build:649.vd4058b\_a\_a\_cf54  
scm-api:704.v3ce5c542825a\_  
script-security:1373.vb\_b\_4a\_a\_c26fa\_00  
skip-certificate-check:50.vcfa\_cdb\_b\_27312  
snakeyaml-api:2.3-125.v4d77857a\_b\_402  
sse-gateway:1.28  
ssh-agent:384.ve275343791a\_6  
ssh-credentials:355.v9b\_e5b\_cde5003  
ssh-slaves:3.1031.v72c6b\_883b\_869  
sshd:3.330.vc866a\_8389b\_58  
structs:343.vdcf37b\_a\_c81d5  
subversion:1287.vd2d507146906  
theme-manager:278.v2e3c063e42cc  
timestamper:1.28  
token-macro:444.v52de7e9c573d  
trilead-api:2.192.vc50a\_d147e369  
variant:70.va\_d9f17f859e0  
view-job-filters:397.v40fdeff8da\_48  
workflow-aggregator:608.v67378e9d3db\_1  
workflow-api:1366.vf1fb\_e1a\_f6b\_22  
workflow-basic-steps:1079.vce64b\_a\_929c5a\_  
workflow-cps:4050.v8b\_a\_69b\_587c39  
workflow-durable-task-step:1405.v1fcd4a\_d00096  
workflow-job:1508.v9cb\_c3a\_a\_89dfd  
workflow-multibranch:803.v08103b\_87c280  
workflow-scm-step:437.v05a\_f66b\_e5ef8  
workflow-step-api:700.v6e45cb\_a\_5a\_a\_21  
workflow-support:963.va\_600813d04a\_a\_  
ws-cleanup:0.48
