This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9310 - unknownNameCode NamePool exceptions found in logs
Summary: unknownNameCode NamePool exceptions found in logs
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-24 17:32 UTC by fd
Modified: 2010-03-26 02:16 UTC (History)
0 users

See Also:


Attachments

Description fd 2010-03-24 17:32:58 UTC
An net.sf.saxon.om.NamePool.unknownNameCode exception gets thrown from time to time when the library is deployed within a Web service.

I suspect that this happens because the TransformerFactory that is used to create the source and stylesheet documents is not always the same.

The bug is not easily reproductible as the same NamePool seems to be used most of the time, but it does occur a few times per day.
Comment 1 fd 2010-03-26 02:16:27 UTC
The Saxon Configuration instance was defined as static in AbstractXsltTestImplementation causing the instance to be shared amongst threads.

The configuration object was given to the function that loads a compiled stylesheet. This function starts by changing the NamePool to the one that was used to compile the stylesheet.

When multiple threads use the same library at the same time, the UnknownNamePool exception could be raised as a consequence.