Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java lang IllegalStateException  RSS feed

 
Bacchi Gerem
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Yuan Ye
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!