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 "Emmanuel d'Hardemare (JIRA)" <xe...@xml.apache.org> on 2005/04/01 14:43:16 UTC
[jira] Created: (XERCESJ-1054) Parsing XML sometimes goes wrong
Parsing XML sometimes goes wrong
--------------------------------
Key: XERCESJ-1054
URL: http://issues.apache.org/jira/browse/XERCESJ-1054
Project: Xerces2-J
Type: Bug
Environment: Sun Solaris
Reporter: Emmanuel d'Hardemare
XML parser sometimes rejects XML messages, although the message is valid considering the XSD definition.
This bug does not always appears, only some times. The error message could'nt help to find the cause of this beahviour.
the error message :
error : org.xml.sax.SAXParseException: cvc-pattern-valid: Value '7534072' is not facet-valid with respect to pattern '\d{1,20}' for type 'IdEptXdslType'.
7534072 is respectful of the pattern \d{1,20}
Does this remind you something ?
--
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@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Updated: (XERCESJ-1054) Parsing XML sometimes goes wrong
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1054?page=history ]
Michael Glavassevich updated XERCESJ-1054:
------------------------------------------
Attachment: ValidationThreadTest.java
A threading stress test for schema validation. This program takes three parameters: the URI of the XML document, the number of iterations to run per thread and the number of threads to run.
> Parsing XML sometimes goes wrong
> --------------------------------
>
> Key: XERCESJ-1054
> URL: http://issues.apache.org/jira/browse/XERCESJ-1054
> Project: Xerces2-J
> Type: Bug
> Environment: Sun Solaris
> Reporter: Emmanuel d'Hardemare
> Attachments: ValidationThreadTest.java
>
> XML parser sometimes rejects XML messages, although the message is valid considering the XSD definition.
> This bug does not always appears, only some times. The error message could'nt help to find the cause of this beahviour.
> the error message :
> error : org.xml.sax.SAXParseException: cvc-pattern-valid: Value '7534072' is not facet-valid with respect to pattern '\d{1,20}' for type 'IdEptXdslType'.
> 7534072 is respectful of the pattern \d{1,20}
> Does this remind you something ?
--
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@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Commented: (XERCESJ-1054) Parsing XML sometimes goes wrong
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1054?page=comments#action_62320 ]
Michael Glavassevich commented on XERCESJ-1054:
-----------------------------------------------
I've tried to reproduce the problem with a small schema and test program, but haven't observed any problems. I'm going to post my test program on this JIRA issue. Could you please try running it with your document and schema with the the latest code from CVS [1]. If it fails it should produce a stack trace. If you could post a schema and instance document which cause such a failure, it would certainly help move this investigation along.
[1] http://brutus.apache.org/gump/public-jars/xml-xerces2/
> Parsing XML sometimes goes wrong
> --------------------------------
>
> Key: XERCESJ-1054
> URL: http://issues.apache.org/jira/browse/XERCESJ-1054
> Project: Xerces2-J
> Type: Bug
> Environment: Sun Solaris
> Reporter: Emmanuel d'Hardemare
> Attachments: ValidationThreadTest.java
>
> XML parser sometimes rejects XML messages, although the message is valid considering the XSD definition.
> This bug does not always appears, only some times. The error message could'nt help to find the cause of this beahviour.
> the error message :
> error : org.xml.sax.SAXParseException: cvc-pattern-valid: Value '7534072' is not facet-valid with respect to pattern '\d{1,20}' for type 'IdEptXdslType'.
> 7534072 is respectful of the pattern \d{1,20}
> Does this remind you something ?
--
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@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Commented: (XERCESJ-1054) Parsing XML sometimes goes wrong
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1054?page=comments#action_61955 ]
Michael Glavassevich commented on XERCESJ-1054:
-----------------------------------------------
I've seen a few reports like the one you found. Can you describe how you're doing validation from multiple threads? A simple test case which demonstrates the problem would be even more helpful to narrow down the problem.
> Parsing XML sometimes goes wrong
> --------------------------------
>
> Key: XERCESJ-1054
> URL: http://issues.apache.org/jira/browse/XERCESJ-1054
> Project: Xerces2-J
> Type: Bug
> Environment: Sun Solaris
> Reporter: Emmanuel d'Hardemare
>
> XML parser sometimes rejects XML messages, although the message is valid considering the XSD definition.
> This bug does not always appears, only some times. The error message could'nt help to find the cause of this beahviour.
> the error message :
> error : org.xml.sax.SAXParseException: cvc-pattern-valid: Value '7534072' is not facet-valid with respect to pattern '\d{1,20}' for type 'IdEptXdslType'.
> 7534072 is respectful of the pattern \d{1,20}
> Does this remind you something ?
--
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@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Commented: (XERCESJ-1054) Parsing XML sometimes goes wrong
Posted by "Emmanuel d'Hardemare (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1054?page=comments#action_61951 ]
Emmanuel d'Hardemare commented on XERCESJ-1054:
-----------------------------------------------
OK, I found some explaination on :
http://www.xml-xerces.com/msg/2608.html
it seems that the fact we use several thread may induce some problems.
We use Xerces-J 2.6.2 and still have some difficulties. What would you recommend
> Parsing XML sometimes goes wrong
> --------------------------------
>
> Key: XERCESJ-1054
> URL: http://issues.apache.org/jira/browse/XERCESJ-1054
> Project: Xerces2-J
> Type: Bug
> Environment: Sun Solaris
> Reporter: Emmanuel d'Hardemare
>
> XML parser sometimes rejects XML messages, although the message is valid considering the XSD definition.
> This bug does not always appears, only some times. The error message could'nt help to find the cause of this beahviour.
> the error message :
> error : org.xml.sax.SAXParseException: cvc-pattern-valid: Value '7534072' is not facet-valid with respect to pattern '\d{1,20}' for type 'IdEptXdslType'.
> 7534072 is respectful of the pattern \d{1,20}
> Does this remind you something ?
--
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@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Commented: (XERCESJ-1054) Parsing XML sometimes goes wrong
Posted by "Emmanuel d'Hardemare (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1054?page=comments#action_61962 ]
Emmanuel d'Hardemare commented on XERCESJ-1054:
-----------------------------------------------
This problem is not reproductible. It appears with strong loadings.
For each thread we create an object DecXML
The message is then validated with this object.
This object is :
public DecXML()
{
try
{
// Initialisation des fabriques
// DTD --
_fabriqueDtd = DocumentBuilderFactory.newInstance();
_fabriqueDtd.setValidating(_parserValidant);
// XSD --
System.setProperty("org.apache.xerces.xni.parser.XMLParserConfiguration",
"org.apache.xerces.parsers.XMLGrammarCachingConfiguration");
_fabriqueXsd = DocumentBuilderFactory.newInstance();
_fabriqueXsd.setValidating(_parserValidant);
_fabriqueXsd.setNamespaceAware(true);
_fabriqueXsd.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage","http://www.w3.org/2001/XMLSchema");
if (_parserDeferNodeExp != null)
{
try
{
_fabriqueXsd.setAttribute("http://apache.org/xml/features/dom/defer-node-expansion", _parserDeferNodeExp);
_fabriqueDtd.setAttribute("http://apache.org/xml/features/dom/defer-node-expansion", _parserDeferNodeExp);
}
catch (IllegalArgumentException iae)
{
Logger.tracerMessage(Logger.LVL_WARNING, "DecXML", "Exception lors du positionnement du mode Defer Node Expansion: " + iae);
}
}
// Initialisation des variables pour le decodage DTD
_builderDtd = _fabriqueDtd.newDocumentBuilder();
// Initialisation des variables pour le decodage XSD
_builderXsd = _fabriqueXsd.newDocumentBuilder();
// Positionnement du handler d'erreur
_errHandler = new ErreurXML();
_builderXsd.setErrorHandler(_errHandler);
_builderDtd.setErrorHandler(_errHandler);
// Initialisation du resolveur de path
_myResolver = new MyResolver();
_builderXsd.setEntityResolver(_myResolver);
_builderDtd.setEntityResolver(_myResolver);
> Parsing XML sometimes goes wrong
> --------------------------------
>
> Key: XERCESJ-1054
> URL: http://issues.apache.org/jira/browse/XERCESJ-1054
> Project: Xerces2-J
> Type: Bug
> Environment: Sun Solaris
> Reporter: Emmanuel d'Hardemare
>
> XML parser sometimes rejects XML messages, although the message is valid considering the XSD definition.
> This bug does not always appears, only some times. The error message could'nt help to find the cause of this beahviour.
> the error message :
> error : org.xml.sax.SAXParseException: cvc-pattern-valid: Value '7534072' is not facet-valid with respect to pattern '\d{1,20}' for type 'IdEptXdslType'.
> 7534072 is respectful of the pattern \d{1,20}
> Does this remind you something ?
--
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@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org