WTRN0086I: XAException encountered during prepare phase for transaction

We have faced below exception while making asynchronous call using JMS.

An illegal attempt to commit a one phase capable resource with existing two phase capable resources has occurred.

you may also get this exception in same or with some other scenarios...

I opened a PMR with IBM and this was their solution...
thought of sharing with this post which may be useful for you as well

Exception:-

An illegal attempt to commit a one phase capable resource with existing two phase capable resources has occurred.
[03/08/10 09:58:34:536 BST] 00000089 RegisteredRes E   WTRN0086I: XAException encountered during prepare phase for transaction 0000012A372C727A0000000200011FD71BD27FE89D21CD8689A08EBFBF1210F21271F6660000012A372C727A0000000200011FD71BD27FE89D21CD8689A08EBFBF1210F21271F66600000001. Local resources follow.
[03/08/10 09:58:34:540 BST] 00000089 JTAResourceBa I   WTRN0089I: LocalTransactionWrapper@:98e2e9  localTransaction:com.ibm.ws.rsadapter.spi.WSRdbSpiLocalTransactionImpl@cd96a1  enlisted:true  registeredForSynctruemcWrapper.hashcode()3184943: Vote: none.



FIX:-

Login to WAS as an Admin and

click Servers > Application Servers > server_name

Look at the properties of the application server in the content pane.

Under Container Settings, expand Container Services and click Transaction Service to display the properties page for the transaction service.

Under Additional Properties click Custom Properties.

On the Custom Properties page, click New.

Type ACCEPT_HEURISTIC_HAZARD in the Name field and type TRUE in the Value field.

Click Apply or OK. Click Save to save your changes to the master configuration.

Restart the server.

2 comments:

selvakumar said...

Hi,
I am facing the issue and tried the solution which you mentioned. But on the server start up, "ACCEPT_HEURISTIC_HAZARD is not a valid transaction service custom property" is getting printed... I am using RAD 7 (WAS 6.1).

Tulio Domingos said...

Thanks for this, using WebSphere AS 6.1 & RAD 7 and it worked! Not getting any start up warnings either as mentioned above which is good.

Seems to have fixed the error "An illegal attempt to commit a one phase capable resource with existing two phase capable resources has occurred"

Thanks

Tulio