You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Ben Griffin (JIRA)" <xe...@xml.apache.org> on 2010/05/12 15:43:44 UTC

[jira] Created: (XERCESC-1927) Mistaken exception thrown when loading a DTD grammar after an xml file is parsed

Mistaken exception thrown when loading a DTD grammar after an xml file is parsed
--------------------------------------------------------------------------------

                 Key: XERCESC-1927
                 URL: https://issues.apache.org/jira/browse/XERCESC-1927
             Project: Xerces-C++
          Issue Type: Bug
          Components: Validating Parser (DTD)
    Affects Versions: 3.0.1, 3.1.1
            Reporter: Ben Griffin


orphanGrammar(XMLUni::fgDTDEntityString) is  causing a NoSuchElementException exception when loading a DTD grammar after an xml file is parsed.
Essentially, it appears that the [dtd] record is not found in the pool once an xml file has been parsed.
I don't quite understand what all that is about - but an example is included.

The exception is thrown at
#1 xercesc_3_1::RefHashTableOf<xercesc_3_1::Grammar, xercesc_3_1::StringHasher>::orphanKey at RefHashTableOf.c:290
#2 xercesc_3_1::GrammarResolver::orphanGrammar at GrammarResolver.cpp:348
#3 xercesc_3_1::IGXMLScanner::loadDTDGrammar at IGXMLScanner.cpp:3061
#4 xercesc_3_1::IGXMLScanner::loadGrammar at IGXMLScanner.cpp:2939
#5 xercesc_3_1::XMLScanner::loadGrammar at XMLScanner.cpp:1772
#6 xercesc_3_1::XMLScanner::loadGrammar at XMLScanner.cpp:1782
#7 xercesc_3_1::DOMLSParserImpl::loadGrammar at DOMLSParserImpl.cpp:1057


-- 
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Updated: (XERCESC-1927) Mistaken exception thrown when loading a DTD grammar after an xml file is parsed

Posted by "Ben Griffin (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Griffin updated XERCESC-1927:
---------------------------------

    Attachment: foo.xml
                foo.xsd

remaining files for example.
The actual contents of the xml files and dtd/xsd files are not important; as long as they are all valid the issue is seen.

> Mistaken exception thrown when loading a DTD grammar after an xml file is parsed
> --------------------------------------------------------------------------------
>
>                 Key: XERCESC-1927
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1927
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (DTD)
>    Affects Versions: 3.0.1, 3.1.1
>            Reporter: Ben Griffin
>         Attachments: bim.dtd, bim.xml, foo.xml, foo.xsd, main.cpp
>
>
> orphanGrammar(XMLUni::fgDTDEntityString) is  causing a NoSuchElementException exception when loading a DTD grammar after an xml file is parsed.
> Essentially, it appears that the [dtd] record is not found in the pool once an xml file has been parsed.
> I don't quite understand what all that is about - but an example is included.
> The exception is thrown at
> #1 xercesc_3_1::RefHashTableOf<xercesc_3_1::Grammar, xercesc_3_1::StringHasher>::orphanKey at RefHashTableOf.c:290
> #2 xercesc_3_1::GrammarResolver::orphanGrammar at GrammarResolver.cpp:348
> #3 xercesc_3_1::IGXMLScanner::loadDTDGrammar at IGXMLScanner.cpp:3061
> #4 xercesc_3_1::IGXMLScanner::loadGrammar at IGXMLScanner.cpp:2939
> #5 xercesc_3_1::XMLScanner::loadGrammar at XMLScanner.cpp:1772
> #6 xercesc_3_1::XMLScanner::loadGrammar at XMLScanner.cpp:1782
> #7 xercesc_3_1::DOMLSParserImpl::loadGrammar at DOMLSParserImpl.cpp:1057

-- 
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Updated: (XERCESC-1927) Mistaken exception thrown when loading a DTD grammar after an xml file is parsed

Posted by "Ben Griffin (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Griffin updated XERCESC-1927:
---------------------------------

    Component/s:     (was: Validating Parser (DTD))

(I'm not sure of what components are used for what issues)

> Mistaken exception thrown when loading a DTD grammar after an xml file is parsed
> --------------------------------------------------------------------------------
>
>                 Key: XERCESC-1927
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1927
>             Project: Xerces-C++
>          Issue Type: Bug
>    Affects Versions: 3.0.1, 3.1.1
>            Reporter: Ben Griffin
>         Attachments: bim.dtd, bim.xml, foo.xml, foo.xsd, main.cpp
>
>
> orphanGrammar(XMLUni::fgDTDEntityString) is  causing a NoSuchElementException exception when loading a DTD grammar after an xml file is parsed.
> Essentially, it appears that the [dtd] record is not found in the pool once an xml file has been parsed.
> I don't quite understand what all that is about - but an example is included.
> The exception is thrown at
> #1 xercesc_3_1::RefHashTableOf<xercesc_3_1::Grammar, xercesc_3_1::StringHasher>::orphanKey at RefHashTableOf.c:290
> #2 xercesc_3_1::GrammarResolver::orphanGrammar at GrammarResolver.cpp:348
> #3 xercesc_3_1::IGXMLScanner::loadDTDGrammar at IGXMLScanner.cpp:3061
> #4 xercesc_3_1::IGXMLScanner::loadGrammar at IGXMLScanner.cpp:2939
> #5 xercesc_3_1::XMLScanner::loadGrammar at XMLScanner.cpp:1772
> #6 xercesc_3_1::XMLScanner::loadGrammar at XMLScanner.cpp:1782
> #7 xercesc_3_1::DOMLSParserImpl::loadGrammar at DOMLSParserImpl.cpp:1057

-- 
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Updated: (XERCESC-1927) Mistaken exception thrown when loading a DTD grammar after an xml file is parsed

Posted by "Ben Griffin (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Griffin updated XERCESC-1927:
---------------------------------

    Attachment: main.cpp
                bim.dtd
                bim.xml

cpp test that demonstrates the behaviour. foo files follow.

> Mistaken exception thrown when loading a DTD grammar after an xml file is parsed
> --------------------------------------------------------------------------------
>
>                 Key: XERCESC-1927
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1927
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (DTD)
>    Affects Versions: 3.0.1, 3.1.1
>            Reporter: Ben Griffin
>         Attachments: bim.dtd, bim.xml, main.cpp
>
>
> orphanGrammar(XMLUni::fgDTDEntityString) is  causing a NoSuchElementException exception when loading a DTD grammar after an xml file is parsed.
> Essentially, it appears that the [dtd] record is not found in the pool once an xml file has been parsed.
> I don't quite understand what all that is about - but an example is included.
> The exception is thrown at
> #1 xercesc_3_1::RefHashTableOf<xercesc_3_1::Grammar, xercesc_3_1::StringHasher>::orphanKey at RefHashTableOf.c:290
> #2 xercesc_3_1::GrammarResolver::orphanGrammar at GrammarResolver.cpp:348
> #3 xercesc_3_1::IGXMLScanner::loadDTDGrammar at IGXMLScanner.cpp:3061
> #4 xercesc_3_1::IGXMLScanner::loadGrammar at IGXMLScanner.cpp:2939
> #5 xercesc_3_1::XMLScanner::loadGrammar at XMLScanner.cpp:1772
> #6 xercesc_3_1::XMLScanner::loadGrammar at XMLScanner.cpp:1782
> #7 xercesc_3_1::DOMLSParserImpl::loadGrammar at DOMLSParserImpl.cpp:1057

-- 
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org