Unable to Launch Agent due to 'LinkageError' failing to load 'jenkins.util.SystemProperties'

Issue

  • Agents sometimes fails to launch due to LinkageErrors like the following:
Caused by: java.lang.LinkageError: Failed to load jenkins.util.SystemProperties
     at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:385)
     at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:293)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
     at hudson.FilePath.<clinit>(FilePath.java:2363)
     [...]
 Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
     at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:381)
     at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:293)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
     at hudson.FilePath.<clinit>(FilePath.java:2363)
     [...]
 Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContextListener

Environment

Related Issue(s)

Resolution

This is caused by a known issue JENKINS-46386 fixed in Jenkins LTS 2.107.3 ( 2.113 of Jenkins LTS).

Solution

The solution is to upgrade core to version 2.107.3 or later.

Have more questions?

0 Comments

Please sign in to leave a comment.