Hi Craig,

Just skimming over the code in the org.apache.xerces.impl.dtd.models
package, I didn't see anything striking that would indicate an issue with
thread safety, though that doesn't mean there wasn't one or isn't one
somewhere. Have you tried to reproduce the problem yet with the most
recent version of the parser: Xerces-J 2.5.0?

On Wed, 22 Oct 2003, Courtney, Craig wrote:

> We are using Xerces-J 2.1.0 and I can't supply a file that shows this 
> behavior because it is sporadic.  If I start the process back up it will 
> continue processing just fine including retrying the parse that failed before.
>
> I use the attached helper to actually parse the xml.  Each thread in the 
> application has an instance of this helper and DOMs are not shared between 
> threads.
>
> Craig
>
> -----Original Message-----
> From: Michael Glavassevich [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 22, 2003 2:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: NullPointerException
>
>
> Hi Craig,
>
> What version of Xerces did this occur with? Also, could you supply
> a sample document that illustrates the problem.
>
> Thanks.
>
> On Wed, 22 Oct 2003, Courtney, Craig wrote:
>
> > We are getting periodic NullPointerExceptions while parsing documents.  
> > Here is the relevant parts of the stack trace.  Has anyone run into a 
> > similar problem and know how to solve it?
> >
> > Thanks
> > Craig
> >
> > java.lang.NullPointerException
> >   
> > org.apache.xerces.impl.dtd.models.DFAContentModel.buildDFA(DFAContentModel.java:538)
> >   
> > org.apache.xerces.impl.dtd.models.DFAContentModel.<init>(DFAContentModel.java:253)
> >   
> > org.apache.xerces.impl.dtd.DTDGrammar.createChildModel(DTDGrammar.java:2271)
> >   
> > org.apache.xerces.impl.dtd.DTDGrammar.getElementContentModelValidator(DTDGrammar.java:1727)
> >   org.apache.xerces.impl.dtd.DTDGrammar.getElementDecl(DTDGrammar.java:1271)
> >   
> > org.apache.xerces.impl.dtd.XMLDTDValidator.getContentSpecType(XMLDTDValidator.java:1645)
> >   
> > org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1831)
> >   
> > org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:724)
> >   
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:759)
> >   
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
> >   
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
> >   
> > org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
> >   
> > org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
> >   org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> >   org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
> >   
> > org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
> >   javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122)
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

-- 
---------------------------
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to