Hi
I'm still trying to implement a simple web-service bridge using the
servicemix-http-2008.1 component. I use a <http:soap-provider /> su and a
<http:soap-consumer /> su. The xbean.xml files are listed below.
When sending a request, I get a NullPointerException from the provider
component. It's the BodyOutInterceptor.handleMessage that causes it.
I hope someone can help. Thanks.
The error message:
ERROR - HttpComponent - Error processing exchange InOut[
id: ID:127.0.0.1-11e8d730099-21:8
status: Active
role: provider
service: {qname}Agency
endpoint: AgencyHttpSoap11Endpoint
operation: {qname}informationRequest
in: <?xml version="1.0" encoding="UTF-8"?>
]
java.lang.NullPointerException
at
org.apache.servicemix.soap.util.stax.DOMStreamReader.newFrame(DOMStreamReader.java:295)
at
org.apache.servicemix.soap.util.stax.DOMStreamReader.<init>(DOMStreamReader.java:74)
at
org.apache.servicemix.soap.util.stax.StaxUtil.createReader(StaxUtil.java:72)
at
org.apache.servicemix.soap.interceptors.xml.BodyOutInterceptor.handleMessage(BodyOutInterceptor.java:37)
at
org.apache.servicemix.soap.core.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:85)
at
org.apache.servicemix.soap.bindings.soap.interceptors.SoapOutInterceptor.handleMessage(SoapOutInterceptor.java:79)
at
org.apache.servicemix.soap.core.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:85)
at
org.apache.servicemix.soap.interceptors.xml.StaxOutInterceptor.handleMessage(StaxOutInterceptor.java:50)
at
org.apache.servicemix.soap.core.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:85)
at
org.apache.servicemix.http.endpoints.HttpSoapProviderMarshaler.createRequest(HttpSoapProviderMarshaler.java:98)
at
org.apache.servicemix.http.endpoints.HttpProviderEndpoint.process(HttpProviderEndpoint.java:202)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:510)
at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
The provider xbean:
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:agen="qname"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://servicemix.apache.org/http/1.0
http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http:soap-provider service="agen:Agency"
endpoint="AgencyHttpSoap11Endpoint"
wsdl="http://wsserver/Agency?wsdl"
validateWsdl="false"
useJbiWrapper="false"
/>
</beans>
The consumer xbean:
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:agen="qname"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://servicemix.apache.org/http/1.0
http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http:soap-consumer service="agen:AgencyProxy"
endpoint="AgencyHttpSoap11Endpoint"
targetService="agen:Agency"
targetEndpoint="AgencyHttpSoap11Endpoint"
locationURI="http://0.0.0.0:8192/AgencyProxy"
wsdl="mymain.wsdl"
useJbiWrapper="false"
/>
</beans>
--
View this message in context:
http://www.nabble.com/NullPointerException-servicemix-http-2008.1---stax-tp21232836p21232836.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.