Forums Register Login

java lang IllegalStateException

+Pie Number of slices to send: Send
4/6/06 10:23:49:305 CDT] 0000003e ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "onMessage" on bean "BeanId(MessagingSimulatorService#MessagingSimulatorServiceEJB.jar#IOMServiceSimMDB, null)". Exception data: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:91)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.MDBWrapper.onMessage(MDBWrapper.java:268)
at progress.message.jimpl.Session.dU_(Unknown Source)
at progress.message.jimpl.Session.run(Unknown Source)
at com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHandle.java:963)
at com.ibm.ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.java:871)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:480)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.IllegalStateException: Illegal attempt to start a local transaction within a global (user) transaction
at com.ibm.ejs.j2c.ConnectionEventListener.localTransactionStarted(ConnectionEventListener.java:562)
at com.ibm.ejs.jms.JMSManagedSession.localTransactionStarted(JMSManagedSession.java:965)
at com.ibm.ejs.jms.JMSManagedSession.enlist(JMSManagedSession.java:917)
at com.ibm.ejs.jms.JMSSessionHandle.enlist(JMSSessionHandle.java:993)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:620)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:603)
... 15 more


How to resolve this issue...
+Pie Number of slices to send: Send
Looks like you are trying to create a user transaction within a JTA global transaction. You should remove your own transactional code and rely on JTA.
Tell me how it all turns out. Here is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1485 times.
Similar Threads
Exception processing JMS Message for MDB
Axis Jar - No Class Found error for XMLUtils
Urgent Pls..... MDBs calling One Session Bean
Exception during 2 Phase Commit..Urgent...
WAS5.1 -Classpath Problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:01:48.