logo       

[jira] Commented: (XERCESJ-589) Bug with pattern restriction on long string: msg#00027

Subject: [jira] Commented: (XERCESJ-589) Bug with pattern restriction on long strings
    [ 
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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe