You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Bash (JIRA)" <xa...@xml.apache.org> on 2007/11/22 17:15:43 UTC
[jira] Created: (XALANJ-2413) Sometimes wrong results on a
multithreaded environment
Sometimes wrong results on a multithreaded environment
------------------------------------------------------
Key: XALANJ-2413
URL: https://issues.apache.org/jira/browse/XALANJ-2413
Project: XalanJ2
Issue Type: Bug
Affects Versions: 2.6
Environment: xalan 2.6
Reporter: Bash
Running this xsl on a multithreaded environment against many xml files might return some bad results
<xsl:variable name="var1" select="a/b/c[last()]/d"/>
<xsl:call-template name="tempname">
<xsl:with-param name="var"><xsl:value-of select="$var1"></xsl:value-of></xsl:with-param>
</xsl:call-template>
where this wont ..
<xsl:variable name="var1" select="a/b/c[last()]/d"/>
<xsl:call-template name="tempname">
<xsl:with-param name="var2" select="$var1"></xsl:with-param>
</xsl:call-template>
Even tried to remove the last() from the select; the error ratio dropped down alot but still there.
Thanks
--
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] Commented: (XALANJ-2413) Sometimes wrong results on a
multithreaded environment
Posted by "Bash (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614752#action_12614752 ]
Bash commented on XALANJ-2413:
------------------------------
Hi Yash/Brian,
This issue is becoming very critical.
Can someone please help.
Your help is greatly appreciated.
Thanks.
> Sometimes wrong results on a multithreaded environment
> ------------------------------------------------------
>
> Key: XALANJ-2413
> URL: https://issues.apache.org/jira/browse/XALANJ-2413
> Project: XalanJ2
> Issue Type: Bug
> Affects Versions: 2.6
> Environment: xalan 2.6
> Reporter: Bash
>
> Running this xsl on a multithreaded environment against many xml files might return some bad results
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var"><xsl:value-of select="$var1"></xsl:value-of></xsl:with-param>
> </xsl:call-template>
> where this wont ..
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var2" select="$var1"></xsl:with-param>
> </xsl:call-template>
> Even tried to remove the last() from the select; the error ratio dropped down alot but still there.
> Thanks
--
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] Commented: (XALANJ-2413) Sometimes wrong results on a
multithreaded environment
Posted by "Bash (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548236 ]
Bash commented on XALANJ-2413:
------------------------------
Hi Henry,
Thanks for the fast reply, and sorry for the late one.
Ive done some additional testings.
my new stylesheet is:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="gp" select="a/b/c/d"/>
<xsl:template match="/">
<xsl:variable name="aaa">
<xsl:value-of select="$gp"/>
</xsl:variable>
<xsl:variable name="ccc" select="$gp"/>
<xsl:value-of select="$aaa"></xsl:value-of>
<xsl:text> - </xsl:text>
<xsl:value-of select="$ccc"></xsl:value-of>
</xsl:template>
</xsl:stylesheet>
My multithreaded environment is java/xalan ( javax.xml.transform.* libraries )
Running this stylesheet should return ( for ex ) a - a
or b - b
but not a - b for sure
and thats what i am getting sometimes.
note: when i am getting a - b ( b is not even in the xml file passed )
I've tried it with xalan-2.7.1 and i couldnt reproduce.
is there any batch or something i can use to solve this problem ?
Thanks.
> Sometimes wrong results on a multithreaded environment
> ------------------------------------------------------
>
> Key: XALANJ-2413
> URL: https://issues.apache.org/jira/browse/XALANJ-2413
> Project: XalanJ2
> Issue Type: Bug
> Affects Versions: 2.6
> Environment: xalan 2.6
> Reporter: Bash
>
> Running this xsl on a multithreaded environment against many xml files might return some bad results
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var"><xsl:value-of select="$var1"></xsl:value-of></xsl:with-param>
> </xsl:call-template>
> where this wont ..
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var2" select="$var1"></xsl:with-param>
> </xsl:call-template>
> Even tried to remove the last() from the select; the error ratio dropped down alot but still there.
> Thanks
--
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] Commented: (XALANJ-2413) Sometimes wrong results on a
multithreaded environment
Posted by "Bash (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587527#action_12587527 ]
Bash commented on XALANJ-2413:
------------------------------
Hi Yash,
Any updates on this issue?
Thanks.
> Sometimes wrong results on a multithreaded environment
> ------------------------------------------------------
>
> Key: XALANJ-2413
> URL: https://issues.apache.org/jira/browse/XALANJ-2413
> Project: XalanJ2
> Issue Type: Bug
> Affects Versions: 2.6
> Environment: xalan 2.6
> Reporter: Bash
>
> Running this xsl on a multithreaded environment against many xml files might return some bad results
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var"><xsl:value-of select="$var1"></xsl:value-of></xsl:with-param>
> </xsl:call-template>
> where this wont ..
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var2" select="$var1"></xsl:with-param>
> </xsl:call-template>
> Even tried to remove the last() from the select; the error ratio dropped down alot but still there.
> Thanks
--
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] Commented: (XALANJ-2413) Sometimes wrong results on a
multithreaded environment
Posted by "Bash (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550111 ]
Bash commented on XALANJ-2413:
------------------------------
I couldnt even reproduce on 2.6.0.
Could you please specify the batch used to solve this issue.
Thanks.
> Sometimes wrong results on a multithreaded environment
> ------------------------------------------------------
>
> Key: XALANJ-2413
> URL: https://issues.apache.org/jira/browse/XALANJ-2413
> Project: XalanJ2
> Issue Type: Bug
> Affects Versions: 2.6
> Environment: xalan 2.6
> Reporter: Bash
>
> Running this xsl on a multithreaded environment against many xml files might return some bad results
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var"><xsl:value-of select="$var1"></xsl:value-of></xsl:with-param>
> </xsl:call-template>
> where this wont ..
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var2" select="$var1"></xsl:with-param>
> </xsl:call-template>
> Even tried to remove the last() from the select; the error ratio dropped down alot but still there.
> Thanks
--
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] Commented: (XALANJ-2413) Sometimes wrong results on a
multithreaded environment
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550827 ]
Brian Minchau commented on XALANJ-2413:
---------------------------------------
So this is a 2.6.0 problem, but not a 2.7.1 problem. There were some multithreading fixes that went between those two. I don't know what they are right now, but I think Yash Talwar may have been involved with them (as the creator of the issue, or supplying the patch ...).
Wish I could be more helpful.
Is there are reason you are staying on 2.6.0 which is quite a few years behind the current code?
> Sometimes wrong results on a multithreaded environment
> ------------------------------------------------------
>
> Key: XALANJ-2413
> URL: https://issues.apache.org/jira/browse/XALANJ-2413
> Project: XalanJ2
> Issue Type: Bug
> Affects Versions: 2.6
> Environment: xalan 2.6
> Reporter: Bash
>
> Running this xsl on a multithreaded environment against many xml files might return some bad results
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var"><xsl:value-of select="$var1"></xsl:value-of></xsl:with-param>
> </xsl:call-template>
> where this wont ..
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var2" select="$var1"></xsl:with-param>
> </xsl:call-template>
> Even tried to remove the last() from the select; the error ratio dropped down alot but still there.
> Thanks
--
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] Commented: (XALANJ-2413) Sometimes wrong results on a
multithreaded environment
Posted by "Bash (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550137 ]
Bash commented on XALANJ-2413:
------------------------------
I tried replacing the AVT.java file in the 2.6.0 with the one in 2.7.1 but i am still able to reproduce this issue !
Any suggestions ??
Thanks
> Sometimes wrong results on a multithreaded environment
> ------------------------------------------------------
>
> Key: XALANJ-2413
> URL: https://issues.apache.org/jira/browse/XALANJ-2413
> Project: XalanJ2
> Issue Type: Bug
> Affects Versions: 2.6
> Environment: xalan 2.6
> Reporter: Bash
>
> Running this xsl on a multithreaded environment against many xml files might return some bad results
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var"><xsl:value-of select="$var1"></xsl:value-of></xsl:with-param>
> </xsl:call-template>
> where this wont ..
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var2" select="$var1"></xsl:with-param>
> </xsl:call-template>
> Even tried to remove the last() from the select; the error ratio dropped down alot but still there.
> Thanks
--
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] Issue Comment Edited: (XALANJ-2413) Sometimes wrong results
on a multithreaded environment
Posted by "Bash (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550111 ]
bash edited comment on XALANJ-2413 at 12/10/07 7:59 AM:
--------------------------------------------------------
I couldnt even reproduce on 2.7.0.
Could you please specify the batch used to solve this issue.
Thanks.
was (Author: bash):
I couldnt even reproduce on 2.6.0.
Could you please specify the batch used to solve this issue.
Thanks.
> Sometimes wrong results on a multithreaded environment
> ------------------------------------------------------
>
> Key: XALANJ-2413
> URL: https://issues.apache.org/jira/browse/XALANJ-2413
> Project: XalanJ2
> Issue Type: Bug
> Affects Versions: 2.6
> Environment: xalan 2.6
> Reporter: Bash
>
> Running this xsl on a multithreaded environment against many xml files might return some bad results
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var"><xsl:value-of select="$var1"></xsl:value-of></xsl:with-param>
> </xsl:call-template>
> where this wont ..
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var2" select="$var1"></xsl:with-param>
> </xsl:call-template>
> Even tried to remove the last() from the select; the error ratio dropped down alot but still there.
> Thanks
--
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] Commented: (XALANJ-2413) Sometimes wrong results on a
multithreaded environment
Posted by "Bash (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550930 ]
Bash commented on XALANJ-2413:
------------------------------
Hi Brian,
Thanks for your help.
In fact, im using a customized 2.6.0 code; and migrating all the changes to the new 2.7.1 might take some time.
Yash, can you please help?
Thanks.
> Sometimes wrong results on a multithreaded environment
> ------------------------------------------------------
>
> Key: XALANJ-2413
> URL: https://issues.apache.org/jira/browse/XALANJ-2413
> Project: XalanJ2
> Issue Type: Bug
> Affects Versions: 2.6
> Environment: xalan 2.6
> Reporter: Bash
>
> Running this xsl on a multithreaded environment against many xml files might return some bad results
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var"><xsl:value-of select="$var1"></xsl:value-of></xsl:with-param>
> </xsl:call-template>
> where this wont ..
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var2" select="$var1"></xsl:with-param>
> </xsl:call-template>
> Even tried to remove the last() from the select; the error ratio dropped down alot but still there.
> Thanks
--
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] Commented: (XALANJ-2413) Sometimes wrong results on a
multithreaded environment
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544848 ]
Henry Zongaro commented on XALANJ-2413:
---------------------------------------
Hi, Bash. Could I ask you to supply a complete stylesheet that demonstrates the problem, just in case the way var2 is used in the called template (or any other factor) has a role to play in this? Also, are you able to reproduce the problem using Xalan-J 2.7.0? Thanks!
> Sometimes wrong results on a multithreaded environment
> ------------------------------------------------------
>
> Key: XALANJ-2413
> URL: https://issues.apache.org/jira/browse/XALANJ-2413
> Project: XalanJ2
> Issue Type: Bug
> Affects Versions: 2.6
> Environment: xalan 2.6
> Reporter: Bash
>
> Running this xsl on a multithreaded environment against many xml files might return some bad results
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var"><xsl:value-of select="$var1"></xsl:value-of></xsl:with-param>
> </xsl:call-template>
> where this wont ..
> <xsl:variable name="var1" select="a/b/c[last()]/d"/>
> <xsl:call-template name="tempname">
> <xsl:with-param name="var2" select="$var1"></xsl:with-param>
> </xsl:call-template>
> Even tried to remove the last() from the select; the error ratio dropped down alot but still there.
> Thanks
--
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