my dog learned polymorphism
The moose likes Servlets and the fly likes EOFException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "EOFException" Watch "EOFException" New topic


Ramsvi R

Joined: Aug 31, 2006
Posts: 3
Hello ,

When Servlet tries to create OBjectOutputStream ,EOFException is thrown.

In above code,it throws EOFException after printting
"after input stream +object"

Thank you.
I am new to this URL/InputStream etc stuff and it is really taking life out of me.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
Your text says Output but your code says:

If your servlet code examines the request input parameters, then the input stream will have been read all the way to the end by the servlet engine.
You can't have both request parameters and an input stream or reader.

[ September 05, 2006: Message edited by: William Brogden ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

"Ramsvi R", you have previously been warned on multiple occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional, and this is your final warning. Adjust your display name to comply with the required standards prior to your next post.

Failure to comply will result in the removal of your account.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: EOFException
It's not a secret anymore!