Return-Path: Delivered-To: apmail-xerces-j-dev-archive@www.apache.org Received: (qmail 36101 invoked from network); 19 May 2010 16:22:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 May 2010 16:22:16 -0000 Received: (qmail 24586 invoked by uid 500); 19 May 2010 16:22:16 -0000 Delivered-To: apmail-xerces-j-dev-archive@xerces.apache.org Received: (qmail 24534 invoked by uid 500); 19 May 2010 16:22:15 -0000 Mailing-List: contact j-dev-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: j-dev@xerces.apache.org Delivered-To: mailing list j-dev@xerces.apache.org Received: (qmail 24527 invoked by uid 99); 19 May 2010 16:22:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 16:22:15 +0000 X-ASF-Spam-Status: No, hits=-1471.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 16:22:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4JGLrCW015233 for ; Wed, 19 May 2010 16:21:54 GMT Message-ID: <16919926.16511274286113529.JavaMail.jira@thor> Date: Wed, 19 May 2010 12:21:53 -0400 (EDT) From: "Khaled Noaman (JIRA)" To: j-dev@xerces.apache.org Subject: [jira] Resolved: (XERCESJ-589) Bug with pattern restriction on long strings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/XERCESJ-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Khaled Noaman resolved XERCESJ-589. ----------------------------------- Fix Version/s: 2.10.0 Resolution: Fixed I have checked in a fix that solves the 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: RegularExpression.java, RegularExpression.java, RegularExpression.java, 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 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: j-dev-unsubscribe@xerces.apache.org For additional commands, e-mail: j-dev-help@xerces.apache.org