java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory

Atlassian JIRA | Manjunath Kanakagiri | 3 years ago
  1. 0

    I am working on Jira SDK 6.1.6 to develop a plugin connecting to MicroSoft Web services, in Eclipse with java (1.6) everything goes fine to connect to the MS Web Services. Did debug the web service call to see if the request is able to find the com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory in Eclipse, and yes was able find from "rt.jar" (in JRE/lib folder, Java default implementation). When tried to deploy the same plugin (developed) into Jira instance downloaded from the URL (http://www.atlassian.com/software/jira/download) 64 bit windows instance. (Jira instances 6.1.5, 6.2.3 and 6.2.4 versions, Same error on all the 3 versions). After deploying the plugin get the Initial error: javax.xml.stream.FactoryFinder$ConfigurationError: Provider com.ctc.wstx.stax.WstxInputFactory not found at javax.xml.stream.FactoryFinder.newInstance(Unknown Source) at javax.xml.stream.FactoryFinder.findJarServiceProvider(Unknown Source) at javax.xml.stream.FactoryFinder.find(Unknown Source) at javax.xml.stream.FactoryFinder.find(Unknown Source) at javax.xml.stream.XMLInputFactory.newInstance(Unknown Source) at com.sun.xml.internal.ws.policy.sourcemodel.XmlPolicyModelUnmarshaller.createXMLEventReader(Unknown Source) . . . And after refresh the browser get the error: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source) . . . Attached are the files with complete stack trace. Extracted the rt.jar from Jira installation path (<installation_folder>\Atlassian\JIRA\jre\lib\rt.jar) Even though the JRE/lib contains the com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory class, but not available at run time. Had a look on https://jira.atlassian.com/browse/JRA-26214 https://jira.atlassian.com/browse/CONF-27669 and tried to read the documentation how to use the workaround as in URL (https://bitbucket.org/fakraemer/confluence-smithereens/src/aa131c174b24/src/main/java/com/atlassian/confluence/plugins/smithereens/DefaultXmlFactoryFacade.java?at=refactoring#cl-27) which does not exist! Help would be greatly appreciated for any workaround or fix to deploy the plugin into Jira instance. --Thanks Manjunath

    Atlassian JIRA | 3 years ago | Manjunath Kanakagiri
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory
  2. 0

    I am working on Jira SDK 6.1.6 to develop a plugin connecting to MicroSoft Web services, in Eclipse with java (1.6) everything goes fine to connect to the MS Web Services. Did debug the web service call to see if the request is able to find the com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory in Eclipse, and yes was able find from "rt.jar" (in JRE/lib folder, Java default implementation). When tried to deploy the same plugin (developed) into Jira instance downloaded from the URL (http://www.atlassian.com/software/jira/download) 64 bit windows instance. (Jira instances 6.1.5, 6.2.3 and 6.2.4 versions, Same error on all the 3 versions). After deploying the plugin get the Initial error: javax.xml.stream.FactoryFinder$ConfigurationError: Provider com.ctc.wstx.stax.WstxInputFactory not found at javax.xml.stream.FactoryFinder.newInstance(Unknown Source) at javax.xml.stream.FactoryFinder.findJarServiceProvider(Unknown Source) at javax.xml.stream.FactoryFinder.find(Unknown Source) at javax.xml.stream.FactoryFinder.find(Unknown Source) at javax.xml.stream.XMLInputFactory.newInstance(Unknown Source) at com.sun.xml.internal.ws.policy.sourcemodel.XmlPolicyModelUnmarshaller.createXMLEventReader(Unknown Source) . . . And after refresh the browser get the error: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source) . . . Attached are the files with complete stack trace. Extracted the rt.jar from Jira installation path (<installation_folder>\Atlassian\JIRA\jre\lib\rt.jar) Even though the JRE/lib contains the com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory class, but not available at run time. Had a look on https://jira.atlassian.com/browse/JRA-26214 https://jira.atlassian.com/browse/CONF-27669 and tried to read the documentation how to use the workaround as in URL (https://bitbucket.org/fakraemer/confluence-smithereens/src/aa131c174b24/src/main/java/com/atlassian/confluence/plugins/smithereens/DefaultXmlFactoryFacade.java?at=refactoring#cl-27) which does not exist! Help would be greatly appreciated for any workaround or fix to deploy the plugin into Jira instance. --Thanks Manjunath

    Atlassian JIRA | 3 years ago | Manjunath Kanakagiri
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory
  3. 0

    gUSE grid and cloud science gateway / Discussion / Open Discussion:Problem on the Data Avenue portlet

    sourceforge.net | 12 months ago
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    gUSE grid and cloud science gateway / Discussion / Open Discussion:Problem on the Data Avenue portlet

    sourceforge.net | 7 months ago
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory
  6. 0

    LinkageError: have different Class objects for ... | Oracle Community

    oracle.com | 8 months ago
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory

    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.NoClassDefFoundError

      Could not initialize class com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory

      at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader()
    2. Java RT
      WSServiceDelegate.<init>
      1. com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(Unknown Source)
      2. com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(Unknown Source)
      3. com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
      4. com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
      5. com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source)
      6. com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
      6 frames