java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/osgi/framework/BundleContext"

SpringSource Issue Tracker | Martin Lippert | 3 years ago
  1. 0

    I took GGTS and installed everything from the distribution update repository into it. Then installation went fine, but after a successful restart, I get this error message when opening the "new Roo project" wiazrd: {noformat} An internal error occurred during: "Initializing Spring Roo Tooling". loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/osgi/framework/BundleContext" java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/osgi/framework/BundleContext" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:638) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:613) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:574) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2570) at java.lang.Class.getDeclaredField(Class.java:2055) at org.springframework.ide.eclipse.roo.core.RooCoreActivator.setField(RooCoreActivator.java:140) at org.springframework.ide.eclipse.roo.core.RooCoreActivator.registerHttpPgpUrlHandler(RooCoreActivator.java:125) at org.springframework.ide.eclipse.roo.core.RooCoreActivator.access$0(RooCoreActivator.java:107) at org.springframework.ide.eclipse.roo.core.RooCoreActivator$1.run(RooCoreActivator.java:78) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) {noformat}

    SpringSource Issue Tracker | 3 years ago | Martin Lippert (c)
    java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/osgi/framework/BundleContext"
  2. 0

    I took GGTS and installed everything from the distribution update repository into it. Then installation went fine, but after a successful restart, I get this error message when opening the "new Roo project" wiazrd: {noformat} An internal error occurred during: "Initializing Spring Roo Tooling". loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/osgi/framework/BundleContext" java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/osgi/framework/BundleContext" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:638) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:613) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:574) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2570) at java.lang.Class.getDeclaredField(Class.java:2055) at org.springframework.ide.eclipse.roo.core.RooCoreActivator.setField(RooCoreActivator.java:140) at org.springframework.ide.eclipse.roo.core.RooCoreActivator.registerHttpPgpUrlHandler(RooCoreActivator.java:125) at org.springframework.ide.eclipse.roo.core.RooCoreActivator.access$0(RooCoreActivator.java:107) at org.springframework.ide.eclipse.roo.core.RooCoreActivator$1.run(RooCoreActivator.java:78) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) {noformat}

    SpringSource Issue Tracker | 3 years ago | Martin Lippert
    java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/osgi/framework/BundleContext"
  3. 0

    java.lang.LinkageError on Websphere while trying to load HttpUriRequest

    Stack Overflow | 2 years ago | BackSlash
    java.lang.LinkageError: loader constraint violation: loader "org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader@208c132" previously initiated loading for a different type with name "org/apache/http/client/methods/HttpUriRequest" defined by loader "com/ibm/ws/classloader/CompoundClassLoader@1e0f797"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    LinkageError thrown when attempting to pass instance of class between 2 eclipse plugins

    Stack Overflow | 7 years ago | Ed .
    java.lang.LinkageError: Class com/test/reporting/NrDsDriverProvider violates loader constraints
  6. 0

    LinkageError thrown when attempting to pass instance of class between 2 eclipse plugins

    sohu.io | 1 year ago
    java.lang.LinkageError: Class com/test/reporting/NrDsDriverProvider violates loader constraints

    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 org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/osgi/framework/BundleContext"

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      ClassLoader.defineClass
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:760)
      2 frames
    3. Eclipse OSGi
      DefaultClassLoader.findLocalClass
      1. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
      2. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:638)
      3. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:613)
      4. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:574)
      5. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)
      6. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)
      7. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
      7 frames
    4. Eclipse OSGi
      BundleLoader.findClass
      1. org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
      2. org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
      3. org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
      4. org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
      4 frames
    5. Eclipse OSGi
      DefaultClassLoader.loadClass
      1. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      1 frame
    6. Java RT
      Class.getDeclaredField
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      2. java.lang.Class.getDeclaredFields0(Native Method)
      3. java.lang.Class.privateGetDeclaredFields(Class.java:2570)
      4. java.lang.Class.getDeclaredField(Class.java:2055)
      4 frames
    7. org.springframework.ide
      RooCoreActivator$1.run
      1. org.springframework.ide.eclipse.roo.core.RooCoreActivator.setField(RooCoreActivator.java:140)
      2. org.springframework.ide.eclipse.roo.core.RooCoreActivator.registerHttpPgpUrlHandler(RooCoreActivator.java:125)
      3. org.springframework.ide.eclipse.roo.core.RooCoreActivator.access$0(RooCoreActivator.java:107)
      4. org.springframework.ide.eclipse.roo.core.RooCoreActivator$1.run(RooCoreActivator.java:78)
      4 frames
    8. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      1 frame