3 Replies Latest reply on May 21, 2015 2:32 PM by D P

    javax.ejb.EJBTransactionRolledbackException: Unexpected Error

    D P Apprentice

      I am getting following error while accessing application on Wildfly8.2

       

      ERROR [org.jboss.as.ejb3] (default task-22) javax.ejb.EJBTransactionRolledbackException: Unexpected Error

       

      Any fixes ?

       

      Thanks

        • 1. Re: javax.ejb.EJBTransactionRolledbackException: Unexpected Error
          Jay SenSharma Master

          Hello,

             Can  provide more details about the application like what is it doing ?

             complete stackTrace?  Type of EJB ? What kind of transactions are running there ?   Just before the above error do you see any additional ERROR/WARN in your log ?

          • 2. Re: javax.ejb.EJBTransactionRolledbackException: Unexpected Error
            D P Apprentice

            Its Session Bean , we are using EJB 1.1.

             

            How can I find transaction details.

             

            2015-05-15 22:57:39,139 ERROR [org.jboss.as.ejb3.invocation] (default task-4) JBAS014134: EJB Invocation failed on component com.proxy.ejb.tasklistproxyejb.bean.TaskListProxyEJB for method public abstract java.util.Collection com.proxy.ejb.tasklistproxyejb.bean.TaskListProxy.getTaskListItems(com.systemservice.nbssecurity.NBSSecurityObj) throws java.rmi.RemoteException,javax.ejb.EJBException,java.lang.Exception: javax.ejb.EJBTransactionRolledbackException: Unexpected Error

                at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:157) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:253) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:342) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ejb3.component.interceptors.EjbExceptionTransformingInterceptorFactories$1.processInvocation(EjbExceptionTransformingInterceptorFactories.java:65) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

                at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:439)

                at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

                at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)

                at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:245) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:184) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.EJBObjectInterceptor.handleInvocation(EJBObjectInterceptor.java:58) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.EJBHomeInterceptor.handleInvocation(EJBHomeInterceptor.java:83) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                at com.sun.proxy.$Proxy59.getTaskListItems(Unknown Source)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_45]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_45]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_45]

                at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]

                at com.systemservice.ejb.mainsessionejb.bean.MainSessionCommandEJB.processRequest(MainSessionCommandEJB.java:200) [NEDSSEJB.jar:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_45]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_45]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_45]

                at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]

                at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

                at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82) [wildfly-weld-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93) [wildfly-weld-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.jpa.interceptor.SFSBInvocationInterceptor.processInvocation(SFSBInvocationInterceptor.java:57)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.processInvocation(StatefulSessionSynchronizationInterceptor.java:127) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

                at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) [weld-core-impl-2.2.6.Final.jar:2014-10-03 10:05]

                at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83) [wildfly-weld-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.2.0.Final.jar:8.2.0.Final]

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

            • 3. Re: javax.ejb.EJBTransactionRolledbackException: Unexpected Error
              D P Apprentice

              The classes i EJB jar were trying to refer classes in WAR file.

              copied these classes in EJB jar and problem got solved.

               

              Thanks,