[
https://issues.apache.org/jira/browse/XERCESJ-589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15305172#comment-15305172
]
Michael Glavassevich commented on XERCESJ-589:
----------------------------------------------
com.sun.org.apache.xerces.internal.* is Oracle's JAXP implementation, the one
embedded in the JDK that you're using. You were not using Apache Xerces when
you ran into that problem.
> Bug with pattern restriction on long strings
> --------------------------------------------
>
> Key: XERCESJ-589
> URL: https://issues.apache.org/jira/browse/XERCESJ-589
> Project: Xerces2-J
> Issue Type: Bug
> Components: XML Schema 1.0 Structures
> Affects Versions: 2.3.0
> Environment: Operating System: All
> Platform: All
> Reporter: Mark Woon
> Assignee: Khaled Noaman
> Fix For: 2.10.0
>
> Attachments: ASF.LICENSE.NOT.GRANTED--test.xml,
> ASF.LICENSE.NOT.GRANTED--test.xsd, RegularExpression.java,
> RegularExpression.java, RegularExpression.java, test.zip
>
>
> There is a bug with applying a pattern restriction on long strings while
> trying
> to validate an XML file against a schema. I'm including an xml file and xsd
> file that demonstrates this problem. One character less in <sequence> and the
> problem does not occur.
> As it is, I'm getting
> java.lang.StackOverflowError
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> at
> org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown
> Source)
> ...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]