[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

guor updated HTTPCLIENT-1618:
-----------------------------
    Comment: was deleted

(was: But how can I handle this exception? I don't know how to deal with the 
stream I got. Is there any sample code?)

> EntityUtils toByteArray EOFException
> ------------------------------------
>
>                 Key: HTTPCLIENT-1618
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1618
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.3.5, 4.3.6, 4.4 Final
>         Environment: jdk1.7
>            Reporter: guor
>
> when I visit website below `http://club.kdnet.net`, such as 
> `http://club.kdnet.net/dispbbs.asp?id=10731573&boardid=1`, I got 
> java.io.EOFException, the full exception stack as below:
> Exception in thread "main" java.io.EOFException
>       at java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:264)
>       at java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:254)
>       at java.util.zip.GZIPInputStream.readUInt(GZIPInputStream.java:246)
>       at java.util.zip.GZIPInputStream.readTrailer(GZIPInputStream.java:218)
>       at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:118)
>       at java.io.FilterInputStream.read(FilterInputStream.java:107)
>       at 
> org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream.java:67)
>       at org.apache.http.util.EntityUtils.toByteArray(EntityUtils.java:136)
>       at demo.Test.main(Test.java:19)
> This happens at httpclient4.3.5/httpclient4.3.6/httpclient4.4, but It's OK in 
> commons-httpclient3.1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to