java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLStreamReader"

axis-java-dev | Andy Schmidt (JIRA) | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [jira] [Created] (AXIS2-5625) java.lang.LinkageError: "javax/xml/stream/XMLStreamReader" by using org.apache.axiom.om.impl.llom.OMStAXWrapper

    axis-java-dev | 3 years ago | Andy Schmidt (JIRA)
    java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLStreamReader"

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraint violation: loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLStreamReader"

      at com.moodykettle.webservice.helloworld.SayHello$Factory.parse()
    2. com.moodykettle.webservice
      SayHello$Factory.parse
      1. com.moodykettle.webservice.helloworld.SayHello$Factory.parse(SayHello.java:354)
      1 frame
    3. de.kisters.amigw
      HelloWorldServiceMessageReceiverInOut.invokeBusinessLogic
      1. de.kisters.amigw.mds.web.service.HelloWorldServiceMessageReceiverInOut.fromOM(HelloWorldServiceMessageReceiverInOut.java:138)
      2. de.kisters.amigw.mds.web.service.HelloWorldServiceMessageReceiverInOut.invokeBusinessLogic(HelloWorldServiceMessageReceiverInOut.java:43)
      2 frames
    4. org.apache.axis2
      AxisEngine.receive
      1. org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
      2. org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
      3. org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
      3 frames
    5. Apache Axis2 - Transport - HTTP
      AxisServlet.doPost
      1. org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
      2. org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
      2 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    7. Felix Http Bridge
      DispatcherServlet.service
      1. org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
      2. org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
      3. org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
      4. org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
      5. org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      6. org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
      7. org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
      8. org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
      8 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    9. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      3. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      4. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      5. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      6. org.mortbay.jetty.Server.handle(Server.java:326)
      7. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      8. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)
      9. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
      10. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      11. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      12. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      12 frames
    10. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame