hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glauber Matos (JIRA)" <j...@apache.org>
Subject [jira] Created: (HTTPCLIENT-762) Attempted read from closed stream - when reading entity.getContent()
Date Mon, 21 Apr 2008 16:31:21 GMT
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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message