my dog learned polymorphism*
The moose likes Servlets and the fly likes EOF Excepton trying to pass data from client to servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "EOF Excepton trying to pass data from client to servlet" Watch "EOF Excepton trying to pass data from client to servlet" New topic
Author

EOF Excepton trying to pass data from client to servlet

muhilan palanichamy
Greenhorn

Joined: Oct 01, 2008
Posts: 3
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

Joined: Mar 22, 2000
Posts: 12759
    
    5
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EOF Excepton trying to pass data from client to servlet
 
Similar Threads
Problem in getting connection from data source
Requesting help in connecting a DataSource(DSSDEV)
JBoss/JPA/Spring Question - What is the JNDI Name for the EntityManager
Two-Phase commit using CMT on JBoss and Oracle XE
Hibernate: Mysql Auto Reconnect is not happening.