tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Stream closed IO Exception when using Tomcat 5.5.28
Date Thu, 06 May 2010 13:04:41 GMT
On 06/05/2010 13:54, Caldarale, Charles R wrote:
>> From: Prathima Dandapani -X (pdandapa - HCL at Cisco)
>> [mailto:pdandapa@cisco.com]
>> Subject: RE: Stream closed IO Exception when using Tomcat 5.5.28
>>
>> Let me know if any other information is required.
>=20
> The full stack trace would be a start.
>=20
> (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   =3D null;
  Object object =3D null;
  while ((line =3D dis.readLine()) !=3D null) {
    ObjectInputStream ois =3D new ObjectInputStream(dis);
    object =3D ois.readObject();
    ois.close();
  }
  return object;


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


p


>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>=20



Mime
View raw message