You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by subh <su...@aol.com> on 2008/11/12 18:11:17 UTC
org.apache.cxf.interceptor.Fault: Unmarshalling Error:
com.sun.xml.bind.WhiteSpaceProcessor.isWhiteSpace
Hi,
I have created simple service with CXF-SE and HTTP Consumer. The xbean for
consumer looks like
<http:soap-consumer service="athenaws:CurrencyRateService"
endpoint="soap"
targetService="athenaws:CurrencyRateService"
targetEndpoint="currSvcImplBean"
locationURI="http://0.0.0.0:8192/services/CurrencyRateService/"
wsdl="classpath:service.wsdl" />
The CXF-SE xbean is
<cxfse:endpoint service="athenaws:CurrencyRateService"
endpoint="currSvcImplBean">
<cxfse:pojo>
<bean
class="com.fq.athena.services.currencyrates.CurrencyRatesImpl"/>
</cxfse:pojo>
</cxfse:endpoint>
The POJO has
@WebService(serviceName = "CurrencyRateService",
targetNamespace = "http://athena.fq.com/services/currencyrates",
endpointInterface = "com.fq.athena.services.currencyrates.CurrencyRate")
public class CurrencyRatesImpl implements CurrencyRate {
..........................
......................................
and the WSDL has
<wsdl:service name="CurrencyRateService">
<wsdl:port binding="tns:CurrencyRateSOAPBinding" name="soap">
<soap:address
location="http://localhost:8192/services/CurrencyRateService/" />
</wsdl:port>
</wsdl:service>
I am trying to call the service using a simple HTML client, but I get the
following error.
What am I doing wrong?
ERROR:
=======
DEBUG - jetty - continuation
RetryContinuation@1498759,pending
DEBUG - SedaQueue -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1a528c2 dequeued
exchange: InOut[
id: ID:10.30.9.159-11d91997529-12:0
status: Active
role: provider
service: {http://athena.fq.com/services/currencyrates}CurrencyRateService
endpoint: CurrencyRatesImplPort
operation: {http://athena.fq.com/services/currencyrates}GetCurrencyRate
in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"
xmlns:msg="http://athena.fq.com/services/curren
cyrates" name="GetCurrencyRate" type="msg:GetCurrencyRateRequest"
version="1.0"><jbi:part><q0:GetCurrencyRate
xmlns:q0="http://athena.fq.com/services/currencyrates
" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><q0:currenc
yFrom>USD</q0:currencyFrom><q0:currencyTo>INR</q0:currencyTo><q0:currencyDateTime>2008-11-10
23:34:13</q0:currencyDateTime></q0:GetCurrencyRate></jbi:part></jbi:message>
]
DEBUG - CxfSeComponent - Received exchange: status: Active,
role: provider
DEBUG - CxfSeComponent - Retrieved correlation id:
ID:10.30.9.159-11d91997529-12:0
Nov 12, 2008 10:48:23 AM org.apache.cxf.transport.jbi.JBITransportFactory
setDeliveryChannel
INFO: configuring DeliveryChannel:
org.apache.servicemix.common.EndpointDeliveryChannel@18316f2
Nov 12, 2008 10:48:24 AM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unmarshalling Error:
com.sun.xml.bind.WhiteSpaceProcessor.isWhiteSpace(Ljava/lang/CharSequence;)Z
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:600)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:498)
at
org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:40)
at
org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage(JBIWrapperInInterceptor.java:124)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:77)
at
org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:156)
at
org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:223)
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:172)
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)
Caused by: java.lang.NoSuchMethodError:
com.sun.xml.bind.WhiteSpaceProcessor.isWhiteSpace(Ljava/lang/CharSequence;)Z
at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.processText(StAXStreamConnector.java:289)
at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:186)
at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:135)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:316)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:578)
... 17 more
DEBUG - DeliveryChannelImpl - Send
ID:10.30.9.159-11d91997529-12:0 in DeliveryChannel{servicemix-cxf-se}
DEBUG - SecuredBroker - send exchange with secure broker
DEBUG - SedaFlow - Called Flow send
DEBUG - SedaQueue -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1231bc5 dequeued
exchange: InOut[
id: ID:10.30.9.159-11d91997529-12:0
status: Error
role: consumer
interface: {http://athena.fq.com/services/currencyrates}CurrencyRate
service: {http://athena.fq.com/services/currencyrates}CurrencyRateService
endpoint: CurrencyRatesImplPort
operation: {http://athena.fq.com/services/currencyrates}GetCurrencyRate
in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"
xmlns:msg="http://athena.fq.com/services/curren
cyrates" name="GetCurrencyRate" type="msg:GetCurrencyRateRequest"
version="1.0"><jbi:part><q0:GetCurrencyRate
xmlns:q0="http://athena.fq.com/services/currencyrates
" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><q0:currenc
yFrom>USD</q0:currencyFrom><q0:currencyTo>INR</q0:currencyTo><q0:currencyDateTime>2008-11-10
23:34:13</q0:currencyDateTime></q0:GetCurrencyRate></jbi:part></jbi:message>
error: org.apache.cxf.interceptor.Fault: Unmarshalling Error:
com.sun.xml.bind.WhiteSpaceProcessor.isWhiteSpace(Ljava/lang/CharSequence;)Z
]
DEBUG - HttpComponent - Received exchange: status: Error,
role: consumer
--
View this message in context: http://www.nabble.com/org.apache.cxf.interceptor.Fault%3A-Unmarshalling-Error%3A-com.sun.xml.bind.WhiteSpaceProcessor.isWhiteSpace-tp20464789p20464789.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: org.apache.cxf.interceptor.Fault: Unmarshalling Error: com.sun.xml.bind.WhiteSpaceProcessor.isWhiteSpace
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
This line
Caused by: java.lang.NoSuchMethodError:
com.sun.xml.bind.WhiteSpaceProcessor.isWhiteSpace(Ljava/lang/CharSequence;)Z
Seems like a jaxb impl version conflict, you are using jdk16? How about
try with jdk15?
Freeman
subh wrote:
> Hi,
>
> I have created simple service with CXF-SE and HTTP Consumer. The xbean for
> consumer looks like
>
> <http:soap-consumer service="athenaws:CurrencyRateService"
> endpoint="soap"
> targetService="athenaws:CurrencyRateService"
> targetEndpoint="currSvcImplBean"
>
> locationURI="http://0.0.0.0:8192/services/CurrencyRateService/"
> wsdl="classpath:service.wsdl" />
>
> The CXF-SE xbean is
>
> <cxfse:endpoint service="athenaws:CurrencyRateService"
> endpoint="currSvcImplBean">
> <cxfse:pojo>
> <bean
> class="com.fq.athena.services.currencyrates.CurrencyRatesImpl"/>
> </cxfse:pojo>
> </cxfse:endpoint>
>
> The POJO has
>
> @WebService(serviceName = "CurrencyRateService",
> targetNamespace = "http://athena.fq.com/services/currencyrates",
> endpointInterface = "com.fq.athena.services.currencyrates.CurrencyRate")
> public class CurrencyRatesImpl implements CurrencyRate {
> ..........................
> ......................................
>
> and the WSDL has
>
> <wsdl:service name="CurrencyRateService">
> <wsdl:port binding="tns:CurrencyRateSOAPBinding" name="soap">
> <soap:address
> location="http://localhost:8192/services/CurrencyRateService/" />
> </wsdl:port>
> </wsdl:service>
>
>
> I am trying to call the service using a simple HTML client, but I get the
> following error.
>
> What am I doing wrong?
>
> ERROR:
> =======
> DEBUG - jetty - continuation
> RetryContinuation@1498759,pending
> DEBUG - SedaQueue -
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1a528c2 dequeued
> exchange: InOut[
> id: ID:10.30.9.159-11d91997529-12:0
> status: Active
> role: provider
> service: {http://athena.fq.com/services/currencyrates}CurrencyRateService
> endpoint: CurrencyRatesImplPort
> operation: {http://athena.fq.com/services/currencyrates}GetCurrencyRate
> in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"
> xmlns:msg="http://athena.fq.com/services/curren
> cyrates" name="GetCurrencyRate" type="msg:GetCurrencyRateRequest"
> version="1.0"><jbi:part><q0:GetCurrencyRate
> xmlns:q0="http://athena.fq.com/services/currencyrates
> " xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><q0:currenc
> yFrom>USD</q0:currencyFrom><q0:currencyTo>INR</q0:currencyTo><q0:currencyDateTime>2008-11-10
> 23:34:13</q0:currencyDateTime></q0:GetCurrencyRate></jbi:part></jbi:message>
> ]
> DEBUG - CxfSeComponent - Received exchange: status: Active,
> role: provider
> DEBUG - CxfSeComponent - Retrieved correlation id:
> ID:10.30.9.159-11d91997529-12:0
> Nov 12, 2008 10:48:23 AM org.apache.cxf.transport.jbi.JBITransportFactory
> setDeliveryChannel
> INFO: configuring DeliveryChannel:
> org.apache.servicemix.common.EndpointDeliveryChannel@18316f2
> Nov 12, 2008 10:48:24 AM org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Unmarshalling Error:
> com.sun.xml.bind.WhiteSpaceProcessor.isWhiteSpace(Ljava/lang/CharSequence;)Z
> at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:600)
> at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:498)
> at
> org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:40)
> at
> org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage(JBIWrapperInInterceptor.java:124)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:77)
> at
> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:156)
> at
> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:223)
> 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:172)
> 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)
> Caused by: java.lang.NoSuchMethodError:
> com.sun.xml.bind.WhiteSpaceProcessor.isWhiteSpace(Ljava/lang/CharSequence;)Z
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.processText(StAXStreamConnector.java:289)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:186)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:135)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:316)
> at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:578)
> ... 17 more
> DEBUG - DeliveryChannelImpl - Send
> ID:10.30.9.159-11d91997529-12:0 in DeliveryChannel{servicemix-cxf-se}
> DEBUG - SecuredBroker - send exchange with secure broker
> DEBUG - SedaFlow - Called Flow send
> DEBUG - SedaQueue -
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1231bc5 dequeued
> exchange: InOut[
> id: ID:10.30.9.159-11d91997529-12:0
> status: Error
> role: consumer
> interface: {http://athena.fq.com/services/currencyrates}CurrencyRate
> service: {http://athena.fq.com/services/currencyrates}CurrencyRateService
> endpoint: CurrencyRatesImplPort
> operation: {http://athena.fq.com/services/currencyrates}GetCurrencyRate
> in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"
> xmlns:msg="http://athena.fq.com/services/curren
> cyrates" name="GetCurrencyRate" type="msg:GetCurrencyRateRequest"
> version="1.0"><jbi:part><q0:GetCurrencyRate
> xmlns:q0="http://athena.fq.com/services/currencyrates
> " xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><q0:currenc
> yFrom>USD</q0:currencyFrom><q0:currencyTo>INR</q0:currencyTo><q0:currencyDateTime>2008-11-10
> 23:34:13</q0:currencyDateTime></q0:GetCurrencyRate></jbi:part></jbi:message>
> error: org.apache.cxf.interceptor.Fault: Unmarshalling Error:
> com.sun.xml.bind.WhiteSpaceProcessor.isWhiteSpace(Ljava/lang/CharSequence;)Z
> ]
> DEBUG - HttpComponent - Received exchange: status: Error,
> role: consumer
>