Two phase commits in MQ messaging causes CMN9907E error in WebSphere Commerce Version 7.0

Technote (troubleshooting)


Problem(Abstract)

Attempts to use two phase commits with WebSphere Commerce Version 7.0 JMS MQ messaging results in a CMN9907E error and a failure to commit the JMS session when using WebSphere Commerce Enterprise.

Symptom

Frequent errors are reported in the logs that are similar to:

[1/12/11 12:23:45:123 EST] 0000002a jcajms E JCAJMSLocalTransaction commit() Messaging system cannot commit a JMS Session for QueueConnectionFactory null. Error:
javax.jms.IllegalStateException: Method not permitted in global transaction
[1/12/11 12:23:45:124 EST] 0000002a CommerceSrvr E com.ibm.commerce.messaging.listener.TransportAdapterSerialDispatcher process() CMN9907E: A resource exception occurred during processing: "com.ibm.commerce.messaging.adapters.jca.exception.WcResourceException: Messaging system cannot commit a JMS Session for QueueConnectionFactory null
. Error: javax.jms.IllegalStateException: Method not permitted in global transaction
at com.ibm.commerce.messaging.adapters.jcajms.JCAJMSLocalTransaction.commit(JCAJMSLocalTransaction.java:93)
at com.ibm.commerce.messaging.listener.TransportAdapterSerialDispatcher.process(TransportAdapterSerialDispatcher.java:541)
at com.ibm.commerce.messaging.listener.TransportAdapterSecurityPriviledgeAction.run(TransportAdapterSecurityPriviledgeAction.java:55)
at com.ibm.commerce.messaging.listener.TransportAdapterSerialDispatcher.run(TransportAdapterSerialDispatcher.java:123)
at com.ibm.commerce.threadmanagement.internal.BaseWork.run(BaseWork.java:139)
at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:264)
at java.security.AccessController.doPrivileged(AccessController.java:202)
at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:1137)
at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:199)
at com.ibm.ws.asynchbeans.CJWorkItemImpl.run(CJWorkItemImpl.java:188)
at java.lang.Thread.run(Thread.java:736)
". com.ibm.commerce.messaging.adapters.jca.exception.WcResourceException: Messaging system cannot commit a JMS Session for QueueConnectionFactory null. Error: javax.jms.
IllegalStateException: Method not permitted in global transaction
at com.ibm.commerce.messaging.adapters.jcajms.JCAJMSLocalTransaction.commit(JCAJMSLocalTransaction.java:93)
at com.ibm.commerce.messaging.listener.TransportAdapterSerialDispatcher.process(TransportAdapterSerialDispatcher.java:541)
at com.ibm.commerce.messaging.listener.TransportAdapterSecurityPriviledgeAction.run(TransportAdapterSecurityPriviledgeAction.java:55)
at com.ibm.commerce.messaging.listener.TransportAdapterSerialDispatcher.run(TransportAdapterSerialDispatcher.java:123)
at com.ibm.commerce.threadmanagement.internal.BaseWork.run(BaseWork.java:139)
at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:264)
at java.security.AccessController.doPrivileged(AccessController.java:202)
at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:1137)
at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:199)
at com.ibm.ws.asynchbeans.CJWorkItemImpl.run(CJWorkItemImpl.java:188)
at java.lang.Thread.run(Thread.java:736)

Cause

WebSphere Commerce does not support two phase commits (2PC) in JMS messaging.

Diagnosing the problem

In the WebSphere Application Server Administrative Console, within the navigation tree, expand Resources > JMS, then click Queue Connection Factory. Click the JMSQueueConnectionFactory in use in the WebSphere Commerce environment, then under the Advanced section, check to see if "Support distributed two phase commit protocol" is selected. If it is selected, it must be cleared and the configuration saved.

Resolving the problem

Clear the "Support distributed two phase commit protocol" option, then click Apply. Save the configuration changes and restart the application server or cluster.

Related information

Creating a WebSphere MQ queue connection factory

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

WebSphere Commerce Enterprise
Messaging

Software version:

7.0

Operating system(s):

AIX, Linux, Solaris, Windows, i5/OS

Reference #:

1506367

Modified date:

2013-04-25

Translate my page

Machine Translation

Content navigation