You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Paul Treadaway (JIRA)" <xa...@xml.apache.org> on 2004/11/26 17:19:19 UTC
[jira] Created: (XALANJ-2001) normalize-space gives StackOverflowError
normalize-space gives StackOverflowError
----------------------------------------
Key: XALANJ-2001
URL: http://nagoya.apache.org/jira/browse/XALANJ-2001
Project: XalanJ2
Type: Bug
Components: Xalan
Versions: 2.4
Environment: winXP, java 1.4.2_03, xalan 2.4.1
Reporter: Paul Treadaway
Priority: Minor
With the following xml file:
<?xml version = "1.0" encoding = "UTF-8"?>
<a>
<l>
25</l>
<b>
<l>
25</l>
<p>
123</p>
</b>
<b>
<l>
50</l>
<p>
567</p>
</b>
</a>
and the following stylesheet:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="a">
<xsl:apply-templates select = "b"/>
</xsl:template>
<xsl:template match="b">
<xsl:apply-templates select = "p"/>
</xsl:template>
<xsl:template match = "p">
<xsl:if test = "normalize-space(../l) = normalize-space(/a/l)">success</xsl:if>
</xsl:template>
<xsl:template match = "*"/>
</xsl:stylesheet>
the following error is produced:
(Location of error unknown)XSLT Error (java.lang.StackOverflowError): null
The following xml files do not cause the error to manifest:
<?xml version = "1.0" encoding = "UTF-8"?>
<a>
<l>25</l>
<b>
<l>
25</l>
<p>
123</p>
</b>
<b>
<l>
50</l>
<p>
567</p>
</b>
</a>
<?xml version = "1.0" encoding = "UTF-8"?>
<a>
<l>
25</l>
<b>
<l>25</l>
<p>
123</p>
</b>
<b>
<l>50</l>
<p>
567</p>
</b>
</a>
Suggesting that it only occurs when the content of at least one matched node on both sides of the equality test begins with a newline per run.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Updated: (XALANJ-2001) normalize-space gives StackOverflowError
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2001?page=history ]
Henry Zongaro updated XALANJ-2001:
----------------------------------
Xalan info: [PatchAvailable]
> normalize-space gives StackOverflowError
> ----------------------------------------
>
> Key: XALANJ-2001
> URL: http://issues.apache.org/jira/browse/XALANJ-2001
> Project: XalanJ2
> Type: Bug
> Components: Xalan
> Versions: 2.4
> Environment: winXP, java 1.4.2_03, xalan 2.4.1
> Reporter: Paul Treadaway
> Assignee: Henry Zongaro
> Priority: Minor
> Attachments: patch.j2001.txt
>
> With the following xml file:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> and the following stylesheet:
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:template match="/">
> <xsl:apply-templates/>
> </xsl:template>
> <xsl:template match="a">
> <xsl:apply-templates select = "b"/>
> </xsl:template>
> <xsl:template match="b">
> <xsl:apply-templates select = "p"/>
> </xsl:template>
> <xsl:template match = "p">
> <xsl:if test = "normalize-space(../l) = normalize-space(/a/l)">success</xsl:if>
> </xsl:template>
> <xsl:template match = "*"/>
> </xsl:stylesheet>
> the following error is produced:
> (Location of error unknown)XSLT Error (java.lang.StackOverflowError): null
> The following xml files do not cause the error to manifest:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>50</l>
> <p>
> 567</p>
> </b>
> </a>
> Suggesting that it only occurs when the content of at least one matched node on both sides of the equality test begins with a newline per run.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Commented: (XALANJ-2001) normalize-space gives
StackOverflowError
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2001?page=comments#action_12459658 ]
Henry Zongaro commented on XALANJ-2001:
---------------------------------------
I just happened to notice that all four of these issues (XALANJ-1243, XALANJ-1880, XALANJ-1991 and XALANJ-2001) appear to be related to one another because they all seem to describe the same problem with XString.equals, but I haven't investigated further to be certain of that, so I just thought I'd provide that information. XALANJ-2001 contains a patch that avoids the problem, but I didn't like the patch at the same, so it's never been applied.
> normalize-space gives StackOverflowError
> ----------------------------------------
>
> Key: XALANJ-2001
> URL: http://issues.apache.org/jira/browse/XALANJ-2001
> Project: XalanJ2
> Issue Type: Bug
> Components: Xalan
> Affects Versions: 2.4
> Environment: winXP, java 1.4.2_03, xalan 2.4.1
> Reporter: Paul Treadaway
> Assigned To: Henry Zongaro
> Priority: Minor
> Attachments: patch.j2001.txt
>
>
> With the following xml file:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> and the following stylesheet:
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:template match="/">
> <xsl:apply-templates/>
> </xsl:template>
> <xsl:template match="a">
> <xsl:apply-templates select = "b"/>
> </xsl:template>
> <xsl:template match="b">
> <xsl:apply-templates select = "p"/>
> </xsl:template>
> <xsl:template match = "p">
> <xsl:if test = "normalize-space(../l) = normalize-space(/a/l)">success</xsl:if>
> </xsl:template>
> <xsl:template match = "*"/>
> </xsl:stylesheet>
> the following error is produced:
> (Location of error unknown)XSLT Error (java.lang.StackOverflowError): null
> The following xml files do not cause the error to manifest:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>50</l>
> <p>
> 567</p>
> </b>
> </a>
> Suggesting that it only occurs when the content of at least one matched node on both sides of the equality test begins with a newline per run.
--
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Updated: (XALANJ-2001) normalize-space gives StackOverflowError
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2001?page=all ]
Brian Minchau updated XALANJ-2001:
----------------------------------
Xalan info: (was: [PatchAvailable])
fix-priority: fp3
Unmarking PatchAvailable, setting fix priority to fp3, Henry Z. want to re-work the patch, per the Xalan-J issue meeting on May 3, 2005.
> normalize-space gives StackOverflowError
> ----------------------------------------
>
> Key: XALANJ-2001
> URL: http://issues.apache.org/jira/browse/XALANJ-2001
> Project: XalanJ2
> Type: Bug
> Components: Xalan
> Versions: 2.4
> Environment: winXP, java 1.4.2_03, xalan 2.4.1
> Reporter: Paul Treadaway
> Assignee: Henry Zongaro
> Priority: Minor
> Attachments: patch.j2001.txt
>
> With the following xml file:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> and the following stylesheet:
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:template match="/">
> <xsl:apply-templates/>
> </xsl:template>
> <xsl:template match="a">
> <xsl:apply-templates select = "b"/>
> </xsl:template>
> <xsl:template match="b">
> <xsl:apply-templates select = "p"/>
> </xsl:template>
> <xsl:template match = "p">
> <xsl:if test = "normalize-space(../l) = normalize-space(/a/l)">success</xsl:if>
> </xsl:template>
> <xsl:template match = "*"/>
> </xsl:stylesheet>
> the following error is produced:
> (Location of error unknown)XSLT Error (java.lang.StackOverflowError): null
> The following xml files do not cause the error to manifest:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>50</l>
> <p>
> 567</p>
> </b>
> </a>
> Suggesting that it only occurs when the content of at least one matched node on both sides of the equality test begins with a newline per run.
--
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Commented: (XALANJ-2001) normalize-space gives StackOverflowError
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2001?page=comments#action_59982 ]
Henry Zongaro commented on XALANJ-2001:
---------------------------------------
Paul, could I ask you try out the attached patch?
> normalize-space gives StackOverflowError
> ----------------------------------------
>
> Key: XALANJ-2001
> URL: http://issues.apache.org/jira/browse/XALANJ-2001
> Project: XalanJ2
> Type: Bug
> Components: Xalan
> Versions: 2.4
> Environment: winXP, java 1.4.2_03, xalan 2.4.1
> Reporter: Paul Treadaway
> Priority: Minor
> Attachments: patch.j2001.txt
>
> With the following xml file:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> and the following stylesheet:
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:template match="/">
> <xsl:apply-templates/>
> </xsl:template>
> <xsl:template match="a">
> <xsl:apply-templates select = "b"/>
> </xsl:template>
> <xsl:template match="b">
> <xsl:apply-templates select = "p"/>
> </xsl:template>
> <xsl:template match = "p">
> <xsl:if test = "normalize-space(../l) = normalize-space(/a/l)">success</xsl:if>
> </xsl:template>
> <xsl:template match = "*"/>
> </xsl:stylesheet>
> the following error is produced:
> (Location of error unknown)XSLT Error (java.lang.StackOverflowError): null
> The following xml files do not cause the error to manifest:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>50</l>
> <p>
> 567</p>
> </b>
> </a>
> Suggesting that it only occurs when the content of at least one matched node on both sides of the equality test begins with a newline per run.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Resolved: (XALANJ-2001) normalize-space gives
StackOverflowError
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henry Zongaro resolved XALANJ-2001.
-----------------------------------
Resolution: Duplicate
This is a duplicate of XALANJ-1243. Please see that issue for a patch that resolves this problem.
> normalize-space gives StackOverflowError
> ----------------------------------------
>
> Key: XALANJ-2001
> URL: https://issues.apache.org/jira/browse/XALANJ-2001
> Project: XalanJ2
> Issue Type: Bug
> Components: Xalan
> Affects Versions: 2.4
> Environment: winXP, java 1.4.2_03, xalan 2.4.1
> Reporter: Paul Treadaway
> Assignee: Henry Zongaro
> Priority: Minor
> Attachments: patch.j2001.txt
>
>
> With the following xml file:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> and the following stylesheet:
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:template match="/">
> <xsl:apply-templates/>
> </xsl:template>
> <xsl:template match="a">
> <xsl:apply-templates select = "b"/>
> </xsl:template>
> <xsl:template match="b">
> <xsl:apply-templates select = "p"/>
> </xsl:template>
> <xsl:template match = "p">
> <xsl:if test = "normalize-space(../l) = normalize-space(/a/l)">success</xsl:if>
> </xsl:template>
> <xsl:template match = "*"/>
> </xsl:stylesheet>
> the following error is produced:
> (Location of error unknown)XSLT Error (java.lang.StackOverflowError): null
> The following xml files do not cause the error to manifest:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>50</l>
> <p>
> 567</p>
> </b>
> </a>
> Suggesting that it only occurs when the content of at least one matched node on both sides of the equality test begins with a newline per run.
--
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Updated: (XALANJ-2001) normalize-space gives StackOverflowError
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2001?page=history ]
Henry Zongaro updated XALANJ-2001:
----------------------------------
Attachment: patch.j2001.txt
Attaching patch that fixes the problem - patch.j2001.txt
> normalize-space gives StackOverflowError
> ----------------------------------------
>
> Key: XALANJ-2001
> URL: http://issues.apache.org/jira/browse/XALANJ-2001
> Project: XalanJ2
> Type: Bug
> Components: Xalan
> Versions: 2.4
> Environment: winXP, java 1.4.2_03, xalan 2.4.1
> Reporter: Paul Treadaway
> Priority: Minor
> Attachments: patch.j2001.txt
>
> With the following xml file:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> and the following stylesheet:
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:template match="/">
> <xsl:apply-templates/>
> </xsl:template>
> <xsl:template match="a">
> <xsl:apply-templates select = "b"/>
> </xsl:template>
> <xsl:template match="b">
> <xsl:apply-templates select = "p"/>
> </xsl:template>
> <xsl:template match = "p">
> <xsl:if test = "normalize-space(../l) = normalize-space(/a/l)">success</xsl:if>
> </xsl:template>
> <xsl:template match = "*"/>
> </xsl:stylesheet>
> the following error is produced:
> (Location of error unknown)XSLT Error (java.lang.StackOverflowError): null
> The following xml files do not cause the error to manifest:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>50</l>
> <p>
> 567</p>
> </b>
> </a>
> Suggesting that it only occurs when the content of at least one matched node on both sides of the equality test begins with a newline per run.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Assigned: (XALANJ-2001) normalize-space gives StackOverflowError
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2001?page=history ]
Henry Zongaro reassigned XALANJ-2001:
-------------------------------------
Assign To: Henry Zongaro
> normalize-space gives StackOverflowError
> ----------------------------------------
>
> Key: XALANJ-2001
> URL: http://issues.apache.org/jira/browse/XALANJ-2001
> Project: XalanJ2
> Type: Bug
> Components: Xalan
> Versions: 2.4
> Environment: winXP, java 1.4.2_03, xalan 2.4.1
> Reporter: Paul Treadaway
> Assignee: Henry Zongaro
> Priority: Minor
> Attachments: patch.j2001.txt
>
> With the following xml file:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> and the following stylesheet:
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:template match="/">
> <xsl:apply-templates/>
> </xsl:template>
> <xsl:template match="a">
> <xsl:apply-templates select = "b"/>
> </xsl:template>
> <xsl:template match="b">
> <xsl:apply-templates select = "p"/>
> </xsl:template>
> <xsl:template match = "p">
> <xsl:if test = "normalize-space(../l) = normalize-space(/a/l)">success</xsl:if>
> </xsl:template>
> <xsl:template match = "*"/>
> </xsl:stylesheet>
> the following error is produced:
> (Location of error unknown)XSLT Error (java.lang.StackOverflowError): null
> The following xml files do not cause the error to manifest:
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>25</l>
> <b>
> <l>
> 25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>
> 50</l>
> <p>
> 567</p>
> </b>
> </a>
> <?xml version = "1.0" encoding = "UTF-8"?>
> <a>
> <l>
> 25</l>
> <b>
> <l>25</l>
> <p>
> 123</p>
> </b>
> <b>
> <l>50</l>
> <p>
> 567</p>
> </b>
> </a>
> Suggesting that it only occurs when the content of at least one matched node on both sides of the equality test begins with a newline per run.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org