This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • 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: 13048
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic