Announcement Announcement Module
No announcement yet.
Using AxiomSoapMessageFactory under Java 6 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using AxiomSoapMessageFactory under Java 6

    I'm trying to switch from SaajSoapMessageFactory to AxiomSoapMessageFactory to take advantage of the streaming capabilities it offers. But when I switch I'm getting a CCE when calling peek() on the XMLEventReader passed to me in my endpoint:

    java.lang.ClassCastException: org.apache.axiom.util.namespace.MapBasedNamespaceC ontext cannot be cast to ontextWrapper
    at orImpl.setNamespaceContext(XMLEventAllocatorImpl.j ava:250)
    at orImpl.getXMLEvent(
    at orImpl.allocate(
    at k(
    at point.invokeInternal(SOAPStaxEventPayLoadEndPoint. java:142)
    at xEventPayloadEndpoint.invoke(AbstractStaxEventPayl
    at sageEndpointAdapter.invoke(MessageEndpointAdapter. java:41)
    at spatch(
    at ceive(
    at eMessageReceiverObjectSupport.handleConnection(Web
    at ssageReceiverHandlerAdapter.handle(WebServiceMessa
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(

    Obviously there's some conflict between Axiom and the JDKs StAX implementation, but I'm not sure how to solve it. Any ideas?

  • #2
    I managed to fix this error by adding Woodstox to the CP, but now I'm getting a different exception:

    java.lang.ClassCastException: com.ctc.wstx.evt.WNamespace cannot be cast to java.lang.String
    at formerImpl.transform(
    at formerImpl.transform(
    at esolveExceptionInternal( :91)