aspose file tools*
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
Author

EOFException

Ramsvi R
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
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.

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

Joined: Jan 10, 2002
Posts: 61654
    
  67

"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.

bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EOFException