Class.privateGetDeclaredMethods() has thrown a LinkageError

java.lang.LinkageError
Javadoc
Subclasses of {@code LinkageError} indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class. @author Frank Yellin @since JDK1.0
at java.lang.Class.getDeclaredMethods0
(source)
at java.lang.Class.privateGetDeclaredMethods
(source)

Typical Exception Messages

  1. loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"
  2. loader constraint violation: loader (instance of org/apache/jasper/servlet/JasperLoader) previously initiated loading for a different type with name "javax/servlet/http/HttpServletRequest"
  3. loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"
  4. java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/NamedNodeMap"
  5. loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/Document"
  6. java.lang.LinkageError: loader constraint violation: loader (instance of &lt;bootloader&gt;) previously initiated loading for a different type with name "org/w3c/dom/DOMConfiguration"
  7. loader constraint violation: loader (instance of &lt;bootloader&gt;) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"
  8. java.lang.LinkageError: Class org/w3c/dom/NamedNodeMap violates loader constraints
  9. loader constraint violation: loader (instance of &lt;bootloader&gt;) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"
  10. Error during deploy: vfszip:/root/mobicents/mss-1.5.0.FINAL-jboss-jdk6-5.1.0.GA/server/all/ deploy/PSR_PS.war/

Specific cases

External results for this pattern (33)

  1. hughebavia Google Groups2 weeks ago
    loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"
    Show stack trace
  2. Unknown authorvia howtobuildsoftware.com4 months ago
    loader constraint violation: loader (instance of org/apache/jasper/servlet/JasperLoader) previously initiated loading for a different type with name "javax/servlet/http/HttpServletRequest"
    Show stack trace
  3. Unknown authorvia databasefaq.com4 months ago
    loader constraint violation: loader (instance of org/apache/jasper/servlet/JasperLoader) previously initiated loading for a different type with name "javax/servlet/http/HttpServletRequest"
    Show stack trace
  4. MauricioTLvia Stack Overflow4 months ago
    loader constraint violation: loader (instance of org/apache/jasper/servlet/JasperLoader) previously initiated loading for a different type with name "javax/servlet/http/HttpServletRequest"
    Show stack trace
  5. Unknown authorvia coderanch.com4 months ago
    java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/NamedNodeMap"
    Show stack trace
  6. Unknown authorvia hhutzler.de4 months ago
    loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"
    Show stack trace
  7. Unknown authorvia blogspot.com4 months ago
    loader constraints violated when linking javax/faces/validator/Validator class
    Show stack trace
  8. Unknown authorvia eclipse.org4 months ago
    loader constraint violation: when resolving overridden method "org.apache.myfaces.taglib.core.SubviewTag.createVerbatimComponentFromBodyContent()Ljavax/faces/component/UIComponent;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/apache/myfaces/taglib/core/SubviewTag, and its superclass loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader), have different Class objects for the type javax/faces/component/UIComponent used in the signature
    Show stack trace
  9. Unknown authorvia hhutzler.de4 months ago
    loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"
    Show stack trace
  10. Unknown authorvia hhutzler.de4 months ago
    loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"
    Show stack trace