[ http://issues.apache.org/jira/browse/XERCESJ-589?page=comments#action_12368790 ]
Steve Handy commented on XERCESJ-589: ------------------------------------- I ran into this issue today with Xerces 2.7.1 under JDK 1.5.0_01. The limit that I encountered is 1954 characters. I was using a multipart schema as well, which consisted of 1 main XSD with 17 includes. > Bug with pattern restriction on long strings > -------------------------------------------- > > Key: XERCESJ-589 > URL: http://issues.apache.org/jira/browse/XERCESJ-589 > Project: Xerces2-J > Type: Bug > Components: XML Schema Structures > 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. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
