[
https://issues.apache.org/jira/browse/XERCESJ-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Glavassevich resolved XERCESJ-1448.
-------------------------------------------
Resolution: Invalid
The stack trace shows that you're not using Xerces' XML Schema validator. The
com.sun.org.apache.xerces.internal.* classes come from Oracle's / Sun's
implementation of JDK 5.0+ and are a fork/derivative of Apache Xerces. If
you're looking for a fix there you'll need to pursue it with Oracle. We have no
influence over that code base.
> Validation failure when the regular expression in schema is valid
> -----------------------------------------------------------------
>
> Key: XERCESJ-1448
> URL: https://issues.apache.org/jira/browse/XERCESJ-1448
> Project: Xerces2-J
> Issue Type: Bug
> Affects Versions: 2.9.1
> Environment: Java 1.5, xerces 2.9.1 release
> Reporter: Yan Jiao
>
> xml schema has regular expression:
> <xs:simpleType name="msisdnType">
> <xs:restriction base="xs:positiveInteger">
> <xs:totalDigits value="10"/>
> <xs:pattern value="[2-9]{1}[0-9]{9}"/>
> </xs:restriction>
> </xs:simpleType>
> We used 2 numbers to test this type "msisdnType": 9176604247 and 1176604247.
> We ran this from a java Runnable subclass. When ran with 10 threads, and had
> 4 instances of the classes started one after another. We can see this
> exception more than once:
> 05/06/10 12:01:46.939 [ERROR] nnector.dispatcher.3
> org.xml.sax.SAXParseException: cvc-pattern-valid: Value '9176604247' is not
> facet-valid with respect to pattern '[2-9]{1}[0-9]{9}' for type 'msisdnType'.
> org.xml.sax.SAXParseException: cvc-pattern-valid: Value '9176604247' is not
> facet-valid with respect to pattern '[2-9]{1}[0-9]{9}' for type 'msisdnType'.
> at
> com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidType(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processElementContent(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleEndElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.endElement(Unknown
> Source)
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> at
> We had read this issue on line and thought this would have been fixed
> already..
> https://issues.apache.org/jira/browse/XERCESJ-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
--
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: [email protected]
For additional commands, e-mail: [email protected]