[
https://issues.apache.org/jira/browse/XERCESJ-589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503888
]
Philippe Lantin commented on XERCESJ-589:
-----------------------------------------
We believe in some circumstances this issue may be avoided by increasing the
thread stack size (-Xss). Thread stack size default depends on your OS and if
you are using a 32-bit or 64-bit jvm. It may be different from jdk version to
version as well. For example, Solaris 32-bit default is 512k, which linux is
128k.
We'll report more findings as we get them, but if someone want to try this out
and report, that would be great.
> 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 Structures
> Affects Versions: 2.3.0
> Environment: Operating System: All
> Platform: All
> Reporter: Mark Woon
> Assignee: Xerces-J Developers Mailing List
> Attachments: test.xml, test.xsd, 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 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]