Attempted read from closed stream - when reading entity.getContent()
---------------------------------------------------------------------
Key: HTTPCLIENT-762
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-762
Project: HttpComponents HttpClient
Issue Type: Bug
Components: HttpClient
Affects Versions: 4.0 Alpha 3
Environment: Windows XP SP2, JAVA 6.0;
Reporter: Glauber Matos
Error when I' try to ready the content of HttpEntity by,
EntityUtils.toString(entity);
Exception in thread "main" java.io.IOException: Attempted read from closed
stream.
at
org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:164)
at
org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:159)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.Reader.read(Unknown Source)
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:135)
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:146)
at
br.com.brunobraga.bolsa.modulos.webnavigator.negocio.Teste2.main(Teste2.java:58)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]