You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by ssheth <ss...@ais.ucla.edu> on 2010/06/16 20:43:41 UTC

NULLPOINTER Exception

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)
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/NULLPOINTER-Exception-tp509767p509767.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: NULLPOINTER Exception

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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)