Received: (qmail 10494 invoked by uid 501); 19 Jul 2000 17:45:56 -0000 Message-Id: <20000719174556.10493.qmail@locus.apache.org> Date: 19 Jul 2000 17:45:56 -0000 From: Carfield Yim Reply-To: carfield@programmer.net To: submit@bugz.apache.org Subject: Read a file but JVM throws a SocketException X-Send-Pr-Version: 3.110 >Number: 6329 >Category: mod_jserv >Synopsis: Read a file but JVM throws a SocketException >Confidential: no >Severity: non-critical >Priority: medium >Responsible: jserv >State: open >Quarter: >Keywords: >Date-Required: >Class: support >Submitter-Id: apache >Arrival-Date: Wed Jul 19 10:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: carfield@programmer.net >Release: 1.3.9 >Organization: apache >Environment: Redhat Linux 6.2, jserv 2.0 >Description: I want my servlet (Apache/Jserv) to read a log file at the other machine on the network, so I mount a directory in that machine to my machine: mount ftp.foo.com:/dir/dir /remote Because of some unknown reason, the connection of 2 machine is broken. However, the servlet don't throw a FileNotFoundException or IOException but a java.net.BindException. Actually I have put this statement in a try-catch block which catch All Exception to prevent such error, but JVM don't catch it. Do you consider it is a Bug of JVM or Jserv or JSDK? >How-To-Repeat: Try to mount a directory from NFS and broken the connection and get a file from it >Fix: Report FileNotFoundException even in NFS >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]