Axis2
  1. Axis2
  2. AXIS2-4901

LinkageError related to DOM classes when using the codegen plugin for Eclipse

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.5.4
    • Component/s: ide plugins
    • Labels:
      None
    • Environment:
      Eclipse : Version: Helios Service Release 1
      Build id: 20100917-0705, OS: Windows; axis2-eclipse-codegen-plugin-1.5.3

      Description

      After installing the code gen plugin, you restart the eclipse and click on the Axis2 Code Generator in the Axis2Wizards This log props out

      An error has occurred. See error log for more details.
      loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.CoreDocumentImpl.getDomConfig()Lorg/w3c/dom/DOMConfiguration;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/apache/xerces/dom/CoreDocumentImpl, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Document have different Class objects for the type org/w3c/dom/DOMConfiguration used in the signature.

      In addition this is the error log which throws up

      Message:
      Problems occurred when invoking code from plug-in: "org.eclipse.jface".

      Exception Stack Trace:
      java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.CoreDocumentImpl.getDomConfig()Lorg/w3c/dom/DOMConfiguration;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/apache/xerces/dom/CoreDocumentImpl, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Document have different Class objects for the type org/w3c/dom/DOMConfiguration used in the signature
      at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
      at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
      at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
      at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
      at org.apache.axis2.tool.codegen.eclipse.util.WSDLPropertyReader.readWSDL(WSDLPropertyReader.java:53)
      at org.apache.axis2.tool.codegen.eclipse.ui.OptionsPage.populateParamsFromWSDL(OptionsPage.java:759)
      [ Show » ] raghutpk added a comment - 29/Nov/10 12:07 PM In addition this is the error log which throws up Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface". Exception Stack Trace: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.CoreDocumentImpl.getDomConfig()Lorg/w3c/dom/DOMConfiguration;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/apache/xerces/dom/CoreDocumentImpl, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Document have different Class objects for the type org/w3c/dom/DOMConfiguration used in the signature at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.apache.axis2.tool.codegen.eclipse.util.WSDLPropertyReader.readWSDL(WSDLPropertyReader.java:53) at org.apache.axis2.tool.codegen.eclipse.ui.OptionsPage.populateParamsFromWSDL(OptionsPage.java:759)

      -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      I reproduced the issue when I created a new wsdl in a java project in eclipse and then tried to access the Axis2CodeGenerator.When I click on it the above screen props out

      Please look into it asap.

        Activity

        raghutpk created issue -
        Andreas Veithen made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Andreas Veithen [ veithen ]
        Fix Version/s 1.5.4 [ 12315568 ]
        Resolution Fixed [ 1 ]
        Andreas Veithen made changes -
        Component/s codegen [ 12311413 ]
        Summary Problems occurred when invoking code from plug-in: "org.eclipse.jface". LinkageError related to DOM classes when using the codegen plugin for Eclipse
        Component/s ide plugins [ 12311411 ]

          People

          • Assignee:
            Andreas Veithen
            Reporter:
            raghutpk
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development