Introduction
Jenkins start-up fails with a stacktrace similar to the one below. Taking a look at the stacktrace, it seems that the problem is in the depgraph-view
plugin, but the problem is actually in the jacoco
plugin.
2021-07-09 07:27:57.026+0000 [id=44] SEVERE h.ExtensionFinder$GuiceFinder#<init>: Failed to create Guice container from all the plugins
java.lang.LinkageError: loader constraint violation: loader (instance of hudson/PluginFirstClassLoader) previously initiated loading for a different type with name "com/google/inject/Binder"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1155)
at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1326)
at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1377)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1342)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1095)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.google.inject.multibindings.Multibinder.newSetBinder(Multibinder.java:136)
at com.google.inject.multibindings.Multibinder.newSetBinder(Multibinder.java:99)
at hudson.plugins.depgraph_view.model.graph.DependencyGraphModule.configure(DependencyGraphModule.java:49)
Environment
- CloudBees CI (CloudBees Core)
- CloudBees CI (CloudBees Core) on modern cloud platforms - Managed controller
- CloudBees CI (CloudBees Core) on modern cloud platforms - Operations Center
- CloudBees CI (CloudBees Core) on traditional platforms - Client controller
- CloudBees CI (CloudBees Core) on traditional platforms - Operations Center
- CloudBees Jenkins Platform - Client controller
- CloudBees Jenkins Platform - Operations Center
- CloudBees Jenkins Platform - Client controller
- CloudBees Jenkins Platform - Operations Center
- CloudBees Jenkins Platform - Client controller
- CloudBees Jenkins Platform - Operations Center
- CloudBees Jenkins Distribution
- CloudBees Jenkins Enterprise
- Jenkins LTS
Resolution
This issue is actually being tracked as JENKINS-65757 and it is fixed in jacoco-3.3.0
. Notice that this version requires dashboard-view-2.17
, or higher, thus you might need to upgrade this plugin as well to make the Controller to be up and running again.
0 Comments