You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/07/11 20:26:14 UTC

DO NOT REPLY [Bug 21522] New: - NullPointerException doing "new SAXParser()"

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=21522>.
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=21522

NullPointerException doing "new SAXParser()"

           Summary: NullPointerException doing "new SAXParser()"
           Product: Xerces2-J
           Version: 2.4.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: SAX
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: billg@snapnames.com


The stack is below.  The line of code causing this in our application looks 
like:
        parser = new SAXParser();

A number of other threads in the same VM may be creating and using their own 
private instances of SAXParser at the time of the error.

java.lang.NullPointerException
        at java.util.TreeMap.rotateLeft(TreeMap.java:1248)
        at java.util.TreeMap.fixAfterInsertion(TreeMap.java:1315)
        at java.util.TreeMap.put(TreeMap.java:477)
        at sun.nio.cs.AbstractCharsetProvider.lookup
(AbstractCharsetProvider.java:102)
        at sun.nio.cs.AbstractCharsetProvider.charsetForName
(AbstractCharsetProvider.java:114)
        at java.nio.charset.Charset.lookup(Charset.java:380)
        at java.nio.charset.Charset.isSupported(Charset.java:405)
        at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:71)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:83)
        at org.apache.xerces.util.ObjectFactory.findJarServiceProvider(Unknown 
Source)
        at org.apache.xerces.util.ObjectFactory.createObject(Unknown Source)
        at org.apache.xerces.util.ObjectFactory.createObject(Unknown Source)
        at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
        at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org