PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2911 *** shadow/2911 Mon Jul 30 20:02:14 2001 --- shadow/2911.tmp.5655 Mon Jul 30 20:02:14 2001 *************** *** 0 **** --- 1,46 ---- + +============================================================================+ + | SAXParser causes a null pointer exception when using external DTD declarat | + +----------------------------------------------------------------------------+ + | Bug #: 2911 Product: Xerces-J | + | Status: NEW Version: 1.4.2 | + | Resolution: Platform: PC | + | Severity: Blocker OS/Version: Other | + | Priority: Other Component: SAX | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Hi, + I am using JAXP with Xerces-J 1.4.2. When using SAXParser with external DTD + declaration similar to the following xml code snippet, I am getting a null + pointer exception in xerces-J 1.4.1 as well as 1.4.2. This occurs when the code + to invoke parsing is executed i.e. + saxParser.parse(inputSource, new InXMLHandler()); + + The xml snippet is: + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE InboundRequest [ + <!ELEMENT InboundRequest (APIHeader, BusinessObject)> + <!ENTITY % APIHeader SYSTEM "file:///c:/pr/APIHeader.dtd"> + %APIHeader; + <!ENTITY % BusinessObject SYSTEM "file:///c:/pr/Catalog.dtd"> + %BusinessObject; + ]> + + the exception when trying to run it is: + java.lang.NullPointerException + at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094) + at javax.xml.parsers.SAXParser.parse(SAXParser.java:374) + at testclass.ParsingTest.main(ParsingTest.java:59) + at symantec.tools.debug.Agent.runMain(Native Method) + at symantec.tools.debug.MainThread.run(Unknown Source) + + The XML code fully validates using XMLSpy 3.5. I saw a similar post at + lists.xml.org but there was no reply to it. This seems to be a bug. + + Regards, + Nitish --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
