File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 12678
    
    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


Java Resources at www.wbrogden.com
 
 
subject: EOF Excepton trying to pass data from client to servlet
 
Similar Threads
Problem in getting connection from data source
Hibernate: Mysql Auto Reconnect is not happening.
Two-Phase commit using CMT on JBoss and Oracle XE
JBoss/JPA/Spring Question - What is the JNDI Name for the EntityManager
Requesting help in connecting a DataSource(DSSDEV)