camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Question camel cxf & CXF_MESSAGE
Date Thu, 10 Jan 2013 10:29:07 GMT
Hi,

Why do I get this cast error message using CXF_MESSAGE as dataformat for my
camel cxf endpoint

Here is the SOAP enveloppe created by camel using SOAP Dataformat

qtp521246104-20 INFO [cxf-to-client] - >>> Response generated : <?xml
version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:Envelope xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns3="http://training.fusesource.com/">
    <ns2:Body>
        <ns3:getCustomerByNameResponse>
            <return>
                <name>Fuse</name>
                <address>FuseSource Office</address>
                <numOrders>38</numOrders>
                <revenue>7179.0</revenue>
                <test>100.0</test>
                <type>BUSINESS</type>
            </return>
        </ns3:getCustomerByNameResponse>
    </ns2:Body>
</ns2:Envelope>

But camel generates this error during call
of org.apache.camel.component.cxf.DefaultCxfBinding.populateCxfResponseFromExchange(DefaultCxfBinding.java:344)

qtp521246104-20 WARN [org.apache.cxf.phase.PhaseInterceptorChain] -
Interceptor for {
http://training.fusesource.com/}CustomerServiceService#{http://training.fusesource.com/}getCustomerByNamehas
thrown exception, unwinding now
java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.Object;
at
org.apache.camel.component.cxf.DefaultCxfBinding.populateCxfResponseFromExchange(DefaultCxfBinding.java:344)
at
org.apache.camel.component.cxf.CxfConsumer$1.setResponseBack(CxfConsumer.java:180)
at
org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:107)
at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:72)

Regards,

-- 
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message