• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EOFException

 
Ramsvi R
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64615
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic