-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.361.1 host running on Ubuntu 20.04 using OpenJDK 17.0.4+8-Ubuntu-120.04, Jenkins Windows Agent running OpenJDK Temurin-17.0.4.1+1
I had a build that was stuck on a Windows Agent due to a network issue. I then tried stopping the build using the Jenkins web interface and the build crashed with this stack trace:
13:07:27 ERROR: Failed to join a process 13:07:27 java.lang.reflect.InaccessibleObjectException: Unable to make field private final long java.lang.ProcessImpl.handle accessible: module java.base does not "opens java.lang" to unnamed module @5908db45 13:07:27 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source) 13:07:27 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source) 13:07:27 at java.base/java.lang.reflect.Field.checkCanSetAccessible(Unknown Source) 13:07:27 at java.base/java.lang.reflect.Field.setAccessible(Unknown Source) 13:07:27 at org.jvnet.winp.WinProcess.<init>(WinProcess.java:44) 13:07:27 at hudson.util.ProcessTree$Windows.get(ProcessTree.java:696) 13:07:27 at hudson.util.ProcessTree.killAll(ProcessTree.java:182) 13:07:27 at hudson.Proc$LocalProc.destroy(Proc.java:390) 13:07:27 at hudson.Proc$LocalProc.kill(Proc.java:382) 13:07:27 at hudson.Proc$1.run(Proc.java:167) 13:07:27 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 13:07:27 at java.base/java.util.concurrent.FutureTask.run(Unknown Source) 13:07:27 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 13:07:27 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 13:07:27 at java.base/java.lang.Thread.run(Unknown Source)
I've seen similar issues before and I'm pretty sure that it's related to JRE 17. Hopefully the stack trace will be helpful.
- links to