You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by John Gray <Jo...@entrust.com> on 2007/10/16 17:47:19 UTC

RE: [jira] Commented: (XERCESJ-589) Bug with pattern restriction on long strings

Thanks Nick,

We are having this problem in our toolkit when running under Java 1.6.
Previous it did not appear under 1.4 and 1.5.  It seems the default call
stack has been reduced in 1.6 which is not good for anyone using JDK
1.6.  Changing the stack size did not seem to help.  However, I tried
the XercesImpl.jar with your changes and no more recursive stack errors!
I hope this fix or something similar gets into the main XercesImpl.jar
soon.  

John Gray


-----Original Message-----
From: Nick Sydenham (JIRA) [mailto:xerces-j-dev@xml.apache.org] 
Sent: Friday, October 05, 2007 1:50 PM
To: John Gray
Subject: [jira] Commented: (XERCESJ-589) Bug with pattern restriction on
long strings



    [
https://issues.apache.org/jira/browse/XERCESJ-589?page=com.atlassian.jir
a.plugin.system.issuetabpanels:comment-tabpanel#action_12532736 ] 

Nick Sydenham commented on XERCESJ-589:
---------------------------------------

If anybody wants a copy of the library (v2.9.1) that includes the change
it's available at http://www.nsydenham.net/xercesImpl.jar. Thought I'd
resist filling up JIRA. (Visible to jira-users group)
> 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
>         Attachments: 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 <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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org