I all!!

I developed an applet -servlet application and everything work fine on
intranet.
But.... on internet
...on internet sometimes my servlet catch the following exception when
from applet I call the servlet:

java.io.EOFException
(this exception is caught immediatly after the invocation of servlet)


I'm  working with:
Web Server : Netscape Enterprise 3.6 (Solaris 2.6)
Servlet Engine : JRun 2.3.2


Could someone help me,
any advice is appreciate!!!!!!!
Thanks for your attention.

Antonio

P.S.: Below there is part of code:


Applet Side
/////////////////////////////////////////
try {
       uRL = new URL(myUrl);
      uRLConnection =uRL.openConnection();
      uRLConnection.setDoOutput(true);
      uRLConnection.setDoInput(true);
      uRLConnection.setUseCaches (false);
       uRLConnection.setRequestProperty("Content-Type",
"application/octet-stream");
      objectOutputStream = new
ObjectOutputStream(uRLConnection.getOutputStream());
      objectOutputStream.writeObject(data);
       objectOutputStream.flush();
      objectOutputStream.close();
     }catch ....
//////////////////////////////////////////


Servlet Side
///////////////////////////////////////////
try {
           inputFromApplet = new
ObjectInputStream(request.getInputStream());
          String data=(String) inputFromApplet.readObject();
          inputFromApplet.close();
.......
        }

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to