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 "Yonas Jongkind (JIRA)" <xe...@xml.apache.org> on 2009/07/31 17:24:14 UTC
[jira] Created: (XERCESJ-1390) NullPointerException while parsing
document with XHTML entity resolver. "Random changes" fix the error in the
document.
NullPointerException while parsing document with XHTML entity resolver. "Random changes" fix the error in the document.
-----------------------------------------------------------------------------------------------------------------------
Key: XERCESJ-1390
URL: https://issues.apache.org/jira/browse/XERCESJ-1390
Project: Xerces2-J
Issue Type: Bug
Reporter: Yonas Jongkind
See the attached test to reproduce the error. This is the output that I get from the test.
If I remove the XhtmlEntityResolver the test will pass. Also, the only difference between the two XML files in the test is the addition of a comment.
Java Home: C:\Program Files (x86)\Java\jre6
Java Version: 1.6.0_14
Parsing Works
Parsing Fails
Exception in thread "main" java.lang.NullPointerException
at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.setChunkIndex(Unknown Source)
at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.appendChild(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at TestXercesParse.parse(TestXercesParse.java:41)
at TestXercesParse.main(TestXercesParse.java:24)
--
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
[jira] Updated: (XERCESJ-1390) NullPointerException while parsing
document with XHTML entity resolver. "Random changes" fix the error in the
document.
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich updated XERCESJ-1390:
------------------------------------------
Component/s: DOM (Level 3 Core)
> NullPointerException while parsing document with XHTML entity resolver. "Random changes" fix the error in the document.
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1390
> URL: https://issues.apache.org/jira/browse/XERCESJ-1390
> Project: Xerces2-J
> Issue Type: Bug
> Components: DOM (Level 3 Core)
> Reporter: Yonas Jongkind
> Attachments: XercesNPX.zip
>
>
> See the attached test to reproduce the error. This is the output that I get from the test.
> If I remove the XhtmlEntityResolver the test will pass. Also, the only difference between the two XML files in the test is the addition of a comment.
> Java Home: C:\Program Files (x86)\Java\jre6
> Java Version: 1.6.0_14
> Parsing Works
> Parsing Fails
> Exception in thread "main" java.lang.NullPointerException
> at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.setChunkIndex(Unknown Source)
> at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.appendChild(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> at TestXercesParse.parse(TestXercesParse.java:41)
> at TestXercesParse.main(TestXercesParse.java:24)
--
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
[jira] Updated: (XERCESJ-1390) NullPointerException while parsing
document with XHTML entity resolver. "Random changes" fix the error in the
document.
Posted by "Yonas Jongkind (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonas Jongkind updated XERCESJ-1390:
------------------------------------
Attachment: XercesNPX.zip
This is an eclipse project zipped.
The only difference between the two XML files (one that parses and one that does not) is that I added an XML comment to one of them.
> NullPointerException while parsing document with XHTML entity resolver. "Random changes" fix the error in the document.
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1390
> URL: https://issues.apache.org/jira/browse/XERCESJ-1390
> Project: Xerces2-J
> Issue Type: Bug
> Reporter: Yonas Jongkind
> Attachments: XercesNPX.zip
>
>
> See the attached test to reproduce the error. This is the output that I get from the test.
> If I remove the XhtmlEntityResolver the test will pass. Also, the only difference between the two XML files in the test is the addition of a comment.
> Java Home: C:\Program Files (x86)\Java\jre6
> Java Version: 1.6.0_14
> Parsing Works
> Parsing Fails
> Exception in thread "main" java.lang.NullPointerException
> at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.setChunkIndex(Unknown Source)
> at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.appendChild(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> at TestXercesParse.parse(TestXercesParse.java:41)
> at TestXercesParse.main(TestXercesParse.java:24)
--
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
[jira] Commented: (XERCESJ-1390) NullPointerException while parsing
document with XHTML entity resolver. "Random changes" fix the error in the
document.
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784625#action_12784625 ]
Michael Glavassevich commented on XERCESJ-1390:
-----------------------------------------------
FYI: We likely fixed the equivalent bug in Xerces-J 2.9.1. See XERCESJ-977. However the fix here would in no way resolve the issue in the JDK since they ship their own fork of the codebase.
> NullPointerException while parsing document with XHTML entity resolver. "Random changes" fix the error in the document.
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1390
> URL: https://issues.apache.org/jira/browse/XERCESJ-1390
> Project: Xerces2-J
> Issue Type: Bug
> Components: DOM (Level 3 Core)
> Reporter: Yonas Jongkind
> Attachments: XercesNPX.zip
>
>
> See the attached test to reproduce the error. This is the output that I get from the test.
> If I remove the XhtmlEntityResolver the test will pass. Also, the only difference between the two XML files in the test is the addition of a comment.
> Java Home: C:\Program Files (x86)\Java\jre6
> Java Version: 1.6.0_14
> Parsing Works
> Parsing Fails
> Exception in thread "main" java.lang.NullPointerException
> at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.setChunkIndex(Unknown Source)
> at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.appendChild(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> at TestXercesParse.parse(TestXercesParse.java:41)
> at TestXercesParse.main(TestXercesParse.java:24)
--
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
[jira] Resolved: (XERCESJ-1390) NullPointerException while parsing
document with XHTML entity resolver. "Random changes" fix the error in the
document.
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich resolved XERCESJ-1390.
-------------------------------------------
Resolution: Invalid
You are using Sun's implementation, not Apache Xerces-J. We cannot do anything about the problem you're having as we have no influence over that codebase. You need to pursue this with the JDK vendor if you want a fix there.
> NullPointerException while parsing document with XHTML entity resolver. "Random changes" fix the error in the document.
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1390
> URL: https://issues.apache.org/jira/browse/XERCESJ-1390
> Project: Xerces2-J
> Issue Type: Bug
> Components: DOM (Level 3 Core)
> Reporter: Yonas Jongkind
> Attachments: XercesNPX.zip
>
>
> See the attached test to reproduce the error. This is the output that I get from the test.
> If I remove the XhtmlEntityResolver the test will pass. Also, the only difference between the two XML files in the test is the addition of a comment.
> Java Home: C:\Program Files (x86)\Java\jre6
> Java Version: 1.6.0_14
> Parsing Works
> Parsing Fails
> Exception in thread "main" java.lang.NullPointerException
> at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.setChunkIndex(Unknown Source)
> at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.appendChild(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> at TestXercesParse.parse(TestXercesParse.java:41)
> at TestXercesParse.main(TestXercesParse.java:24)
--
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