xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Fennelly (JIRA)" <xalan-...@xml.apache.org>
Subject [jira] Commented: (XALANJ-2371) Possible Templates/Transformers threading issue
Date Thu, 08 Mar 2007 10:12:24 GMT

    [ 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


Mime
View raw message