From owner-freebsd-java Tue Jun 12 6:35:53 2001 Delivered-To: freebsd-java@freebsd.org Received: from dirac.th.physik.uni-bonn.de (dirac.th.physik.uni-bonn.de [131.220.161.119]) by hub.freebsd.org (Postfix) with ESMTP id B974337B401 for ; Tue, 12 Jun 2001 06:35:49 -0700 (PDT) (envelope-from schreyer@th.physik.uni-bonn.de) Received: from merlin.th.physik.uni-bonn.de (merlin.th.physik.uni-bonn.de [131.220.161.121]) by dirac.th.physik.uni-bonn.de (Postfix) with ESMTP id B0BDA5D48; Tue, 12 Jun 2001 15:35:48 +0200 (CEST) Received: by merlin.th.physik.uni-bonn.de (Postfix, from userid 146) id 1AD0836417; Tue, 12 Jun 2001 15:35:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by merlin.th.physik.uni-bonn.de (Postfix) with ESMTP id 0253B32605; Tue, 12 Jun 2001 15:35:47 +0200 (CEST) Date: Tue, 12 Jun 2001 15:35:47 +0200 (CEST) From: Ralph Schreyer To: Cc: Jan Conrad Subject: Strange timeout-like problem using linux-jdk-1.3.1 and xerces-1.4.0 Message-ID: <20010612145230.A10493-100000@merlin.th.physik.uni-bonn.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, when trying to parse an XML-file file.xml using linux-jdk-1.3.1 and xerces-1.4.0 I encounter a file-not-found-error from time to time. The relevant part of the code looks like: public class SAXParserDemo { ... // Instantiate a parser XMLReader parser = XMLReaderFactory.createXMLReader( "org.apache.xerces.parsers.SAXParser"); ... // the String uri is the location of file.xml parser.parse(uri); ... } The usage is java SAXParserDemo Now, if I enter java SAXParserDemo /path/to/nfs_mounted/file.xml I get the error message **Parsing Fatal Error** Line: 0 URI: null Message: File "contents.xml" not found. Error in parsing: Fatal Error encountered Whereas, if I enter java SAXParserDemo file:///path/to/nfs_mounted/file.xml everything works fine. Strangely, for the next few minutes, entering the same command as above java SAXParserDemo /path/to/nfs_mounted/file.xml works fine, too. But only for some minutes. Thereafter, I encounter the error message again. Also, if I use java SAXParserDemo /path/to/local/file.xml I get no error message. Using jdk-1.1.8, these problems don't appear at all. Has anybody experienced a strange behaviour like this? Best regards, Ralph. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message