java.lang.LinkageError: loader (instance of lombok/launch/ShadowClassLoader): attempted duplicate class definition for name: "lombok/launch/PatchFixesHider$PatchFixes"


Solutions on the web392

Solution icon of github
loader (instance of lombok/launch/ShadowClassLoader): attempted duplicate class definition for name: "lombok/launch/PatchFixesHider$PatchFixes"

Solution icon of github
loader (instance of microsoft/servicefabric/services/remoting/builder/CodeBuilderClassLoader): attempted duplicate class definition for name: "fooBarReqBody"

Solution icon of github
via GitHub by svenwaibel
, 1 year ago
loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "..../ToTest$1"

Solution icon of jenkins
via Jenkins JIRA by olamy, 1 year ago
loader (instance of hudson/remoting/RemoteClassLoader): attempted duplicate class definition for name: "hudson/model/Run"

Solution icon of web
loader (instance of groovy/lang/GroovyClassLoader$InnerLoader): attempted duplicate class definition for name: "A$1"

Solution icon of bugzilla
via Eclipse Bugzilla by mtaal, 1 year ago
loader (instance of hudson/remoting/RemoteClassLoader): attempted duplicate class definition for name: "hudson/scm/RepositoryBrowser"

Solution icon of bugzilla
via Eclipse Bugzilla by david_williams, 1 year ago
loader (instance of hudson/remoting/RemoteClassLoader): attempted duplicate class definition for name: "hudson/model/AbstractProject"

Solution icon of github
via GitHub by geert3
, 9 months ago
loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "NewClass"

Solution icon of apache
via hive-dev by Apache Jenkins Server, 1 year ago
loader (instance of hudson/remoting/RemoteClassLoader): attempted duplicate class definition for name: "hudson/model/Descriptor"

Solution icon of github
loader (instance of ro/fortsoft/pf4j/PluginClassLoader): attempted duplicate class definition for name: "com/foo/MyExtension"

Stack trace

java.lang.LinkageError: loader (instance of  lombok/launch/ShadowClassLoader): attempted  duplicate class definition for name: "lombok/launch/PatchFixesHider$PatchFixes"
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
	at lombok.launch.ShadowClassLoader.loadClass(ShadowClassLoader.java:448)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.overrideLoadResult(ModuleClassLoader.java:117)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.eclipse.jdt.internal.ui.search.OccurrencesFinder.addUsage(OccurrencesFinder.java)
	at org.eclipse.jdt.internal.ui.search.OccurrencesFinder.visit(OccurrencesFinder.java:158)
	at org.eclipse.jdt.core.dom.QualifiedName.accept0(QualifiedName.java:168)
	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
	at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2759)
	at org.eclipse.jdt.core.dom.PackageDeclaration.accept0(PackageDeclaration.java:225)
	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
	at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2759)
	at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:210)
	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
	at org.eclipse.jdt.internal.ui.search.OccurrencesFinder.performSearch(OccurrencesFinder.java:102)
	at org.eclipse.jdt.internal.ui.search.OccurrencesFinder.getOccurrences(OccurrencesFinder.java:108)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.updateOccurrenceAnnotations(JavaEditor.java:3338)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$6.selectionChanged(JavaEditor.java:3364)
	at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:182)
	at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$3.run(SelectionListenerWithASTManager.java:158)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 months ago
4 times, 4 months ago
44 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
41 more bugmates