You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by johper <ka...@hotmail.com> on 2008/01/17 21:20:41 UTC

cxf bc on smx 3.2.1

Hi,

I have a C# .NET client calling SMX and SMX provides SOAP call to Axis2.

Deploying:
=======
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
       xmlns:customer="http://customer.services.isbc.com">
                      
<cxfbc:consumer wsdl="classpath:CustomerServiceConsumer.wsdl"
                      service="customer:CustomerService"
                      endpoint="CustomerServicePort"
                      targetEndpoint="CustomerServicePortProxy"
                      targetService="customer:CustomerService"
                      targetInterface="customer:CustomerServicePortType">     
      </cxfbc:consumer>
      
<cxfbc:provider wsdl="classpath:CustomerServiceProvider.wsdl"
                     
locationURI="http://localhost:8080/axis2/services/CustomerService"
                      service="customer:CustomerService"
                      endpoint="CustomerServicePortProxy"
                      interfaceName="calculator:CalculatorPortType"
                     >
      </cxfbc:provider>                            
</beans>

But getting SMX console:
================
com.ctc.wstx.exc.WstxParsingException: Received non-all-whitespace
CHARACTERS or CDATA event in nextTag().
 at [row,col {unknown-source}]: [1,139]
        at
com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
        at
com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
        at
com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1107)
        at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.createXMLStreamReaderFromMessage(CxfBcProviderMessag
eObserver.java:167)
        at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.onMessage(CxfBcProviderMessageObserver.java:91)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1932)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1790)
        at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:166)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
2008-jan-17 21:09:11 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to
insert a node where it is not permitted.
        at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown
Source)
        at org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source)
        at org.apache.xerces.dom.CoreDocumentImpl.insertBefore(Unknown
Source)
        at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source)
        at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:633)
        at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:519)
        at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.getBodyElement(JbiInWsdl1Interceptor.java:214)

        at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handleMessage(JbiInWsdl1Interceptor.java:108)
        at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handleMessage(JbiInWsdl1Interceptor.java:60)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
        at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.onMessage(CxfBcProviderMessageObserver.java:113)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1932)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1790)
        at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:166)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
com.ctc.wstx.exc.WstxParsingException: Received non-all-whitespace
CHARACTERS or CDATA event in nextTag().
 at [row,col {unknown-source}]: [1,139]
        at
com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
        at
com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
        at
com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1107)
        at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.createXMLStreamReaderFromMessage(CxfBcProviderMessag
eObserver.java:167)
        at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.onMessage(CxfBcProviderMessageObserver.java:91)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1932)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1790)
        at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:166)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
2008-jan-17 21:09:11 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to
insert a node where it is not permitted.
        at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown
Source)
        at org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source)
        at org.apache.xerces.dom.CoreDocumentImpl.insertBefore(Unknown
Source)
        at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source)
        at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:633)
        at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:519)
        at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.getBodyElement(JbiInWsdl1Interceptor.java:214)

        at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handleMessage(JbiInWsdl1Interceptor.java:108)
        at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handleMessage(JbiInWsdl1Interceptor.java:60)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
        at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.onMessage(CxfBcProviderMessageObserver.java:113)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1932)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1790)
        at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:166)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
javax.jbi.messaging.MessagingException: Out not supported
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setMessage(MessageExchangeImpl.java:357)
        at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.onMessage(CxfBcProviderMessageObserver.java:125)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1932)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1790)
        at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:166)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

-- 
View this message in context: http://www.nabble.com/cxf-bc-on-smx-3.2.1-tp14931740s12049p14931740.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: cxf bc on smx 3.2.1

Posted by Bruce Snyder <br...@gmail.com>.
On Jan 17, 2008 1:20 PM, johper <ka...@hotmail.com> wrote:
>
> Hi,
>
> I have a C# .NET client calling SMX and SMX provides SOAP call to Axis2.
>
> Deploying:
> =======
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
>        xmlns:customer="http://customer.services.isbc.com">
>
> <cxfbc:consumer wsdl="classpath:CustomerServiceConsumer.wsdl"
>                       service="customer:CustomerService"
>                       endpoint="CustomerServicePort"
>                       targetEndpoint="CustomerServicePortProxy"
>                       targetService="customer:CustomerService"
>                       targetInterface="customer:CustomerServicePortType">
>       </cxfbc:consumer>
>
> <cxfbc:provider wsdl="classpath:CustomerServiceProvider.wsdl"
>
> locationURI="http://localhost:8080/axis2/services/CustomerService"
>                       service="customer:CustomerService"
>                       endpoint="CustomerServicePortProxy"
>                       interfaceName="calculator:CalculatorPortType"
>                      >
>       </cxfbc:provider>
> </beans>
>
> But getting SMX console:
> ================
> com.ctc.wstx.exc.WstxParsingException: Received non-all-whitespace
> CHARACTERS or CDATA event in nextTag().
>  at [row,col {unknown-source}]: [1,139]

I'm not a CXF guru yet, but it could be an issue with mismatched
versions of SOAP specified on the client and server? See the following
for some similar issues and a solution:

http://www.nabble.com/How-to-set-Soap-version-on-client-side-td14692146.html

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/