java.lang.LinkageError: loader (instance of org/bukkit/plugin/java/PluginClassLoader): attempted duplicate class definition for name: "com/mongodb/client/model/Filters"

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 Stack Overflow by Franz-kun
, 1 year ago
loader (instance of org/bukkit/plugin/java/PluginClassLoader): attempted duplicate class definition for name: "com/mongodb/client/model/Filters"
via asyncified.io by Unknown author, 1 year ago
loader constraint violation: loader (instance of org/apache/spark/util/ChildFirstURLClassLoader) previously initiated loading for a different type with name "org/slf4j/Logger"
via maven-users by Henrik Eriksson, 1 year ago
loader constraint violation: loader (instance >>> of sun/misc/Launcher$AppClassLoader) previously initiated loading for a different type wit h name "com/sun/tools/javac/code/Symbol"
via apache.org by Unknown author, 2 years ago
loader constraint violation: loader (instance >>> of sun/misc/Launcher$AppClassLoader) previously initiated loading for a different type wit h name "com/sun/tools/javac/code/Symbol"
via GitHub by svenwaibel
, 2 years ago
loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "..../ToTest$1"
via GitHub by Botanistt
, 1 year ago
loader (instance of org/bukkit/plugin/java/PluginClassLoader): attempted duplicate class definition for name: "com/massivecraft/massivecore/mixin/Mixin"
java.lang.LinkageError: loader (instance of org/bukkit/plugin/java/PluginClassLoader): attempted duplicate class definition for name: "com/mongodb/client/model/Filters"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101)
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:195)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:97)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at me.franzsan.data.mongo.MongoCharacter.existsCharacter(MongoCharacter.java:109)
at me.franzsan.data.mongo.MongoCharacter.lambda$loadCharacter$0(MongoCharacter.java:44)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

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.