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.

Bug 9581 - NullPointerException in Xerces's StringPool
Summary: NullPointerException in Xerces's StringPool
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: _ pkuzel
URL:
Keywords:
Depends on: 13904
Blocks:
  Show dependency tree
 
Reported: 2001-02-13 10:44 UTC by Martin Schovanek
Modified: 2008-12-22 19:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Original NPE from Xerces code (1.68 KB, text/plain)
2001-02-14 10:51 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2001-02-13 10:44:31 UTC
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">
Comment 1 Jesse Glick 2001-02-14 10:50:59 UTC
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.
Comment 2 Jesse Glick 2001-02-14 10:51:59 UTC
Created attachment 621 [details]
Original NPE from Xerces code
Comment 3 _ pkuzel 2001-02-14 14:52:59 UTC
Filled at Apache's bugzilla as:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=605
Comment 4 Jesse Glick 2001-02-14 16:10:59 UTC
Marking WONTFIX since it is not our bug.