You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by rvenky <rv...@gmail.com> on 2010/04/20 09:31:30 UTC

IOException with cause "chunked stream ended unexpectedly" on Websphere 7.0.0.7

I'm testing a sample application I wrote on Weblogic 11g, Websphere 7.0.0.7
and JBoss. On Websphere alone, I notice an exception with a call to
HttpClient.executeMethod(). The exception stack trace is below. Here,
SyncPortViaHttpClient$SyncPortPostMethod is an implementation of
EntityEnclosingMethod. The same piece of code runs fine on Weblogic and
JBoss. I am not clear what could be the issue on Websphere to cause the
exception.

Additional Info:

HttpClient version used : 3.1
Application Server: IBM Websphere 7.0.0.7

Exception stack trace:
java.io.IOException: chunked stream ended unexpectedly
        at
org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:251)
        at
org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:220)
        at
org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:175)
        at
java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2266)
        at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
        at
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
        at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
        at
com.ds.transport.channel.InputChannel.<init>(InputChannel.java:22)
        at
com.ds.transport.channel.InputChannel.<init>(InputChannel.java:17)
        at
com.ds.transport.port.impl.SyncPortViaHttpClient$SyncPortPostMethod.readResponseBody(SyncPortViaHttpClient.java:168)
        at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1603)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
        at
com.ds.transport.port.impl.SyncPortViaHttpClient.<init>(SyncPortViaHttpClient.java:44)
        at
com.ds.api.deliveryapi.dspimpl.DeliveryApiDsp2008Impl.testConnection(DeliveryApiDsp2008Impl.java:80)
        at
com.ds.engine.state.destination.TestingDestination.test(TestingDestination.java:49)
        at
com.ds.engine.context.DestinationContext.test(DestinationContext.java:30)
        at com.ds.engine.DestinationEngine.run(DestinationEngine.java:50)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        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://old.nabble.com/IOException-with-cause-%22chunked-stream-ended-unexpectedly%22-on-Websphere-7.0.0.7-tp28287803p28287803.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org