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 "Cap Brasil Ano (JIRA)" <xe...@xml.apache.org> on 2005/05/11 11:26:07 UTC

[jira] Updated: (XERCESJ-1054) Parsing XML sometimes goes wrong

     [ http://issues.apache.org/jira/browse/XERCESJ-1054?page=all ]

Cap Brasil Ano updated XERCESJ-1054:
------------------------------------

    Attachment: ValidationThreadTest.zip
                service_1_20050510155441.log

Hello Michael,

We used a modified version of the threading stress test (we modified it to call the parser exactly as in our code : I attached the file ValidationThreadTest.zip in which we included XSD used to validate messages), and we could not reproduce the problem with 8 threads, each decoding 100'000 messages.

As we kept on reproducing the problem on the production environment (on which we run 8 threads), we added a printStackTrace in our errorHandler to determine where the problem occurs. I added the log files with this message (service_1_20050510155441.log). As you can see, the exception is thrown inside the parser despite the fact that the string '8274469' seems to match the pattern '\d{1,20}'.

Context :
---------
All the messages are read in a queue. We've already checked that no message was altered before we call the parse method. The problem occurs when we're in the following conditions :
   - Application is not running
   - We load the queue with many messages
   - We start the application which launches 8 threads to read the queue

Then we obtain the stack trace I included in this post.

I hope that the log file and the modified stress test will help.


Maxime

> 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: Cap Brasil Ano
>  Attachments: ValidationThreadTest.java, ValidationThreadTest.zip, service_1_20050510155441.log
>
> 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
-
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