Re: Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Pid
On 06/05/2010 13:54, Caldarale, Charles R wrote:
>> From: Prathima Dandapani -X (pdandapa - HCL at Cisco)
>> [mailto:pdand...@cisco.com]
>> Subject: RE: Stream closed IO Exception when using Tomcat 5.5.28
>>
>> Let me know if any other information is required.
> 
> The full stack trace would be a start.
> 
> (And send messages just to the list, not to individuals, and don't cc: anyone 
> or anything.)

+1 to both of those.

This code seems a bit strange, what is it intended to achieve?

  String line   = null;
  Object object = null;
  while ((line = dis.readLine()) != null) {
ObjectInputStream ois = new ObjectInputStream(dis);
object = ois.readObject();
ois.close();
  }
  return object;


The DataInputStream.readLine() method is deprecated since Java1.1, seems
a bit odd to use that too...


p


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




signature.asc
Description: OpenPGP digital signature


RE: Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Caldarale, Charles R
> From: Prathima Dandapani -X (pdandapa - HCL at Cisco)
> [mailto:pdand...@cisco.com]
> Subject: RE: Stream closed IO Exception when using Tomcat 5.5.28
> 
> Let me know if any other information is required.

The full stack trace would be a start.

(And send messages just to the list, not to individuals, and don't cc: anyone 
or anything.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



RE: Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Prathima Dandapani -X (pdandapa - HCL at Cisco)
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.



 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



RE: Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Prathima Dandapani -X (pdandapa - HCL at Cisco)
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.

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



Re: Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Pid
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
> 




signature.asc
Description: OpenPGP digital signature