guor created HTTPCLIENT-1618:
--------------------------------
Summary: 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.4 Final, 4.3.6, 4.3.5
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: [email protected]
For additional commands, e-mail: [email protected]