This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: 1) create copy of XMLwithDTD.xml file (see below) IDE throw to ide.log file: *********** Exception occurred ************ Tue Feb 13 11:16:03 CET 2001org.xml.sax.SAXException: null java.lang.NullPointerException at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965) [catch] at org.apache.tools.ant.module.loader.AntProjectDataLoader.findPrimaryFile(AntProjectDataLoader.java:112) at org.openide.loaders.MultiFileLoader.handleFindDataObject(MultiFileLoader.java:55) at org.openide.loaders.DataObjectPool.callHandleFind(DataObjectPool.java:91) at org.openide.loaders.DataLoader.findDataObject(DataLoader.java:136) at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:359) at org.openide.loaders.FolderList.createBoth(FolderList.java:489) at org.openide.loaders.FolderList.access$600(FolderList.java:40) at org.openide.loaders.FolderList$2.run(FolderList.java:194) at org.openide.util.Task.run(Task.java:124) at org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:562) Affected file: Tests/AAA/Packagee/XMLwithDTD.xml - XMLwithDTD.xml <?xml version="1.0"?> <!DOCTYPE Books [ <!ELEMENT Books (#PCDATA)> <!-- Throws exception too but require states.dtd file. --> <!-- <!ENTITY % states SYSTEM "states.dtd"> %states; --> <!NOTATION eps SYSTEM "ls"> ]> <Books> xxx </Books> - satates.dtd <!ENTITY cz "Czech Republic"> <!ENTITY us "United States"> <!ENTITY it "Italia">
Bug in Xerces (e.g. in the 1.2.3 we use). By default the real original exception is swallowed by code in the Xerces parser; you have to patch Xerces with a special debug mode on to see what really went wrong. Apparently it is choking on the NOTATION declaration, for some reason. Will attach stack trace of original exception. Looking at Xerces source, it is not at all obvious what is wrong (the source files where the exception occurs are completely uncommented). To reproduce, it suffices to just run the IDE with Ant installed, and examine some folder containing an XML file with the NOTATION decl below. Makes no difference if you use a SAX parser etc., core Xerces declaration-handling code seems to be at fault.
Created attachment 621 [details] Original NPE from Xerces code
Filled at Apache's bugzilla as: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=605
Marking WONTFIX since it is not our bug.