Thanks Pid.
The line number specified in the exception matches with the below line of
readObject function.

  while ((line = dis.readLine()) != null) {

The connection is not getting closed at the other end.
Connector config from server.xml is as follows.

<Connector className="org.apache.coyote.tomcat5.CoyoteConnector" port="9009"
minProcessors="5" maxProcessors="500" acceptCount="30" debug="0"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

 Let me know if any other information is required.

Thanks and Regards,
Prathima.

-----Original Message-----
From: Pid [mailto:p...@pidster.com]
Sent: Thursday, May 06, 2010 5:16 PM
To: pdand...@cisco.com
Subject: Re: Stream closed IO Exception when using Tomcat 5.5.28

On 06/05/2010 12:35, Prathima Dandapani -X (pdandapa - HCL at Cisco) wrote:
> Thanks Pid.
> It is happening in both Windows 2003 and Solaris SPARC.
> Under normal usage only exception is thrown.
> Yes, All the jsp's are recompiled for 5.5.28.
>
>
> DataInputStream  is extracted from the HttpServletRequest req.
> DataInputStream dis  = new DataInputStream(req.getInputStream());
>   Object request = readObject(dis);
>
> private Object readObject(DataInputStream dis) throws Exception  {
>         String line   = null;
>         Object object = null;
>           while ((line = dis.readLine()) != null) {
>               ObjectInputStream ois = new ObjectInputStream(dis);
>               object = ois.readObject();
>            ois.close();
>              }
>           return object;
>  }
>
> Let me know if any other information is required.

Does the full stack trace for the exception below show a line number which
matches the class above, and if so, which line is it?

Is it possible that the connection is being closed at the other end?

Can you also post your Connector config from server.xml?


p


>
> Thanks and Regards,
> Prathima.
>
> -----Original Message-----
> From: Pid [mailto:p...@pidster.com]
> Sent: Thursday, May 06, 2010 2:34 PM
> To: Tomcat Users List
> Subject: Re: Stream closed IO Exception when using Tomcat 5.5.28
>
> On 06/05/2010 09:08, Prathima Dandapani -X (pdandapa - HCL at Cisco)
wrote:
>> Dear Tomcat Users,
>>
>> We have upgraded Tomcat from 5.5.17 version to 5.5.28 and
>> experiencing stream closed IO Exceptions in many places.
>
> OS/Platform?
>
>>             java.io.IOException: Stream closed
>>      at
>> org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:281)
>>      at
>>
>
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:
>> 105)
>>      at java.io.DataInputStream.readLine(DataInputStream.java:496)
>>
>> When we revert to 5.5.17, we are not experiencing the above exception.
>
> When does this occur, under load testing or under normal usage?
>
> Does it happen during specific request types?
>
> Does your app have compiled JSPs and if so, have you recompiled it for
> 5.5.28?
>
>> Does this fall under any known issues in 5.5.28 version?
>
> None that I'm aware of, but then the above information is quite limited.
>
>
> p
>
>> Kindly share your thoughts on this issue.
>>
>> Thanks and Regards,
>> Prathima.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
>
>






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

Reply via email to