This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 12761
    
    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: 60788
    
  65

"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]
 
wood burning stoves
 
subject: EOFException
 
Similar Threads
Creating an ObjectInputStream from a Blob!
servler does not read two strings.
Object Read problem
converting InputStream....
Problem with the object serialization and stream