jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Pfister (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-1109) Resource association not compliant to JTA spec
Date Tue, 04 Sep 2007 09:52:59 GMT

     [ https://issues.apache.org/jira/browse/JCR-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dominique Pfister resolved JCR-1109.
------------------------------------

    Resolution: Fixed

This bug was initially reported by Markus Reis. A lot of thanks go to him for helping me to
setup a JBoss environment where I was able to reproduce this issue. JBoss in fact invoked
the following methods on Jackrabbit's XAResource implementation:

start(xid, TMNOFLAGS)
end(xid, TMSUSPEND)
end(xid, TMSUCCESS)

which is perfectly legal according to the spec.

Fixed in revision 572595. 

> Resource association not compliant to JTA spec
> ----------------------------------------------
>
>                 Key: JCR-1109
>                 URL: https://issues.apache.org/jira/browse/JCR-1109
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jca
>    Affects Versions: 1.3.1
>            Reporter: Dominique Pfister
>            Assignee: Dominique Pfister
>
> According to JTA specifcation, section 3.4.4 (Transaction Association), a resource's
association may be ended (state T0 in the spec's table) in the suspended state (T2), i.e.
without having been resumed (T1) again. The code in XASessionImpl.end(), however, assumes
that the resource must be associated in order to end its association. This causes an exception
in JBoss 4.0.5.GA:
> 09:37:15,525 WARN  [TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257,
GlobalId=kneipix.dev.day.com/14, BranchQual=, localId=14] errorCode=XAER_PROTO
> javax.transaction.xa.XAException
>         at org.apache.jackrabbit.core.XASessionImpl.end(XASessionImpl.java:279)
>         at org.apache.jackrabbit.jca.TransactionBoundXAResource.end(TransactionBoundXAResource.java:46)
>         at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2143)
>         at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2118)
>         at org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1462)
>         at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1116)
>         at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324)
>         at org.jboss.tm.TxManager.commit(TxManager.java:240)
>         at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message