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"

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via SpringSource Issue Tracker by Martin Lippert (c), 1 year ago
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"
via SpringSource Issue Tracker by Martin Lippert, 1 year ago
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"
via GitHub by yk256
, 1 year ago
loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "com/eclipsesource/json/JsonObject"
via MuleSoft JIRA by Mariano De Sousa Bispo, 1 year ago
loader (instance of org/mule/runtime/module/launcher/MuleSharedDomainClassLoader): attempted duplicate class definition for name: "org/mule/runtime/module/artifact/classloader/DefaultResourceReleaser"
via Stack Overflow by Chris Wood
, 1 year ago
loader constraint violation: loader (instance of sun/misc/Launcher$AppClassLoader) previously initiated loading for a different type with name "mycompany/common/logging/ISmLog"
, 9 months ago
loader (instance of net/minecraftforge/fml/common/eventhandler/ASMEventHandler$ASMClassLoader): attempted duplicate class definition for name: "net/minecraftforge/fml/common/eventhandler/ASMEventHandler_192_TRPowerNet_tick_PowerTickEvent"
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.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 java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2570)
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)

Users with the same issue

2 times, 2 months ago
44 times, 4 months ago
4 times, 7 months ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 day ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.