Hi,
I'm writing a servlet which puts the HttpServletRequest ("request" as key)
and HttpServletResponse ("response" as key) in a Hashtable and passes it on
to one more class. This class takes out the HttpServletResponse and gets the
ObjectOutputStream and tries to write the object using writeObject(). Its
sends a small string.
But, when I do this, I get the following error :
java.io.StreamCorruptedException: Caught EOFException while reading the
stream header
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
at QueueTest4.begin(QueueTest4.java:47)
at QueueTest4.main(QueueTest4.java:84)
My question is : is the HttpServletResponse getting corrupted after I pass
it on to the other class which tries to send the result back to the client?
Looking forward for your early reply. Thanx in advance.
Cheers,
Sajid.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html