You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Tom Fennelly (JIRA)" <xa...@xml.apache.org> on 2007/02/28 17:23:56 UTC
[jira] Created: (XALANJ-2371) Possible Templates/Transformers
threading issue
Possible Templates/Transformers threading issue
-----------------------------------------------
Key: XALANJ-2371
URL: https://issues.apache.org/jira/browse/XALANJ-2371
Project: XalanJ2
Issue Type: Bug
Components: transformation
Affects Versions: 2.7
Reporter: Tom Fennelly
While running some tests I noticed something strange - applying
transformations concurrently + unsynchronized using the same template
instance *appears* to be yielding unexpected results i.e. if I
synchronize transformations across the threads (synchronize on the
template instance) I have no issues.
First reported on the xalan users maillist - more details there:
http://marc.theaimsgroup.com/?t=117251838500004&r=1&w=2
I packaged up the test in a maven2 project:
http://milyn.codehaus.org/xalan/xalan-test-v2.zip
--
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] Resolved: (XALANJ-2371) Possible Templates/Transformers
threading issue
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henry Zongaro resolved XALANJ-2371.
-----------------------------------
Resolution: Duplicate
Fix Version/s: 2.7.1
Resolving as a duplicate as per the observation of RUG-CMS Team, University of Groningen in [1].
[1] http://issues.apache.org/jira/browse/XALANJ-2371#action_12484888
> Possible Templates/Transformers threading issue
> -----------------------------------------------
>
> Key: XALANJ-2371
> URL: https://issues.apache.org/jira/browse/XALANJ-2371
> Project: XalanJ2
> Issue Type: Bug
> Components: transformation
> Affects Versions: 2.7
> Reporter: Tom Fennelly
> Fix For: 2.7.1
>
> Attachments: AVT.diff, xalan-test-v2.zip, XalanConcurrencyBug.zip
>
>
> While running some tests I noticed something strange - applying
> transformations concurrently + unsynchronized using the same template
> instance *appears* to be yielding unexpected results i.e. if I
> synchronize transformations across the threads (synchronize on the
> template instance) I have no issues.
> First reported on the xalan users maillist - more details there:
> http://marc.theaimsgroup.com/?t=117251838500004&r=1&w=2
> I packaged up the test in a maven2 project:
> http://milyn.codehaus.org/xalan/xalan-test-v2.zip
--
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-2371) Possible Templates/Transformers
threading issue
Posted by "Gary Gregory (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530757 ]
Gary Gregory commented on XALANJ-2371:
--------------------------------------
Brian Minchau asked me to comment here when we were able to validate this fix in our environment.
I downloaded the sources tagged for 2.7.1 on 9/25/2007 from SVN and built xalan.jar and serializer.jar.
These jars fix the problem for us.
> Possible Templates/Transformers threading issue
> -----------------------------------------------
>
> Key: XALANJ-2371
> URL: https://issues.apache.org/jira/browse/XALANJ-2371
> Project: XalanJ2
> Issue Type: Bug
> Components: transformation
> Affects Versions: 2.7
> Reporter: Tom Fennelly
> Fix For: 2.7.1
>
> Attachments: AVT.diff, xalan-test-v2.zip, XalanConcurrencyBug.zip
>
>
> While running some tests I noticed something strange - applying
> transformations concurrently + unsynchronized using the same template
> instance *appears* to be yielding unexpected results i.e. if I
> synchronize transformations across the threads (synchronize on the
> template instance) I have no issues.
> First reported on the xalan users maillist - more details there:
> http://marc.theaimsgroup.com/?t=117251838500004&r=1&w=2
> I packaged up the test in a maven2 project:
> http://milyn.codehaus.org/xalan/xalan-test-v2.zip
--
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-2371) Possible Templates/Transformers
threading issue
Posted by "Tom Fennelly (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550640 ]
Tom Fennelly commented on XALANJ-2371:
--------------------------------------
That would be me Brian, but I'm unable to verify the fix at this time.
Regards,
Tom.
> Possible Templates/Transformers threading issue
> -----------------------------------------------
>
> Key: XALANJ-2371
> URL: https://issues.apache.org/jira/browse/XALANJ-2371
> Project: XalanJ2
> Issue Type: Bug
> Components: transformation
> Affects Versions: 2.7
> Reporter: Tom Fennelly
> Fix For: 2.7.1
>
> Attachments: AVT.diff, xalan-test-v2.zip, XalanConcurrencyBug.zip
>
>
> While running some tests I noticed something strange - applying
> transformations concurrently + unsynchronized using the same template
> instance *appears* to be yielding unexpected results i.e. if I
> synchronize transformations across the threads (synchronize on the
> template instance) I have no issues.
> First reported on the xalan users maillist - more details there:
> http://marc.theaimsgroup.com/?t=117251838500004&r=1&w=2
> I packaged up the test in a maven2 project:
> http://milyn.codehaus.org/xalan/xalan-test-v2.zip
--
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-2371) Possible Templates/Transformers
threading issue
Posted by "Dan Smith (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478938 ]
Dan Smith commented on XALANJ-2371:
-----------------------------------
We're seeing the same problem. It looks like an attribute in the result of the transformation gets populated with two values concatenated together. e.g. what should be <employee name="Dan"/> comes out <employee name="DanJoe"/>. We started seeing this when we switched from Xalan 2.6 to 2.7. It happens with both Stream source/result and DOM source/result.
> Possible Templates/Transformers threading issue
> -----------------------------------------------
>
> Key: XALANJ-2371
> URL: https://issues.apache.org/jira/browse/XALANJ-2371
> Project: XalanJ2
> Issue Type: Bug
> Components: transformation
> Affects Versions: 2.7
> Reporter: Tom Fennelly
> Attachments: xalan-test-v2.zip
>
>
> While running some tests I noticed something strange - applying
> transformations concurrently + unsynchronized using the same template
> instance *appears* to be yielding unexpected results i.e. if I
> synchronize transformations across the threads (synchronize on the
> template instance) I have no issues.
> First reported on the xalan users maillist - more details there:
> http://marc.theaimsgroup.com/?t=117251838500004&r=1&w=2
> I packaged up the test in a maven2 project:
> http://milyn.codehaus.org/xalan/xalan-test-v2.zip
--
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
Re: [jira] Commented: (XALANJ-2371) Possible Templates/Transformers
threading issue
Posted by Henry Zongaro <zo...@ca.ibm.com>.
Hi, Ed.
"Edward L. Knoll" <ed...@cosd.fedex.com> wrote on 2007-04-17 07:35:03
PM:
> I believe we run into this concurrency issue with Templates. At
> least we have a threaded test which fails when we try to share
> Templates and succeeds when each thread has it's own templates.
>
> Has a resolution to this problem been discovered? If so, when will
> it be generally available? If already available, how do we access it?
>
> On Mon, 2007-03-26 at 05:38 -0700, RUG-CMS Team, University of
> Groningen (JIRA) wrote:
>
> [ https://issues.apache.org/jira/browse/XALANJ-2371?page=com.
>
atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484113]
The problem has been fixed to the best of my knowledge; it was a duplicate
of XALANJ-2321. The fix for the problem will be part of the Xalan-J
2.7.1. That release was supposed to be available this past January, but
has been delayed for some time due to resource constraints.
In the meanwhile, you could extract the latest source code for Xalan-J and
build it to pick up that fix along with many others that have been applied
since Xalan-J 2.7.0 was released. Let me know if you need more details.
Thanks,
Henry
------------------------------------------------------------------
Henry Zongaro XSLT Processors Development
IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
Re: [jira] Commented: (XALANJ-2371) Possible
Templates/Transformers threading issue
Posted by "Edward L. Knoll" <ed...@cosd.fedex.com>.
I believe we run into this concurrency issue with Templates. At least
we have a threaded test which fails when we try to share Templates and
succeeds when each thread has it's own templates.
Has a resolution to this problem been discovered? If so, when will it
be generally available? If already available, how do we access it?
Thanks,
Ed Knoll
On Mon, 2007-03-26 at 05:38 -0700, RUG-CMS Team, University of Groningen
(JIRA) wrote:
> [ https://issues.apache.org/jira/browse/XALANJ-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484113 ]
>
> RUG-CMS Team, University of Groningen commented on XALANJ-2371:
> ---------------------------------------------------------------
>
> To clarify: the second attachment (XalanConcurrencyBug.zip) is ours.
>
> > Possible Templates/Transformers threading issue
> > -----------------------------------------------
> >
> > Key: XALANJ-2371
> > URL: https://issues.apache.org/jira/browse/XALANJ-2371
> > Project: XalanJ2
> > Issue Type: Bug
> > Components: transformation
> > Affects Versions: 2.7
> > Reporter: Tom Fennelly
> > Attachments: xalan-test-v2.zip, XalanConcurrencyBug.zip
> >
> >
> > While running some tests I noticed something strange - applying
> > transformations concurrently + unsynchronized using the same template
> > instance *appears* to be yielding unexpected results i.e. if I
> > synchronize transformations across the threads (synchronize on the
> > template instance) I have no issues.
> > First reported on the xalan users maillist - more details there:
> > http://marc.theaimsgroup.com/?t=117251838500004&r=1&w=2
> > I packaged up the test in a maven2 project:
> > http://milyn.codehaus.org/xalan/xalan-test-v2.zip
>
[jira] Commented: (XALANJ-2371) Possible Templates/Transformers
threading issue
Posted by "RUG-CMS Team, University of Groningen (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484113 ]
RUG-CMS Team, University of Groningen commented on XALANJ-2371:
---------------------------------------------------------------
To clarify: the second attachment (XalanConcurrencyBug.zip) is ours.
> Possible Templates/Transformers threading issue
> -----------------------------------------------
>
> Key: XALANJ-2371
> URL: https://issues.apache.org/jira/browse/XALANJ-2371
> Project: XalanJ2
> Issue Type: Bug
> Components: transformation
> Affects Versions: 2.7
> Reporter: Tom Fennelly
> Attachments: xalan-test-v2.zip, XalanConcurrencyBug.zip
>
>
> While running some tests I noticed something strange - applying
> transformations concurrently + unsynchronized using the same template
> instance *appears* to be yielding unexpected results i.e. if I
> synchronize transformations across the threads (synchronize on the
> template instance) I have no issues.
> First reported on the xalan users maillist - more details there:
> http://marc.theaimsgroup.com/?t=117251838500004&r=1&w=2
> I packaged up the test in a maven2 project:
> http://milyn.codehaus.org/xalan/xalan-test-v2.zip
--
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] Closed: (XALANJ-2371) Possible Templates/Transformers
threading issue
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Minchau closed XALANJ-2371.
---------------------------------
closing this issue.
> Possible Templates/Transformers threading issue
> -----------------------------------------------
>
> Key: XALANJ-2371
> URL: https://issues.apache.org/jira/browse/XALANJ-2371
> Project: XalanJ2
> Issue Type: Bug
> Components: transformation
> Affects Versions: 2.7
> Reporter: Tom Fennelly
> Fix For: 2.7.1
>
> Attachments: AVT.diff, xalan-test-v2.zip, XalanConcurrencyBug.zip
>
>
> While running some tests I noticed something strange - applying
> transformations concurrently + unsynchronized using the same template
> instance *appears* to be yielding unexpected results i.e. if I
> synchronize transformations across the threads (synchronize on the
> template instance) I have no issues.
> First reported on the xalan users maillist - more details there:
> http://marc.theaimsgroup.com/?t=117251838500004&r=1&w=2
> I packaged up the test in a maven2 project:
> http://milyn.codehaus.org/xalan/xalan-test-v2.zip
--
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-2371) Possible Templates/Transformers
threading issue
Posted by "Tom Fennelly (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479282 ]
Tom Fennelly commented on XALANJ-2371:
--------------------------------------
Yep, in our case I think the "differences" were always on attribute values. Whether that's just a coincidence or not, I don't know. I don't remember seeing values getting concatenated (not to say it didn't happen for us either), but what I do remember is the values from applying a template on one instance of an element getting cross-contaminated by a different instance of the same element - something like that (if it makes sense).
So when we should be seeing (as with when we synchronised on the template)...
<employees>
<employee name="Dan"/>
<employee name="Joe"/>
</employees>
... instead we were seeing...
<employees>
<employee name="Dan"/>
<employee name="Dan"/>
</employees>
... or ...
<employees>
<employee name="Joe"/>
<employee name="Joe"/>
</employees>
> Possible Templates/Transformers threading issue
> -----------------------------------------------
>
> Key: XALANJ-2371
> URL: https://issues.apache.org/jira/browse/XALANJ-2371
> Project: XalanJ2
> Issue Type: Bug
> Components: transformation
> Affects Versions: 2.7
> Reporter: Tom Fennelly
> Attachments: xalan-test-v2.zip
>
>
> While running some tests I noticed something strange - applying
> transformations concurrently + unsynchronized using the same template
> instance *appears* to be yielding unexpected results i.e. if I
> synchronize transformations across the threads (synchronize on the
> template instance) I have no issues.
> First reported on the xalan users maillist - more details there:
> http://marc.theaimsgroup.com/?t=117251838500004&r=1&w=2
> I packaged up the test in a maven2 project:
> http://milyn.codehaus.org/xalan/xalan-test-v2.zip
--
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