DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17336>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17336 Parsing error when running on JVM 1.4.0_01 Summary: Parsing error when running on JVM 1.4.0_01 Product: Xerces2-J Version: 2.2.1 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Hi All, Please let me know the solution for the following problem which iam facing. I had upgraded to JVM 1.4.0_01 and I am receiving the error message: Connection refused When I switch back to JVM 1.3.1 the parser works fine. My XML document has a DOCTYPE statement in it which points to a DTD that's on other Machine. iam following the UNC ( Universal naming conventions i.e. //machinename/shared_drive/xmlfilename.xml ) ------------------------------Code Start ---------------------------------- import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; import org.xml.sax.helpers.XMLReaderFactory; import org.xml.sax.XMLReader; import java.io.*; class FinalTest { /** * FinalTest constructor comment. */ public FinalTest() { super(); } /** * Starts the application. * @param args an array of command-line arguments */ public static void main(java.lang.String[] args) { // Insert code to start the application here. try{ XMLReader parser = XMLReaderFactory.createXMLReader( "org.apache.xerces.parsers.SAXParser"); if(parser==null ) System.out.println("Parser is not initialized "); if ( parser instanceof XMLReader ){ ((XMLReader)parser).setFeature ( "http://xml.org/sax/features/validation",true); /* ((XMLReader)parser).setFeature ( "http://xml.org/sax/features/namespaces",false ); ((XMLReader)parser).setFeature ( "http://xml.org/sax/features/namespace-prefixes",false ); ((XMLReader)parser).setFeature ( "http://apache.org/xml/features/validation/schema",false ); ((XMLReader)parser).setFeature ( "http://apache.org/xml/features/validation/schema-full-checking",false); */ } //parser.parse("C:\\ukalasx.PROF"); // hard drive //parser.parse("M:\\profiles\\ukalasx.PROF"); // Remote Drive mapped as local drive parser.parse("\\\\hardy\\sslrpdata\\profiles\\ukalasx.PROF"); // UNC convention. }catch(SAXException s) { System.out.println("SAXException : " + s.getMessage() ); } catch(IOException e) { System.out.println("IOException : " + e.getMessage() ); } } } ------------------------------Code End ------------------------------------ Thanks, D Anja Reddy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
