javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException at com.evermind.server.ejb.EJBUtils.createEJBExceptio n(EJBUtils.java:352) at com.evermind.server.ejb.EJBTransactionManager.end( EJBTransactionManager.java:143) at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:6 3) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.StatelessSessionEJBObject. OC4J_invokeMethod(StatelessSessionEJBObject.java:8 6) at VorgangsEditorSLocal_StatelessSessionBeanWrapper0. addAbrechnungsVorgang(VorgangsEditorSLocal_Statele ssSessionBeanWrapper0.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)

Spring JIRA | Alexander Schulz | 1 decade ago
  1. 0

    Calling TransactionAspectSupport.currentTransactionStatus( ).setRollbackOnly() result in an EJBException on transaction end. The client receives this Exception instead of receiving the normal return object. It seems like Spring is using UserTransaction to set rollback, but this is prohibited in CMT by EJB 2.1 specification. Using pure CMT with ejbContext.setRollbackOnly is working correctly. My bean configuration looks like this <bean id="BestandsBerechnerSTarget" class="de.solutionary.bps.session.bestandsfuehrung .BestandsBerechnerSImpl"></bean> <bean id="BestandsBerechnerSIntern" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean"> <property name="transactionManager" ref="jtaTM" /> <property name="target" ref="BestandsBerechnerSTarget" /> <property name="transactionAttributes"> <props> <prop key="*">PROPAGATION_REQUIRED,timeout_500</prop> </props> </property> </bean> <bean id="BestandsBerechnerS" class="org.springframework.ejb.access.LocalStatele ssSessionProxyFactoryBean"> <property name="jndiName"> <value>java:comp/env/ejb/BestandsBerechnerSLocal</value> </property> <property name="businessInterface"> <value>de.solutionary.bps.session.bestandsfuehrung .BestandsBerechnerSBI</value> </property> </bean> Here is the stacktrace: 2006-09-04 10:50:06,894 ERROR (VorgangDetail.java:789) # Exception: javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException javax.transaction.RollbackException at com.evermind.server.ApplicationServerTransaction.c heckForRollbackOnlyWhileInCommit(ApplicationServer Transaction.java:537) at com.evermind.server.ApplicationServerTransaction.d oCommit(ApplicationServerTransaction.java:240) at com.evermind.server.ApplicationServerTransaction.c ommit(ApplicationServerTransaction.java:126) at com.evermind.server.ApplicationServerTransactionMa nager.commit(ApplicationServerTransactionManager.j ava:433) at com.evermind.server.ApplicationServer$2.commit(App licationServer.java:4540) at com.evermind.server.ejb.EJBTransactionManager.end( EJBTransactionManager.java:136) at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:6 3) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.StatelessSessionEJBObject. OC4J_invokeMethod(StatelessSessionEJBObject.java:8 6) at VorgangsEditorSLocal_StatelessSessionBeanWrapper0. addAbrechnungsVorgang(VorgangsEditorSLocal_Statele ssSessionBeanWrapper0.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.ejb.access.LocalSlsbInvokerInt erceptor.invoke(LocalSlsbInvokerInterceptor.java:7 1) at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :170) at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:176) at $Proxy36.addAbrechnungsVorgang(Unknown Source) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .speichern(VorgangDetail.java:741) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .reactOnSpeichern(VorgangDetail.java:477) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.gasx.casabac.control.GXDialogElement.invokeAct ionMethod(GXDialogElement.java:188) at com.gasx.casabac.control.GXButton.onButton(GXButto n.java:111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.softwareag.cis.server.InteractionModel.invokeM ethodInternally(Unknown Source) at com.softwareag.cis.server.InteractionModel.invokeM ethod(Unknown Source) at com.softwareag.cis.server.XMLProcessor.processXML( Unknown Source) at com.softwareag.cis.server.Connector.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet .java:763) at javax.servlet.http.HttpServlet.service(HttpServlet .java:856) at com.evermind.server.http.ServletRequestDispatcher. invoke(ServletRequestDispatcher.java:719) at com.evermind.server.http.ServletRequestDispatcher. forwardInternal(ServletRequestDispatcher.java:376) at com.evermind.server.http.HttpRequestHandler.doProc essRequest(HttpRequestHandler.java:870) at com.evermind.server.http.HttpRequestHandler.proces sRequest(HttpRequestHandler.java:451) at com.evermind.server.http.HttpRequestHandler.serveO neRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:119) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRu nnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor $MyWorker.run(ReleasableResourcePooledExecutor.jav a:303) at java.lang.Thread.run(Thread.java:595) javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException at com.evermind.server.ejb.EJBUtils.createEJBExceptio n(EJBUtils.java:352) at com.evermind.server.ejb.EJBTransactionManager.end( EJBTransactionManager.java:143) at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:6 3) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.StatelessSessionEJBObject. OC4J_invokeMethod(StatelessSessionEJBObject.java:8 6) at VorgangsEditorSLocal_StatelessSessionBeanWrapper0. addAbrechnungsVorgang(VorgangsEditorSLocal_Statele ssSessionBeanWrapper0.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.ejb.access.LocalSlsbInvokerInt erceptor.invoke(LocalSlsbInvokerInterceptor.java:7 1) at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :170) at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:176) at $Proxy36.addAbrechnungsVorgang(Unknown Source) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .speichern(VorgangDetail.java:741) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .reactOnSpeichern(VorgangDetail.java:477) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.gasx.casabac.control.GXDialogElement.invokeAct ionMethod(GXDialogElement.java:188) at com.gasx.casabac.control.GXButton.onButton(GXButto n.java:111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.softwareag.cis.server.InteractionModel.invokeM ethodInternally(Unknown Source) at com.softwareag.cis.server.InteractionModel.invokeM ethod(Unknown Source) at com.softwareag.cis.server.XMLProcessor.processXML( Unknown Source) at com.softwareag.cis.server.Connector.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet .java:763) at javax.servlet.http.HttpServlet.service(HttpServlet .java:856) at com.evermind.server.http.ServletRequestDispatcher. invoke(ServletRequestDispatcher.java:719) at com.evermind.server.http.ServletRequestDispatcher. forwardInternal(ServletRequestDispatcher.java:376) at com.evermind.server.http.HttpRequestHandler.doProc essRequest(HttpRequestHandler.java:870) at com.evermind.server.http.HttpRequestHandler.proces sRequest(HttpRequestHandler.java:451) at com.evermind.server.http.HttpRequestHandler.serveO neRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:119) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRu nnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor $MyWorker.run(ReleasableResourcePooledExecutor.jav a:303) at java.lang.Thread.run(Thread.java:595) Caused by: javax.transaction.RollbackException at com.evermind.server.ApplicationServerTransaction.c heckForRollbackOnlyWhileInCommit(ApplicationServer Transaction.java:537) at com.evermind.server.ApplicationServerTransaction.d oCommit(ApplicationServerTransaction.java:240) at com.evermind.server.ApplicationServerTransaction.c ommit(ApplicationServerTransaction.java:126) at com.evermind.server.ApplicationServerTransactionMa nager.commit(ApplicationServerTransactionManager.j ava:433) at com.evermind.server.ApplicationServer$2.commit(App licationServer.java:4540) at com.evermind.server.ejb.EJBTransactionManager.end( EJBTransactionManager.java:136) ... 42 more If I'm calling ejbContext.getUserTransaction().setRollbackOnly() in a pure CMT environment without Spring the following Exception is raised: 2006-09-05 10:52:24,031 FATAL (VorgangsEditorSImpl.java:2599) # java.lang.IllegalStateException: Only beans with user-managed transactions can invoke getUserTransaction() at com.evermind.server.ejb.AbstractEJBContext.getUser Transaction(AbstractEJBContext.java:262) at de.solutionary.bps.session.tankfarm.VorgangsEditor SImpl.addAbrechnungsVorgang(VorgangsEditorSImpl.ja va:2591) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:181) at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :148) at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:96) at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :170) at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:176) at $Proxy36.addAbrechnungsVorgang(Unknown Source) at de.solutionary.bps.session.tankfarm.VorgangsEditor SBean.addAbrechnungsVorgang(VorgangsEditorSBean.ja va:654) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.evermind.server.ejb.interceptor.joinpoint.EJBJ oinPointImpl.invoke(EJBJoinPointImpl.java:35) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:5 5) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.StatelessSessionEJBObject. OC4J_invokeMethod(StatelessSessionEJBObject.java:8 6) at VorgangsEditorSLocal_StatelessSessionBeanWrapper0. addAbrechnungsVorgang(VorgangsEditorSLocal_Statele ssSessionBeanWrapper0.java:141) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .speichern(VorgangDetail.java:747) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .reactOnSpeichern(VorgangDetail.java:482) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.gasx.casabac.control.GXDialogElement.invokeAct ionMethod(GXDialogElement.java:188) at com.gasx.casabac.control.GXButton.onButton(GXButto n.java:111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.softwareag.cis.server.InteractionModel.invokeM ethodInternally(Unknown Source) at com.softwareag.cis.server.InteractionModel.invokeM ethod(Unknown Source) at com.softwareag.cis.server.XMLProcessor.processXML( Unknown Source) at com.softwareag.cis.server.Connector.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet .java:763) at javax.servlet.http.HttpServlet.service(HttpServlet .java:856) at com.evermind.server.http.ServletRequestDispatcher. invoke(ServletRequestDispatcher.java:719) at com.evermind.server.http.ServletRequestDispatcher. forwardInternal(ServletRequestDispatcher.java:376) at com.evermind.server.http.HttpRequestHandler.doProc essRequest(HttpRequestHandler.java:870) at com.evermind.server.http.HttpRequestHandler.proces sRequest(HttpRequestHandler.java:451) at com.evermind.server.http.HttpRequestHandler.serveO neRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:119) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRu nnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor $MyWorker.run(ReleasableResourcePooledExecutor.jav a:303) at java.lang.Thread.run(Thread.java:595)

    Spring JIRA | 1 decade ago | Alexander Schulz
    javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException at com.evermind.server.ejb.EJBUtils.createEJBExceptio n(EJBUtils.java:352) at com.evermind.server.ejb.EJBTransactionManager.end( EJBTransactionManager.java:143) at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:6 3) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.StatelessSessionEJBObject. OC4J_invokeMethod(StatelessSessionEJBObject.java:8 6) at VorgangsEditorSLocal_StatelessSessionBeanWrapper0. addAbrechnungsVorgang(VorgangsEditorSLocal_Statele ssSessionBeanWrapper0.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
  2. 0

    Calling TransactionAspectSupport.currentTransactionStatus( ).setRollbackOnly() result in an EJBException on transaction end. The client receives this Exception instead of receiving the normal return object. It seems like Spring is using UserTransaction to set rollback, but this is prohibited in CMT by EJB 2.1 specification. Using pure CMT with ejbContext.setRollbackOnly is working correctly. My bean configuration looks like this <bean id="BestandsBerechnerSTarget" class="de.solutionary.bps.session.bestandsfuehrung .BestandsBerechnerSImpl"></bean> <bean id="BestandsBerechnerSIntern" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean"> <property name="transactionManager" ref="jtaTM" /> <property name="target" ref="BestandsBerechnerSTarget" /> <property name="transactionAttributes"> <props> <prop key="*">PROPAGATION_REQUIRED,timeout_500</prop> </props> </property> </bean> <bean id="BestandsBerechnerS" class="org.springframework.ejb.access.LocalStatele ssSessionProxyFactoryBean"> <property name="jndiName"> <value>java:comp/env/ejb/BestandsBerechnerSLocal</value> </property> <property name="businessInterface"> <value>de.solutionary.bps.session.bestandsfuehrung .BestandsBerechnerSBI</value> </property> </bean> Here is the stacktrace: 2006-09-04 10:50:06,894 ERROR (VorgangDetail.java:789) # Exception: javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException javax.transaction.RollbackException at com.evermind.server.ApplicationServerTransaction.c heckForRollbackOnlyWhileInCommit(ApplicationServer Transaction.java:537) at com.evermind.server.ApplicationServerTransaction.d oCommit(ApplicationServerTransaction.java:240) at com.evermind.server.ApplicationServerTransaction.c ommit(ApplicationServerTransaction.java:126) at com.evermind.server.ApplicationServerTransactionMa nager.commit(ApplicationServerTransactionManager.j ava:433) at com.evermind.server.ApplicationServer$2.commit(App licationServer.java:4540) at com.evermind.server.ejb.EJBTransactionManager.end( EJBTransactionManager.java:136) at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:6 3) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.StatelessSessionEJBObject. OC4J_invokeMethod(StatelessSessionEJBObject.java:8 6) at VorgangsEditorSLocal_StatelessSessionBeanWrapper0. addAbrechnungsVorgang(VorgangsEditorSLocal_Statele ssSessionBeanWrapper0.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.ejb.access.LocalSlsbInvokerInt erceptor.invoke(LocalSlsbInvokerInterceptor.java:7 1) at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :170) at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:176) at $Proxy36.addAbrechnungsVorgang(Unknown Source) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .speichern(VorgangDetail.java:741) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .reactOnSpeichern(VorgangDetail.java:477) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.gasx.casabac.control.GXDialogElement.invokeAct ionMethod(GXDialogElement.java:188) at com.gasx.casabac.control.GXButton.onButton(GXButto n.java:111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.softwareag.cis.server.InteractionModel.invokeM ethodInternally(Unknown Source) at com.softwareag.cis.server.InteractionModel.invokeM ethod(Unknown Source) at com.softwareag.cis.server.XMLProcessor.processXML( Unknown Source) at com.softwareag.cis.server.Connector.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet .java:763) at javax.servlet.http.HttpServlet.service(HttpServlet .java:856) at com.evermind.server.http.ServletRequestDispatcher. invoke(ServletRequestDispatcher.java:719) at com.evermind.server.http.ServletRequestDispatcher. forwardInternal(ServletRequestDispatcher.java:376) at com.evermind.server.http.HttpRequestHandler.doProc essRequest(HttpRequestHandler.java:870) at com.evermind.server.http.HttpRequestHandler.proces sRequest(HttpRequestHandler.java:451) at com.evermind.server.http.HttpRequestHandler.serveO neRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:119) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRu nnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor $MyWorker.run(ReleasableResourcePooledExecutor.jav a:303) at java.lang.Thread.run(Thread.java:595) javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException at com.evermind.server.ejb.EJBUtils.createEJBExceptio n(EJBUtils.java:352) at com.evermind.server.ejb.EJBTransactionManager.end( EJBTransactionManager.java:143) at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:6 3) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.StatelessSessionEJBObject. OC4J_invokeMethod(StatelessSessionEJBObject.java:8 6) at VorgangsEditorSLocal_StatelessSessionBeanWrapper0. addAbrechnungsVorgang(VorgangsEditorSLocal_Statele ssSessionBeanWrapper0.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.ejb.access.LocalSlsbInvokerInt erceptor.invoke(LocalSlsbInvokerInterceptor.java:7 1) at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :170) at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:176) at $Proxy36.addAbrechnungsVorgang(Unknown Source) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .speichern(VorgangDetail.java:741) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .reactOnSpeichern(VorgangDetail.java:477) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.gasx.casabac.control.GXDialogElement.invokeAct ionMethod(GXDialogElement.java:188) at com.gasx.casabac.control.GXButton.onButton(GXButto n.java:111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.softwareag.cis.server.InteractionModel.invokeM ethodInternally(Unknown Source) at com.softwareag.cis.server.InteractionModel.invokeM ethod(Unknown Source) at com.softwareag.cis.server.XMLProcessor.processXML( Unknown Source) at com.softwareag.cis.server.Connector.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet .java:763) at javax.servlet.http.HttpServlet.service(HttpServlet .java:856) at com.evermind.server.http.ServletRequestDispatcher. invoke(ServletRequestDispatcher.java:719) at com.evermind.server.http.ServletRequestDispatcher. forwardInternal(ServletRequestDispatcher.java:376) at com.evermind.server.http.HttpRequestHandler.doProc essRequest(HttpRequestHandler.java:870) at com.evermind.server.http.HttpRequestHandler.proces sRequest(HttpRequestHandler.java:451) at com.evermind.server.http.HttpRequestHandler.serveO neRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:119) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRu nnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor $MyWorker.run(ReleasableResourcePooledExecutor.jav a:303) at java.lang.Thread.run(Thread.java:595) Caused by: javax.transaction.RollbackException at com.evermind.server.ApplicationServerTransaction.c heckForRollbackOnlyWhileInCommit(ApplicationServer Transaction.java:537) at com.evermind.server.ApplicationServerTransaction.d oCommit(ApplicationServerTransaction.java:240) at com.evermind.server.ApplicationServerTransaction.c ommit(ApplicationServerTransaction.java:126) at com.evermind.server.ApplicationServerTransactionMa nager.commit(ApplicationServerTransactionManager.j ava:433) at com.evermind.server.ApplicationServer$2.commit(App licationServer.java:4540) at com.evermind.server.ejb.EJBTransactionManager.end( EJBTransactionManager.java:136) ... 42 more If I'm calling ejbContext.getUserTransaction().setRollbackOnly() in a pure CMT environment without Spring the following Exception is raised: 2006-09-05 10:52:24,031 FATAL (VorgangsEditorSImpl.java:2599) # java.lang.IllegalStateException: Only beans with user-managed transactions can invoke getUserTransaction() at com.evermind.server.ejb.AbstractEJBContext.getUser Transaction(AbstractEJBContext.java:262) at de.solutionary.bps.session.tankfarm.VorgangsEditor SImpl.addAbrechnungsVorgang(VorgangsEditorSImpl.ja va:2591) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:181) at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :148) at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:96) at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :170) at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:176) at $Proxy36.addAbrechnungsVorgang(Unknown Source) at de.solutionary.bps.session.tankfarm.VorgangsEditor SBean.addAbrechnungsVorgang(VorgangsEditorSBean.ja va:654) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.evermind.server.ejb.interceptor.joinpoint.EJBJ oinPointImpl.invoke(EJBJoinPointImpl.java:35) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:5 5) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.StatelessSessionEJBObject. OC4J_invokeMethod(StatelessSessionEJBObject.java:8 6) at VorgangsEditorSLocal_StatelessSessionBeanWrapper0. addAbrechnungsVorgang(VorgangsEditorSLocal_Statele ssSessionBeanWrapper0.java:141) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .speichern(VorgangDetail.java:747) at de.mummert.abrechnung.web.abrechnung.VorgangDetail .reactOnSpeichern(VorgangDetail.java:482) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.gasx.casabac.control.GXDialogElement.invokeAct ionMethod(GXDialogElement.java:188) at com.gasx.casabac.control.GXButton.onButton(GXButto n.java:111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.softwareag.cis.server.InteractionModel.invokeM ethodInternally(Unknown Source) at com.softwareag.cis.server.InteractionModel.invokeM ethod(Unknown Source) at com.softwareag.cis.server.XMLProcessor.processXML( Unknown Source) at com.softwareag.cis.server.Connector.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet .java:763) at javax.servlet.http.HttpServlet.service(HttpServlet .java:856) at com.evermind.server.http.ServletRequestDispatcher. invoke(ServletRequestDispatcher.java:719) at com.evermind.server.http.ServletRequestDispatcher. forwardInternal(ServletRequestDispatcher.java:376) at com.evermind.server.http.HttpRequestHandler.doProc essRequest(HttpRequestHandler.java:870) at com.evermind.server.http.HttpRequestHandler.proces sRequest(HttpRequestHandler.java:451) at com.evermind.server.http.HttpRequestHandler.serveO neRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:119) at com.evermind.server.http.HttpRequestHandler.run(Ht tpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRu nnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor $MyWorker.run(ReleasableResourcePooledExecutor.jav a:303) at java.lang.Thread.run(Thread.java:595)

    Spring JIRA | 1 decade ago | Alexander Schulz
    javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException at com.evermind.server.ejb.EJBUtils.createEJBExceptio n(EJBUtils.java:352) at com.evermind.server.ejb.EJBTransactionManager.end( EJBTransactionManager.java:143) at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:6 3) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.StatelessSessionEJBObject. OC4J_invokeMethod(StatelessSessionEJBObject.java:8 6) at VorgangsEditorSLocal_StatelessSessionBeanWrapper0. addAbrechnungsVorgang(VorgangsEditorSLocal_Statele ssSessionBeanWrapper0.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
  3. 0

    JBoss Community / Mailing Lists

    sourceforge.net | 11 months ago
    javax.ejb.EJBException: java.lang.ClassNotFoundException: registration.RegisterForm (no security manager: RMI class loader disabled) at org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl.unserializeSession(ClusteredHTTPSessionBeanImpl.java:139) at org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl.getSession(ClusteredHTTPSessionBeanImpl.java:79)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Embedded GlassFish no EJBContainer available | Java.net

    java.net | 1 year ago
    javax.ejb.EJBException: Failed to deploy EJB modules - see log for details > at > org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:139) > at > org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:122) > at > javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:116) > at > hu.sch.test.base.ContainerHolder.fireUpEJBContainer(ContainerHolder.java:25) > at hu.sch.test.base.AbstractTest.setup(AbstractTest.java:16) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  6. 0

    EclipseLink - Users - Issues with remove jta, eclipselink with a relational object..

    nabble.com | 1 year ago
    javax.ejb.EJBException: java.lang.IllegalArgumentException: Entity >> must be managed to call remove: >> com.dst.hps.pmab.security.bom.helpers.UserRole@349d, try merging the >> detached and try the remove again. >>         at >> org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:77) >>         at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) >>         at >> org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190) >>         at >> org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) >>         at >> org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) >>         at >> org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) >>         at >> org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42) >>         at >> org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) >>         at >> org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:201) >>         at >> org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) >>         at >> org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186) >>         at >> org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) >>         at >> org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41) >>         at >> org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) >>         at >> org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67) >>         at >> org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) >>         at >> org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67) >>         at >> org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) >>         at >> org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421) >>         at >> org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85) >>         at >> org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72) >>         at >> org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) >>         at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62) >>         at $Proxy634.invoke(Unknown Source) >>         at >> org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207) >>         at >> org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164) >>         at $Proxy615.setRoles(Unknown Source) >>         at >> com.dsths.pmab.utils.SecurityServiceHelper.updateUser(SecurityServiceHelper.java:176) >>         at >> com.dsths.pmab.resources.security.UserDetails.updateUser(UserDetails.java:168) >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  1. Andreas Häber 2 times, last 2 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.ejb.EJBException

    An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException at com.evermind.server.ejb.EJBUtils.createEJBExceptio n(EJBUtils.java:352) at com.evermind.server.ejb.EJBTransactionManager.end( EJBTransactionManager.java:143) at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:6 3) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:69) at com.evermind.server.ejb.StatelessSessionEJBObject. OC4J_invokeMethod(StatelessSessionEJBObject.java:8 6) at VorgangsEditorSLocal_StatelessSessionBeanWrapper0. addAbrechnungsVorgang(VorgangsEditorSLocal_Statele ssSessionBeanWrapper0.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke()
  2. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Method.java:585)
    1 frame