  | |  | Commented: (XERCESJ-977) Null pointer exception during DOM parsing | Commented: (XERCESJ-977) Null pointer exception during DOM parsing 2004-06-11 - By jira@(protected)
The following comment has been added to this issue:
Author: Michael Glavassevich Created: Fri, 11 Jun 2004 11:32 AM Body: If you could provide a complete sample (an XML document and runnable code sample) which reproduces the behaviour you're seeing, it would make it much simpler for us to investigate. Thanks. --------------------------------------------------------------------- View this comment: http://issues.apache.org/jira/browse/XERCESJ-977?page=comments#action_36051
--------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/XERCESJ-977
Here is an overview of the issue: --------------------------------------------------------------------- Key: XERCESJ-977 Summary: Null pointer exception during DOM parsing Type: Bug
Status: Unassigned Priority: Major
Project: Xerces2-J Components: DOM Versions: 2.6.2
Assignee: Reporter: Emily Horton
Created: Wed, 9 Jun 2004 12:40 PM Updated: Fri, 11 Jun 2004 11:32 AM
Description: We are parsing large numbers of xml files with DOM and are very occasionally getting a null pointer exception when parsing. In this case we tracked the problem down to a point in the text where there was a quoted attribute inside quoted text: “[a]nimals should be housed in facilities dedicated to or assigned for that purpose...<bibr rid="b2"/>”
Any of the following changes to the document would get rid of the null pointer exception and allow parsing: 1) Changing the bibr tag to a different without any attributes. 2) Removing the outside quotes. 3) Moving the bibr tag to outside the quotes.
Here is the stack trace for the error: 522316528 [Thread-200] ERROR -> org.apache.xerces.dom.DeferredDocumentImpl .setChunkIndex(Unknown Source) 522316529 [Thread-200] ERROR -> org.apache.xerces.dom.DeferredDocumentImpl .insertBefore(Unknown Source) 522316529 [Thread-200] ERROR -> org.apache.xerces.parsers.AbstractDOMParser .endGeneralEntity(Unknown Source) 522316529 [Thread-200] ERROR -> org.apache.xerces.impl.dtd.XMLDTDValidator .endGeneralEntity(Unknown Source) 522316529 [Thread-200] ERROR -> org.apache.xerces.impl .XMLDocumentFragmentScannerImpl.endEntity(Unknown Source) 522316530 [Thread-200] ERROR -> org.apache.xerces.impl.XMLDocumentScannerImpl .endEntity(Unknown Source) 522316530 [Thread-200] ERROR -> org.apache.xerces.impl.XMLEntityManager .endEntity(Unknown Source) 522316530 [Thread-200] ERROR -> org.apache.xerces.impl.XMLEntityScanner.load (Unknown Source) 522316530 [Thread-200] ERROR -> org.apache.xerces.impl.XMLEntityScanner .scanContent(Unknown Source) 522316530 [Thread-200] ERROR -> org.apache.xerces.impl .XMLDocumentFragmentScannerImpl.scanContent(Unknown Source) 522316530 [Thread-200] ERROR -> org.apache.xerces.impl .XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) 522316530 [Thread-200] ERROR -> org.apache.xerces.impl .XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) 522316531 [Thread-200] ERROR -> org.apache.xerces.parsers.XML11Configuration .parse(Unknown Source) 522316531 [Thread-200] ERROR -> org.apache.xerces.parsers.DTDConfiguration .parse(Unknown Source) 522316531 [Thread-200] ERROR -> org.apache.xerces.parsers.XMLParser.parse (Unknown Source) 522316531 [Thread-200] ERROR -> org.apache.xerces.parsers.DOMParser.parse (Unknown Source) 522316531 [Thread-200] ERROR -> org.apache.xerces.jaxp.DocumentBuilderImpl .parse(Unknown Source) 522316531 [Thread-200] ERROR -> javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
--------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-dev-unsubscribe@(protected) For additional commands, e-mail: xerces-j-dev-help@(protected)
|
|
 |