Hi Jeff

Thanks. This helped. I set the value of <logger
name="org.apache.servicemix"> back to INFO.

Now there's another problem: When I send a request, there's no response.
It's not a matter of the external web service. The external web service
never gets the request. As far as I have seen, the http-provider does never
leave the while()-loop in the copy() method of
org.apache.servicemix.soap.util.stax.StaxUtil, but I don't know the reason,
neither how to fix it.

Another issue: The soapAction attribute in the wsdl file that was generated
by servicemix out of the original web service wsdl is empty, which causes
the soapAction header in the request to be empty. I could set this manually,
but I changed to the new http endpoints for exactly this reason (I read in
this forum that this issue is solved with the new endpoints).

Please see the configuration of my su's in the original mail below.

Thanks a lot.



Jeff Peterson-3 wrote:
> 
> KOS,
> 
> Do you have debugging turned on in servicemix?  If so, try turning it off.
> 
> I have seen similar issues when the message exchange is being logged
> by servicemix.  It seems that if the exchange comes in as a SAXSource
> (or similar) the process of writing it to the log consumes all of the
> tokens.  When the exchange is eventually delivered to the target the
> stream is empty and NPE insues.
> 
> Regards,
> 
> Jeff
> 
> 
> On Wed, Dec 31, 2008 at 7:20 AM, KOS <[email protected]> wrote:
>>
>> 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.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/NullPointerException-servicemix-http-2008.1---stax-tp21232836p21250563.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to