Intermittent SAXParseException 2004-04-29 - By Matt Page
Hi,
We are getting the following error very intermittently (under heavy load?), making it almost impossible to reproduce.
The XML is valid (checked with XMLSpy) but Xerces occasionally does not validate it:
org.xml.sax.SAXParseException: cvc-pattern-valid: Value '2003-2004' is not facet-valid with respect to pattern '[0-9?-??-??-??-??-??-??-??-??-??-??-??-??-??-?]{4}-[0-9?-??-??-??-??-??-??-??- ??-??-??-??-??-??-?]{4}'
org.xml.sax.SAXParseException: cvc-attribute.3: The value '2003-2004' of attribute 'AttributeX' on element 'ElementY' is not valid with respect to its type.
The error is raised on fields that have a control on their type: <xsd:restriction base="xsd:string"> <xsd:pattern value="\d{4}-\d{4}"/></xsd:restriction>
Once the same XML is submitted the second time the file is successfully validated. We are not sure, but are wondering if there is a bug in Xerces.
Any help much appreciated,
Matt
__________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|