xmlstreamreader error while calling cxf service

View: New views
2 Messages — Rating Filter:   Alert me  

xmlstreamreader error while calling cxf service

by skirankumars :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
   I get the following error while executing this config. Please tell me why?

Config File:


  <xml-entity-decoder-transformer name="XmlDecoder"/>
         <xm:xslt-transformer name="Xslt" xsl-file="sucess.xsl"/>
            <xm:object-to-xml-transformer name="ObjectToXML"/>
       
<!-- com.muleinaction.cxf.jaxws.GreetingServiceImpl -->
    <model name="cxfJaxwsModel">
        <service name="cxfJaxwsService">
            <inbound>
                <cxf:inbound-endpoint frontend="jaxws" address="http://localhost:9781/greeting"
               
                />
            </inbound>
            <component class="pl._3e.adinterface.modeladserviceimpl"/>
           
            <outbound>
            <pass-through-router>
            <cxf:outbound-endpoint address="http://localhost:9782/greeting"
proxy="true" synchronous="false" transformer-refs="ObjectToXML Xslt"/>
              </pass-through-router>
            </outbound>
        </service>
    </model>
</mule>





Error:

INFO  2009-10-28 18:40:51,723 [connector.cxf.0.dispatcher.1] org.mule.transport.cxf.CxfMessageDispatcher: Connected: endpoint.outbound.http://localhost:9782/greeting
Oct 28, 2009 6:40:51 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not find a transformer to transform "pl._3e.adinterface.ModelSetDocActionRequest" to "javax.xml.stream.XMLStreamReader".
        at org.mule.transport.cxf.support.OutputPayloadInterceptor.handleMessage(OutputPayloadInterceptor.java:96)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242)
        at org.mule.transport.cxf.CxfMessageDispatcher.doSendWithClient(CxfMessageDispatcher.java:220)
        at org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher.java:146)
        at org.mule.transport.cxf.CxfMessageDispatcher.doDispatch(CxfMessageDispatcher.java:252)
        at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:262)
        at org.mule.work.WorkerContext.run(WorkerContext.java:310)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Unknown Source)





Parent Message unknown RE: xmlstreamreader error while calling cxf service

by Farrell, Kevin (ICTL_eCust_05) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

What version of Mule are you using? If it's 2.2 then add
applyTransformersToProtocol="false" to your outbound endpoint.

Your component seems to be setting a
pl._3e.adinterface.ModelSetDocActionRequest object in the message body? Is
that correct? How would the objectToXml transformer know how to transform
your object to XML? When not have your component set the xml into the message
body itself?

Regards,
Kevin.


-----Original Message-----
From: skirankumars [mailto:skirankumars31@...]
Sent: 28 October 2009 13:14
To: user@...
Subject: [mule-user] xmlstreamreader error while calling cxf service


*************************************

This e-mail has been received by the Revenue Internet e-mail service. (IP)

*************************************


Hi,
   I get the following error while executing this config. Please tell me
why?

Config File:


  <xml-entity-decoder-transformer name="XmlDecoder"/>
         <xm:xslt-transformer name="Xslt" xsl-file="sucess.xsl"/>
            <xm:object-to-xml-transformer name="ObjectToXML"/>
       
<!-- com.muleinaction.cxf.jaxws.GreetingServiceImpl -->
    <model name="cxfJaxwsModel">
        <service name="cxfJaxwsService">
            <inbound>
                <cxf:inbound-endpoint frontend="jaxws"
address="http://localhost:9781/greeting"
               
                />
            </inbound>
            <component class="pl._3e.adinterface.modeladserviceimpl"/>
           
            <outbound>
            <pass-through-router>
            <cxf:outbound-endpoint address="http://localhost:9782/greeting"
proxy="true" synchronous="false" transformer-refs="ObjectToXML Xslt"/>
              </pass-through-router>
            </outbound>
        </service>
    </model>
</mule>





Error:

INFO  2009-10-28 18:40:51,723 [connector.cxf.0.dispatcher.1]
org.mule.transport.cxf.CxfMessageDispatcher: Connected:
endpoint.outbound.http://localhost:9782/greeting
Oct 28, 2009 6:40:51 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not find a transformer to transform
"pl._3e.adinterface.ModelSetDocActionRequest" to
"javax.xml.stream.XMLStreamReader".
        at
org.mule.transport.cxf.support.OutputPayloadInterceptor.handleMessage(OutputP
ayloadInterceptor.java:96)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.
java:220)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242)
        at
org.mule.transport.cxf.CxfMessageDispatcher.doSendWithClient(CxfMessageDispat
cher.java:220)
        at
org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher.java:
146)
        at
org.mule.transport.cxf.CxfMessageDispatcher.doDispatch(CxfMessageDispatcher.j
ava:252)
        at
org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispat
cher.java:262)
        at org.mule.work.WorkerContext.run(WorkerContext.java:310)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(T
hreadPoolExecutor.java:1061)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Unknown Source)





--
View this message in context:
http://www.nabble.com/xmlstreamreader-error-while-calling-cxf-service-tp26094
431p26094431.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email




*********************************************************************

Please note that Revenue cannot guarantee that any personal
and sensitive data, sent in plain text via standard email,
is fully secure. Customers who choose to use this channel
are deemed to have accepted any risk involved. The alternative
communication methods offered by Revenue include standard post
and the option to register for our (encrypted) secure email service.
http://www.revenue.ie/en/practitioner/secure-email.html

*********************************************************************

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email