hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Natarajan_Va...@emc.com
Subject stream corruption
Date Wed, 21 Jan 2009 17:02:00 GMT
We use HttpClient version 3.0.1 and recently noticed stream corruption.
The corruption is noticed on server side when the server (webapp running
in Jboss server) receives those requests. We believe that at some point
content of 2 requests are mixed. Is that possible? The problem is very
intermittent but happens very often.

 

Here is the code snippet that receives the stream on server side

 

                    ObjectInputStream reqStream = new
ObjectInputStream(httpServletReq.getInputStream());

                    return (IRequest) reqStream.readObject();

 

 

exception returned by this when problem occurs

 

java.lang.NullPointerException

                at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1820)

                at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719
)

                at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)

                at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)

                at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)

                at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719
)

                at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)

                at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)

 

Any idea to resolve this problem is highly appreciated!

 

Thanks

Valli

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message