java.lang.LinkageError: loader constraint violation: loader (instance of hudson/ClassicPluginStrategy$AntClassLoader2) previously initiated loading for a different type with name "org/eclipse/jgit/transport/UploadPack"

Jenkins JIRA | Edwin Floyd | 2 years ago
  1. 0

    Initial symptom was exception when saving scriptler script with message indicating unable to update git. Additional symptom is error 404 response to scriptler Git repo link. Reverting to Git Server plugin version 1.3 restores normal functionality. This start-up exception may be related: ct 17, 2014 6:14:17 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure WARNING: Failed to load org.jenkinsci.plugins.scriptler.git.GitScriptlerRepositorySSHAccess java.lang.LinkageError: loader constraint violation: loader (instance of hudson/ClassicPluginStrategy$AntClassLoader2) previously initiated loading for a different type with name "org/eclipse/jgit/transport/UploadPack" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:792) at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1138) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:756) at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1309) at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1365) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2521) at java.lang.Class.privateGetPublicMethods(Class.java:2641) at java.lang.Class.privateGetPublicMethods(Class.java:2657) at java.lang.Class.getMethods(Class.java:1457) at hudson.ExtensionFinder$GuiceFinder$SezpozModule.resolve(ExtensionFinder.java:481) at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:508) at com.google.inject.AbstractModule.configure(AbstractModule.java:62) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:230) at com.google.inject.spi.Elements.getElements(Elements.java:103) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104) at com.google.inject.Guice.createInjector(Guice.java:96) at com.google.inject.Guice.createInjector(Guice.java:73) at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:279) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at net.java.sezpoz.IndexItem.instance(IndexItem.java:181) at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:639) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:614) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:343) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.iterator(ExtensionList.java:143) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:336) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.getComponents(ExtensionList.java:154) at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:182) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.iterator(ExtensionList.java:143) at org.jenkinsci.plugins.xunit.AliasInitializer.addAliases(AliasInitializer.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:885) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)

    Jenkins JIRA | 2 years ago | Edwin Floyd
    java.lang.LinkageError: loader constraint violation: loader (instance of hudson/ClassicPluginStrategy$AntClassLoader2) previously initiated loading for a different type with name "org/eclipse/jgit/transport/UploadPack"
  2. 0

    Initial symptom was exception when saving scriptler script with message indicating unable to update git. Additional symptom is error 404 response to scriptler Git repo link. Reverting to Git Server plugin version 1.3 restores normal functionality. This start-up exception may be related: ct 17, 2014 6:14:17 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure WARNING: Failed to load org.jenkinsci.plugins.scriptler.git.GitScriptlerRepositorySSHAccess java.lang.LinkageError: loader constraint violation: loader (instance of hudson/ClassicPluginStrategy$AntClassLoader2) previously initiated loading for a different type with name "org/eclipse/jgit/transport/UploadPack" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:792) at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1138) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:756) at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1309) at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1365) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2521) at java.lang.Class.privateGetPublicMethods(Class.java:2641) at java.lang.Class.privateGetPublicMethods(Class.java:2657) at java.lang.Class.getMethods(Class.java:1457) at hudson.ExtensionFinder$GuiceFinder$SezpozModule.resolve(ExtensionFinder.java:481) at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:508) at com.google.inject.AbstractModule.configure(AbstractModule.java:62) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:230) at com.google.inject.spi.Elements.getElements(Elements.java:103) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104) at com.google.inject.Guice.createInjector(Guice.java:96) at com.google.inject.Guice.createInjector(Guice.java:73) at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:279) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at net.java.sezpoz.IndexItem.instance(IndexItem.java:181) at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:639) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:614) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:343) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.iterator(ExtensionList.java:143) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:336) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.getComponents(ExtensionList.java:154) at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:182) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.iterator(ExtensionList.java:143) at org.jenkinsci.plugins.xunit.AliasInitializer.addAliases(AliasInitializer.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:885) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)

    Jenkins JIRA | 2 years ago | Edwin Floyd
    java.lang.LinkageError: loader constraint violation: loader (instance of hudson/ClassicPluginStrategy$AntClassLoader2) previously initiated loading for a different type with name "org/eclipse/jgit/transport/UploadPack"
  3. 0

    Start Glassfish 4.0 with Error

    Stack Overflow | 3 years ago | javagc
    java.lang.LinkageError: loader (instance of org/glassfish/web/loader/WebappClassLoader): attempted duplicate class definition for name: "org/glassfish/web/loader/JdbcLeakPrevention"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OSGI 5.5.1 project fails due to clash with Felix Framework.

    GitHub | 2 years ago | inthegarage
    java.lang.LinkageError: loader constraint violation: loader (instance of org/apa che/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) previously initiate d loading for a different type with name "org/osgi/framework/BundleContext"
  6. 0

    Creation of ATG module

    Oracle Community | 2 years ago | anupamazagabathuni
    java.lang.LinkageError: loader (instance of atg/nucleus/ServicesManifestClassLoaderService$ClassLoaderServiceOwnedServicesManifestClassLoader): attempted duplicate class definition for name: "atg/security/opss/csf/CredentialStoreManagerImpl"

    19 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraint violation: loader (instance of hudson/ClassicPluginStrategy$AntClassLoader2) previously initiated loading for a different type with name "org/eclipse/jgit/transport/UploadPack"

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      ClassLoader.defineClass
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:792)
      2 frames
    3. jenkins.util
      AntClassLoader.defineClassFromData
      1. jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1138)
      1 frame
    4. Hudson
      ClassicPluginStrategy$AntClassLoader2.defineClassFromData
      1. hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:756)
      1 frame
    5. jenkins.util
      AntClassLoader.loadClass
      1. jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1309)
      2. jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1365)
      3. jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
      4. jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
      4 frames
    6. Java RT
      Class.getMethods
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      2. java.lang.Class.getDeclaredMethods0(Native Method)
      3. java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
      4. java.lang.Class.privateGetPublicMethods(Class.java:2641)
      5. java.lang.Class.privateGetPublicMethods(Class.java:2657)
      6. java.lang.Class.getMethods(Class.java:1457)
      6 frames
    7. Hudson
      ExtensionFinder$GuiceFinder$SezpozModule.configure
      1. hudson.ExtensionFinder$GuiceFinder$SezpozModule.resolve(ExtensionFinder.java:481)
      2. hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:508)
      2 frames
    8. Google Guice - Core Library
      Guice.createInjector
      1. com.google.inject.AbstractModule.configure(AbstractModule.java:62)
      2. com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:230)
      3. com.google.inject.spi.Elements.getElements(Elements.java:103)
      4. com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
      5. com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
      6. com.google.inject.Guice.createInjector(Guice.java:96)
      7. com.google.inject.Guice.createInjector(Guice.java:73)
      7 frames
    9. Hudson
      ExtensionFinder$GuiceFinder.<init>
      1. hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:279)
      1 frame
    10. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      5. java.lang.Class.newInstance(Class.java:374)
      5 frames
    11. SezPoz
      IndexItem.instance
      1. net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
      1 frame
    12. Hudson
      ExtensionList.iterator
      1. hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:639)
      2. hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:614)
      3. hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:343)
      4. hudson.ExtensionList.load(ExtensionList.java:300)
      5. hudson.ExtensionList.ensureLoaded(ExtensionList.java:253)
      6. hudson.ExtensionList.iterator(ExtensionList.java:143)
      7. hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:336)
      8. hudson.ExtensionList.load(ExtensionList.java:300)
      9. hudson.ExtensionList.ensureLoaded(ExtensionList.java:253)
      10. hudson.ExtensionList.getComponents(ExtensionList.java:154)
      11. hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:182)
      12. hudson.ExtensionList.ensureLoaded(ExtensionList.java:253)
      13. hudson.ExtensionList.iterator(ExtensionList.java:143)
      13 frames
    13. org.jenkinsci.plugins
      AliasInitializer.addAliases
      1. org.jenkinsci.plugins.xunit.AliasInitializer.addAliases(AliasInitializer.java:47)
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    15. Hudson
      TaskMethodFinder$TaskImpl.run
      1. hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105)
      2. hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169)
      2 frames
    16. init
      Reactor.runTask
      1. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      1 frame
    17. jenkins.model
      Jenkins$7.runTask
      1. jenkins.model.Jenkins$7.runTask(Jenkins.java:885)
      1 frame
    18. init
      Reactor$Node.run
      1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      2 frames
    19. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:724)
      3 frames