Hi,

what servicemix-http version do you use ?

I added content type header in 2010.02-SNAPSHOT, maybe you can try with the latest SNAPSHOT.

Regards
JB

On 06/16/2010 08:43 PM, ssheth wrote:

I get nullpointer exception when I use http:soap-provider to route a soap
request

The reason for nullpointer exception is CONTENT_TYPE is null.

java.lang.NullPointerException
        at org.mortbay.io.Portable.getBytes(Portable.java:46)
        at org.mortbay.io.ByteArrayBuffer.<init>(ByteArrayBuffer.java:73)
        at
org.mortbay.io.ByteArrayBuffer$CaseInsensitive.<init>(ByteArrayBuffer.java:414)
        at org.mortbay.io.BufferCache$CachedBuffer.<init>(BufferCache.java:120)
        at org.mortbay.io.BufferCache.lookup(BufferCache.java:93)
        at org.mortbay.jetty.HttpFields.add(HttpFields.java:612)
        at
org.mortbay.jetty.client.HttpExchange.addRequestHeader(HttpExchange.java:368)
        at
org.apache.servicemix.http.endpoints.HttpSoapProviderMarshaler.createRequest(HttpSoapProviderMarshaler.java:111)
        at
org.apache.servicemix.http.endpoints.HttpProviderEndpoint.process(HttpProviderEndpoint.java:233)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:478)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)
        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)

Reply via email to