You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2007/08/25 18:31:31 UTC

[jira] Updated: (XERCESJ-977) Null pointer exception during DOM parsing

     [ https://issues.apache.org/jira/browse/XERCESJ-977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XERCESJ-977:
-----------------------------------------

    Fix Version/s: 2.9.1

> Null pointer exception during DOM parsing
> -----------------------------------------
>
>                 Key: XERCESJ-977
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-977
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.6.2
>            Reporter: Emily Horton
>            Assignee: Michael Glavassevich
>             Fix For: 2.9.1
>
>         Attachments: event_catalog.dtd, x6.xml
>
>
> 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:
> &ldquo;[a]nimals should be housed in facilities dedicated to or assigned for that purpose...<bibr rid="b2"/>&rdquo;
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org