java.lang.LinkageError: loader constraint violation: loader (instance of sun/misc/Launcher$AppClassLoader) previously initiated loading for a different type with name "com/sun/tools/xjc/Plugin"

netbeans.org | 3 months ago
  1. 0

    NetBeans Forums - Error parsing WSDL schema on one computer, but works on another

    netbeans.org | 1 year ago
    java.lang.LinkageError: loader constraint violation: loader (instance of sun/misc/Launcher$AppClassLoader) previously initiated loading for a different type with name "com/sun/tools/xjc/Plugin"
  2. 0

    NetBeans Forums - Error parsing WSDL schema on one computer, but works on another

    netbeans.org | 3 months ago
    java.lang.LinkageError: loader constraint violation: loader (instance of sun/misc/Launcher$AppClassLoader) previously initiated loading for a different type with name "com/sun/tools/xjc/Plugin"
  3. 0

    NetBeans AppClassLoader error parsing WSDL schema on one computer, but works on another

    Stack Overflow | 2 years ago | Steve Nay
    java.lang.LinkageError: loader constraint violation: loader (instance of sun/misc/Launcher$AppClassLoader) previously initiated loading for a different type with name "com/sun/tools/xjc/Plugin"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Linkage error in JMockit 1.12

    GitHub | 2 years ago | svenwaibel
    java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "..../ToTest$1"
  6. 0

    JMockit 1.10 causes linkage errors when used with eclEmma or Cobertura

    GitHub | 2 years ago | drath3000
    java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "my/pkg/TestMyBean$1"

    7 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 sun/misc/Launcher$AppClassLoader) previously initiated loading for a different type with name "com/sun/tools/xjc/Plugin"

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClass(Unknown Source)
      3. java.security.SecureClassLoader.defineClass(Unknown Source)
      4. java.net.URLClassLoader.defineClass(Unknown Source)
      5. java.net.URLClassLoader.access$100(Unknown Source)
      6. java.net.URLClassLoader$1.run(Unknown Source)
      7. java.net.URLClassLoader$1.run(Unknown Source)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. java.net.URLClassLoader.findClass(Unknown Source)
      10. java.lang.ClassLoader.loadClass(Unknown Source)
      11. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      12. java.lang.ClassLoader.loadClass(Unknown Source)
      13. java.lang.ClassLoader.defineClass1(Native Method)
      14. java.lang.ClassLoader.defineClass(Unknown Source)
      15. java.security.SecureClassLoader.defineClass(Unknown Source)
      16. java.net.URLClassLoader.defineClass(Unknown Source)
      17. java.net.URLClassLoader.access$100(Unknown Source)
      18. java.net.URLClassLoader$1.run(Unknown Source)
      19. java.net.URLClassLoader$1.run(Unknown Source)
      20. java.security.AccessController.doPrivileged(Native Method)
      21. java.net.URLClassLoader.findClass(Unknown Source)
      22. java.lang.ClassLoader.loadClass(Unknown Source)
      23. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      24. java.lang.ClassLoader.loadClass(Unknown Source)
      24 frames
    3. Old JAXB XJC
      MaskingClassLoader.loadClass
      1. com.sun.istack.tools.MaskingClassLoader.loadClass(MaskingClassLoader.java:82)
      1 frame
    4. Java RT
      ServiceLoader$1.next
      1. java.lang.ClassLoader.loadClass(Unknown Source)
      2. java.lang.ClassLoader.loadClass(Unknown Source)
      3. java.lang.ClassLoader.loadClass(Unknown Source)
      4. java.lang.Class.forName0(Native Method)
      5. java.lang.Class.forName(Unknown Source)
      6. java.util.ServiceLoader$LazyIterator.next(Unknown Source)
      7. java.util.ServiceLoader$1.next(Unknown Source)
      7 frames
    5. Old JAXB XJC
      Driver$1.run
      1. com.sun.tools.xjc.Options.findServices(Options.java:957)
      2. com.sun.tools.xjc.Options.getAllPlugins(Options.java:374)
      3. com.sun.tools.xjc.reader.AbstractExtensionBindingChecker.<init>(AbstractExtensionBindingChecker.java:100)
      4. com.sun.tools.xjc.reader.ExtensionBindingChecker.<init>(ExtensionBindingChecker.java:81)
      5. com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:264)
      6. com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347)
      7. com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:128)
      8. com.sun.xml.xsom.impl.parser.ParserContext.<init>(ParserContext.java:100)
      9. com.sun.xml.xsom.parser.XSOMParser.<init>(XSOMParser.java:113)
      10. com.sun.tools.xjc.ModelLoader.createXSOMParser(ModelLoader.java:437)
      11. com.sun.tools.xjc.ModelLoader.createXSOMSpeculative(ModelLoader.java:510)
      12. com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:369)
      13. com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:174)
      14. com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:119)
      15. com.sun.tools.xjc.Driver.run(Driver.java:333)
      16. com.sun.tools.xjc.Driver.run(Driver.java:200)
      17. com.sun.tools.xjc.Driver._main(Driver.java:123)
      18. com.sun.tools.xjc.Driver.access$000(Driver.java:80)
      19. com.sun.tools.xjc.Driver$1.run(Driver.java:103)
      19 frames