Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] 0x25?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Nils_Kilden-Pedersen AT Countrywide.Com
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] 0x25?
  • Date: Fri, 28 Mar 2003 09:02:57 -0800

This code throws the NullPointerException:

InputStreamReader isr = new InputStreamReader(new FileInputStream(filename));
Document doc = new Builder().build(isr);





Nils_Kilden-Pedersen AT Countrywide.Com
Sent by: xom-interest-bounces AT lists.ibiblio.org
03/27/2003 11:46 PM


To: xom-interest AT lists.ibiblio.org
cc:
Subject: Re: [XOM-interest] 0x25?


http://java.sun.com/j2ee/sdk_1.3/techdocs/api/org/xml/sax/XMLReader.html
Don't know which is right.

xom-interest-bounces AT lists.ibiblio.org wrote:
Date:
03/27/2003 06:23:15 PM
From:
"Elliotte Harold - java FAQ" <elharo AT metalab.unc.edu>
Sent by:
xom-interest-bounces AT lists.ibiblio.org
To:
Nils_Kilden-Pedersen AT Countrywide.Com
cc:
xom-interest AT lists.ibiblio.org
Subject:
Re: [XOM-interest] 0x25?
On Thu, 27 Mar 2003 Nils_Kilden-Pedersen AT Countrywide.Com wrote:

> In nu.xom.Builder methods build(Reader) and build(InputStream) has a
bug.
> Both call org.xml.sax.XMLReader.setEntityResolver with a null resolver.
> The javadocs for setEntityResolver states:
> Throws: java.lang.NullPointerException - If the resolver argument is
null.

What JavaDoc said that? I don't see it at
http://www.saxproject.org/apidoc/org/xml/sax/XMLReader.html#setEntityResolver(org.xml.sax.EntityResolver)
and the general contract is that passing null to setEntityResolver uses no
EntityResolver. This may be a bug in your parser. If it's a real issue I
may have to bring it up with the SAX developers.

--
Elliotte Rusty Harold
elharo AT metalab.unc.edu
elharo AT macfaq.com

_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest







Archive powered by MHonArc 2.6.24.

Top of Page