wood burning stoves
The moose likes Java in General and the fly likes java.io.IOException: chunked stream ended unexpectedly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

java.io.IOException: chunked stream ended unexpectedly

sridhar vedhanabatla

Joined: Feb 21, 2007
Posts: 12

I am using apache HttpClient. When the url has - char and get navigation is made, then the HttpClient is throwing IOException

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.FilterInputStream.read(Unknown Source)
at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:107)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:126)
at org.apache.commons.httpclient.HttpMethodBase.getResponseBody(HttpMethodBase.java:685)
at com.web.MyBrowser.get(MyBrowser.java:95)

Please let me know if I have to change nay encoding or settings.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
I agree. Here's the link: http://aspose.com/file-tools
subject: java.io.IOException: chunked stream ended unexpectedly
It's not a secret anymore!