Announcement Announcement Module
Collapse
No announcement yet.
Can't transform a Source of type javax.xml.transform.stax.StAXSource Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't transform a Source of type javax.xml.transform.stax.StAXSource

    Hi Everybody,


    I am using camel Spring WS and I got this problem related to StAXSource (check below).

    Any idea how to solve this?

    And btw, I have also put SaajSoapMessageFactory so it would force the template using the SaajSoapMessageFactory.

    <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMe ssageFactory">
    <property name="messageFactory">
    <bean class="com.sun.xml.messaging.saaj.soap.ver1_1.SOAP MessageFactory1_1Impl"></bean>
    </property>
    </bean>



    Caused by: org.springframework.ws.client.WebServiceTransforme rException: Transformation error: Can't transform a Source of type javax.xml.transform.stax.StAXSource; nested exception is javax.xml.transform.TransformerException: Can't transform a Source of type javax.xml.transform.stax.StAXSource
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:608)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:537)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:492)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceive(WebServiceTemplate.java:4 79)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceive(WebServiceTemplate.java:4 70)
    at org.apache.camel.component.spring.ws.SpringWebserv iceProducer.process(SpringWebserviceProducer.java: 81)
    at org.apache.camel.util.AsyncProcessorConverterHelpe r$ProcessorToAsyncProcessorBridge.process(AsyncPro cessorConverterHelper.java:61)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.SendProcessor$2.doInAsy ncProducer(SendProcessor.java:120)
    at org.apache.camel.impl.ProducerCache.doInAsyncProdu cer(ProducerCache.java:292)
    at org.apache.camel.processor.SendProcessor.process(S endProcessor.java:115)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.DelegateAsyncProcessor. processNext(DelegateAsyncProcessor.java:99)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.management.InstrumentationProcess or.process(InstrumentationProcessor.java:73)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.DelegateAsyncProcessor. processNext(DelegateAsyncProcessor.java:99)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.processor.interceptor.TraceInterc eptor.process(TraceInterceptor.java:91)
    at org.apache.camel.processor.interceptor.HandleFault Interceptor.process(HandleFaultInterceptor.java:41 )
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.RedeliveryErrorHandler. processErrorHandler(RedeliveryErrorHandler.java:33 0)
    at org.apache.camel.processor.RedeliveryErrorHandler. process(RedeliveryErrorHandler.java:220)
    at org.apache.camel.processor.RouteContextProcessor.p rocessNext(RouteContextProcessor.java:45)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.processor.interceptor.DefaultChan nel.process(DefaultChannel.java:303)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.Pipeline.process(Pipeli ne.java:117)
    at org.apache.camel.processor.Pipeline.process(Pipeli ne.java:80)
    at org.apache.camel.processor.RouteContextProcessor.p rocessNext(RouteContextProcessor.java:45)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.processor.UnitOfWorkProcessor.pro cess(UnitOfWorkProcessor.java:122)
    at org.apache.camel.processor.RouteInflightRepository Processor.processNext(RouteInflightRepositoryProce ssor.java:48)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.DelegateAsyncProcessor. processNext(DelegateAsyncProcessor.java:99)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.management.InstrumentationProcess or.process(InstrumentationProcessor.java:73)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.component.direct.DirectProducer.p rocess(DirectProducer.java:61)
    at org.apache.camel.processor.UnitOfWorkProcessor.pro cessAsync(UnitOfWorkProcessor.java:150)
    at org.apache.camel.processor.UnitOfWorkProcessor.pro cess(UnitOfWorkProcessor.java:117)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:99)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:86)
    at org.apache.camel.processor.UnitOfWorkProducer.proc ess(UnitOfWorkProducer.java:63)
    at org.apache.camel.impl.ProducerCache$2.doInProducer (ProducerCache.java:360)
    at org.apache.camel.impl.ProducerCache$2.doInProducer (ProducerCache.java:331)
    at org.apache.camel.impl.ProducerCache.doInProducer(P roducerCache.java:227)
    at org.apache.camel.impl.ProducerCache.sendExchange(P roducerCache.java:331)
    at org.apache.camel.impl.ProducerCache.send(ProducerC ache.java:186)
    at org.apache.camel.impl.DefaultProducerTemplate.send (DefaultProducerTemplate.java:115)
    at org.apache.camel.impl.DefaultProducerTemplate.send Body(DefaultProducerTemplate.java:119)

  • #2
    Were you able to solve this?

    I also got the same with camel versions > 2.10.2 and registered this for it:
    https://issues.apache.org/jira/browse/CAMEL-5860 which is marked as fixed, however I now have the same problem with camel 2.11.1.
    I get this w/o using spring webservices.

    What is your camel version and JDK?

    Originally posted by porthis77 View Post
    Hi Everybody,


    I am using camel Spring WS and I got this problem related to StAXSource (check below).

    Any idea how to solve this?

    And btw, I have also put SaajSoapMessageFactory so it would force the template using the SaajSoapMessageFactory.

    <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMe ssageFactory">
    <property name="messageFactory">
    <bean class="com.sun.xml.messaging.saaj.soap.ver1_1.SOAP MessageFactory1_1Impl"></bean>
    </property>
    </bean>



    Caused by: org.springframework.ws.client.WebServiceTransforme rException: Transformation error: Can't transform a Source of type javax.xml.transform.stax.StAXSource; nested exception is javax.xml.transform.TransformerException: Can't transform a Source of type javax.xml.transform.stax.StAXSource
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:608)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:537)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:492)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceive(WebServiceTemplate.java:4 79)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceive(WebServiceTemplate.java:4 70)
    at org.apache.camel.component.spring.ws.SpringWebserv iceProducer.process(SpringWebserviceProducer.java: 81)
    at org.apache.camel.util.AsyncProcessorConverterHelpe r$ProcessorToAsyncProcessorBridge.process(AsyncPro cessorConverterHelper.java:61)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.SendProcessor$2.doInAsy ncProducer(SendProcessor.java:120)
    at org.apache.camel.impl.ProducerCache.doInAsyncProdu cer(ProducerCache.java:292)
    at org.apache.camel.processor.SendProcessor.process(S endProcessor.java:115)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.DelegateAsyncProcessor. processNext(DelegateAsyncProcessor.java:99)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.management.InstrumentationProcess or.process(InstrumentationProcessor.java:73)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.DelegateAsyncProcessor. processNext(DelegateAsyncProcessor.java:99)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.processor.interceptor.TraceInterc eptor.process(TraceInterceptor.java:91)
    at org.apache.camel.processor.interceptor.HandleFault Interceptor.process(HandleFaultInterceptor.java:41 )
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.RedeliveryErrorHandler. processErrorHandler(RedeliveryErrorHandler.java:33 0)
    at org.apache.camel.processor.RedeliveryErrorHandler. process(RedeliveryErrorHandler.java:220)
    at org.apache.camel.processor.RouteContextProcessor.p rocessNext(RouteContextProcessor.java:45)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.processor.interceptor.DefaultChan nel.process(DefaultChannel.java:303)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.Pipeline.process(Pipeli ne.java:117)
    at org.apache.camel.processor.Pipeline.process(Pipeli ne.java:80)
    at org.apache.camel.processor.RouteContextProcessor.p rocessNext(RouteContextProcessor.java:45)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.processor.UnitOfWorkProcessor.pro cess(UnitOfWorkProcessor.java:122)
    at org.apache.camel.processor.RouteInflightRepository Processor.processNext(RouteInflightRepositoryProce ssor.java:48)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.processor.DelegateAsyncProcessor. processNext(DelegateAsyncProcessor.java:99)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:90)
    at org.apache.camel.management.InstrumentationProcess or.process(InstrumentationProcessor.java:73)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:73)
    at org.apache.camel.component.direct.DirectProducer.p rocess(DirectProducer.java:61)
    at org.apache.camel.processor.UnitOfWorkProcessor.pro cessAsync(UnitOfWorkProcessor.java:150)
    at org.apache.camel.processor.UnitOfWorkProcessor.pro cess(UnitOfWorkProcessor.java:117)
    at org.apache.camel.util.AsyncProcessorHelper.process (AsyncProcessorHelper.java:99)
    at org.apache.camel.processor.DelegateAsyncProcessor. process(DelegateAsyncProcessor.java:86)
    at org.apache.camel.processor.UnitOfWorkProducer.proc ess(UnitOfWorkProducer.java:63)
    at org.apache.camel.impl.ProducerCache$2.doInProducer (ProducerCache.java:360)
    at org.apache.camel.impl.ProducerCache$2.doInProducer (ProducerCache.java:331)
    at org.apache.camel.impl.ProducerCache.doInProducer(P roducerCache.java:227)
    at org.apache.camel.impl.ProducerCache.sendExchange(P roducerCache.java:331)
    at org.apache.camel.impl.ProducerCache.send(ProducerC ache.java:186)
    at org.apache.camel.impl.DefaultProducerTemplate.send (DefaultProducerTemplate.java:115)
    at org.apache.camel.impl.DefaultProducerTemplate.send Body(DefaultProducerTemplate.java:119)

    Comment

    Working...
    X