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 "Tom Oehser (JIRA)" <xe...@xml.apache.org> on 2006/06/21 22:36:31 UTC

[jira] Created: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
-----------------------------------------------------------------------------------------

         Key: XERCESJ-1169
         URL: http://issues.apache.org/jira/browse/XERCESJ-1169
     Project: Xerces2-J
        Type: Bug

    Versions: 2.8.0    
 Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
    Reporter: Tom Oehser


I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Assigned: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1169?page=all ]

Michael Glavassevich reassigned XERCESJ-1169:
---------------------------------------------

    Assign To: Michael Glavassevich

> With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
> -----------------------------------------------------------------------------------------
>
>          Key: XERCESJ-1169
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>      Project: Xerces2-J
>         Type: Bug

>     Versions: 2.8.0
>  Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
>     Reporter: Tom Oehser
>     Assignee: Michael Glavassevich
>  Attachments: reproduceXercesGrammarCachingBug.zip
>
> I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESJ-1169?page=comments#action_12423110 ] 
            
Michael Glavassevich commented on XERCESJ-1169:
-----------------------------------------------

Sounds like the GUMP builds these days are being done with Java 5.0. You could verify that by reading the manifest file in xercesImpl.jar.  If you need to build on an earlier JDK you can do that yourself if you extract the source from SVN. It's located here: http://svn.apache.org/repos/asf/xerces/java/trunk/.

> With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
> -----------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1169
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>             Project: Xerces2-J
>          Issue Type: Bug
>    Affects Versions: 2.8.0
>         Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
>            Reporter: Tom Oehser
>         Assigned To: Michael Glavassevich
>         Attachments: reproduceXercesGrammarCachingBug.zip
>
>
> I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1169?page=all ]

Michael Glavassevich updated XERCESJ-1169:
------------------------------------------

      Component/s: DOM (Level 3 Core)
    Fix Version/s: 2.8.1

> With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
> -----------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1169
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.8.0
>         Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
>            Reporter: Tom Oehser
>         Assigned To: Michael Glavassevich
>             Fix For: 2.8.1
>
>         Attachments: reproduceXercesGrammarCachingBug.zip
>
>
> I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

Posted by "Tom Oehser (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESJ-1169?page=comments#action_12417339 ] 

Tom Oehser commented on XERCESJ-1169:
-------------------------------------

Note, the zip file should be unzipped in a src/ directory, it will create a package, which includes DTDs etc. that are needed by the test.  There is one .java and one .xml file, the .java has a simple entity resolver to pull the DTDs with the classloader from the same package.  It should be fairly easy to reproduce it... -Tom

> With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
> -----------------------------------------------------------------------------------------
>
>          Key: XERCESJ-1169
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>      Project: Xerces2-J
>         Type: Bug

>     Versions: 2.8.0
>  Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
>     Reporter: Tom Oehser
>  Attachments: reproduceXercesGrammarCachingBug.zip
>
> I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

Posted by "Tom Oehser (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESJ-1169?page=comments#action_12417183 ] 

Tom Oehser commented on XERCESJ-1169:
-------------------------------------

To clarify- with no other change than using the CachingConfiguration, Text nodes are disappearing from the DOM I parse.  -Tom

> With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
> -----------------------------------------------------------------------------------------
>
>          Key: XERCESJ-1169
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>      Project: Xerces2-J
>         Type: Bug

>     Versions: 2.8.0
>  Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
>     Reporter: Tom Oehser

>
> I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESJ-1169?page=comments#action_12417407 ] 

Michael Glavassevich commented on XERCESJ-1169:
-----------------------------------------------

Xerces' caching of DTD grammars has its limitations (particuarly with respect to internal subsets [1]) but this definitely a bug.  The endDTD() event isn't being fired at the DOM builder.  This causes it to drop *all* of the text in the document.  I'll see if I can fix it.

[1] http://xerces.apache.org/xerces2-j/faq-grammars.html#faq-2

> With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
> -----------------------------------------------------------------------------------------
>
>          Key: XERCESJ-1169
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>      Project: Xerces2-J
>         Type: Bug

>     Versions: 2.8.0
>  Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
>     Reporter: Tom Oehser
>  Attachments: reproduceXercesGrammarCachingBug.zip
>
> I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

Posted by "Tom Oehser (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1169?page=all ]

Tom Oehser updated XERCESJ-1169:
--------------------------------

    Attachment: reproduceXercesGrammarCachingBug.zip

Ok, here is a test that reproduces it.  It might have something to do with the document having an internal subset.  The test shows that with default configuration, it just works, with the grammer caching, it works once, then fails. -Tom

> With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
> -----------------------------------------------------------------------------------------
>
>          Key: XERCESJ-1169
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>      Project: Xerces2-J
>         Type: Bug

>     Versions: 2.8.0
>  Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
>     Reporter: Tom Oehser
>  Attachments: reproduceXercesGrammarCachingBug.zip
>
> I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESJ-1169?page=comments#action_12417184 ] 

Michael Glavassevich commented on XERCESJ-1169:
-----------------------------------------------

Tom, do you have a test which we could use to reproduce this problem?

> With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
> -----------------------------------------------------------------------------------------
>
>          Key: XERCESJ-1169
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>      Project: Xerces2-J
>         Type: Bug

>     Versions: 2.8.0
>  Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
>     Reporter: Tom Oehser

>
> I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Resolved: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1169?page=all ]
     
Michael Glavassevich resolved XERCESJ-1169:
-------------------------------------------

    Resolution: Fixed

I've just committed a fix to SVN. You should be able to verify it with tomorrow's GUMP build [1] of Xerces.

[1] http://vmgump.apache.org/gump/public-jars/xml-xerces2/jars/

> With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
> -----------------------------------------------------------------------------------------
>
>          Key: XERCESJ-1169
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>      Project: Xerces2-J
>         Type: Bug

>     Versions: 2.8.0
>  Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
>     Reporter: Tom Oehser
>     Assignee: Michael Glavassevich
>  Attachments: reproduceXercesGrammarCachingBug.zip
>
> I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.

Posted by "Christopher Mendelson (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESJ-1169?page=comments#action_12423100 ] 
            
Christopher Mendelson commented on XERCESJ-1169:
------------------------------------------------

Michael,
I have this same issue, but when I replace the 2.8.0 xercesImpl.jar with the latest from GUMP, I get a java.lang.UnsupportedClassVersionError: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl (Unsupported major.minor version 49.0).  I'm running jdk1.4.2_05.  What do I need to do to be able to use Xerces with this fix?  Can I get the latest source and build it myself?
Thanks,
-Kit


> With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
> -----------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1169
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>             Project: Xerces2-J
>          Issue Type: Bug
>    Affects Versions: 2.8.0
>         Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex document with embedded XML DSIG using namespaces.
>            Reporter: Tom Oehser
>         Assigned To: Michael Glavassevich
>         Attachments: reproduceXercesGrammarCachingBug.zip
>
>
> I am parsing a document which has an XML DSIG signature, when I turn on System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",             "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); sometimes (I think the first time is fine, the second time and higher it fails) the "SignatureValue" Element node has child Text node.  Parsing without the Caching configuration is find, there is always a Text node under the SignatureValue Element node.  Parsing with the CachingConfiguration, the first time it has a Text child node, the next time and thereafter, there is no child of the SignatureValue node at all.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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