File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EOF Excepton trying to pass data from client to servlet

 
muhilan palanichamy
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a Java client trying to send data to a Servlet.
The client code and servlet are as below: The exceptions that I get when I test this application in JBoss 5 GA, Windows Vista and Windows Server as well are as below: Any help sorting out this nagging problem is appreciated very much. Thanks for your time.






The servlet:

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your problem may be related to the fact that you close the output stream:



right after the flush but before you try to read the response. I seem to recall having this problem before. Remove the close(), it is not needed.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic