[ http://issues.apache.org/jira/browse/XERCESJ-589?page=comments#action_12332377 ]
Christiaan Janssen commented on XERCESJ-589: -------------------------------------------- Looks like I may be wrong (happens a lot), apparently the recursivity of the function may not be the problem. When using JDOM (org.jdom.input.SAXBuilder) with validation turned on (as opposed to using javax.xml.parsers.SAXParser) the problem does not seem to come up. I've traced the code and as far as I can tell they are using the same underlying xerces parser. The xml content i'm trying to parse is only 2800 characters long but nonetheless seems to bomb out every time. It just seems weird that it doesn't fail using JDOM. If anyone wants the Schema (its multipart, 1 main xsd with 10 includes) and the XML file I'm using just let me know. > 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]
