Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 6199 invoked from network); 21 Dec 2000 15:33:27 -0000 Received: from unknown (HELO gtd.es) (195.76.14.163) by locus.apache.org with SMTP; 21 Dec 2000 15:33:27 -0000 Received: from merce_mulet [195.76.14.164] by gtd.es [127.0.0.1] with SMTP (MDaemon.v2.8.5.0.R) for ; Thu, 21 Dec 2000 16:25:37 +0100 Received: by localhost with Microsoft MAPI; Thu, 21 Dec 2000 16:27:13 +0100 Message-ID: <01C06B6A.DFB3C5A0.mmg@gtd.es> From: Merce Mulet Reply-To: "mmg@gtd.es" TO: 'tomcat-user' Subject: Socket Exception Date: Thu, 21 Dec 2000 16:27:11 +0100 Organization: GTD X-Mailer: Correo electr�nico de Internet de Microsoft/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-MDaemon-Deliver-To: tomcat-user@jakarta.apache.org X-Return-Path: mmg@gtd.es X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, I've been using tomcat 3.1 on windows NT to serve an application where an applet and a servlet communicates using http-tunneling and object serialisation. The applet sends a command-object to the servlet using this few java instructions: connection = dataURL.openConnection(); connection.setUseCaches(false); //Specify the browser not cache to get fresh result connection.setDoOutput(true); //tell the system to permit me to send data, not just read it byteStream = new ByteArrayOutputStream(512); out = new ObjectOutputStream(byteStream); out.writeObject(command); //Write Post Data into local buffer String lengthString =String.valueOf(byteStream.size()); connection.setRequestProperty("Content-Length", lengthString); byteStream.writeTo(connection.getOutputStream()); //Write data to real output stream /* read servlet answer */ ObjectInputStream in = new ObjectInputStream(connection.getInputStream()); This code works fine in my NT environment, but when I've migrated the whole application on a Linux platform using tomcat 3.1 as well, I've got a problem with the servlet connection: The applet gets an exception like next one, when executing the last instruction to get the servlet answer: java.net.SocketException: Unexpected end of file from server Has anyone any ideas?? Thanks.!!! ___________________________________________________ Merce Mulet Gascon GTD. Ingenieria de sistemas y software industrial. Rosa Sensat, 9-11. 08005. Barcelona. t. (34) 93.225.77.00 f. (34) 93.225.77.08 mmg@gtd.es http://www.gtd.es ___________________________________________________