Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 JDOM wrapper needs a NamePool - ID: 521424
Last Update: Comment added ( mhkay )

If a Saxon JDOM DocumentWrapper is created without
supplying a namepool using the setNamePool() method,
subsequent access will fail, typically with a
NullPointerException.

The circumvention is to call setNamePool, e.g. as is
done in the DOM sample application:

DocumentWrapper docw =
new DocumentWrapper(doc, sourceID);
NamePool pool = NamePool.getDefaultNamePool();
docw.setNamePool(pool);

Problem reported by
Bekkers Yves [yves.bekkers@irisa.fr]

Applies to 6.5.1 and 7.0.

Source fixed, in both branches, by initializing the
namePool to the system default namepool within the
constructor. This will be adequate for all
applications except those that manipulate their own
namepools.

Mike Kay


Michael Kay ( mhkay ) - 2002-02-22 11:19

5

Closed

None

Michael Kay

JDOM interface

v6.5.1

Public


Comments ( 2 )

Date: 2002-04-30 16:43
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Fixed in 7.1


Date: 2002-04-12 17:31
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Fixed in 6.5.2


Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2002-04-30 16:43 mhkay
close_date - 2002-04-30 16:43 mhkay