Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4542

NoSuchEJBException when both Authenticator and web service use EJB transaction

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.2.0.GA
    • Fix Version/s: 2.2.1.CR2
    • Component/s: Core
    • Labels:
      None
    • Affects:
      Release Notes

      Description

      If both an Authenticator and a web service use EJB transaction (via @Transactional), invocation of the web service fails. Seam is not able to lookup org.jboss.seam.transaction.EjbSynchronizations SFSB in the second ContextualHttpServletRequest.

      org.jboss.seam.example.restbay.test.SecurityTest.synchronizationsLookup()

      [testng] Caused by: javax.ejb.NoSuchEJBException: Could not find stateful bean: 3j001-op8eml-g5p8kc8t-1-g5p8klrn-m
      [testng] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:394)
      [testng] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:379)
      [testng] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:63)
      [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      [testng] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
      [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      [testng] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:166)
      [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      [testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
      [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      [testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      [testng] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:261)
      [testng] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:119)
      [testng] at $Proxy96.afterTransactionRollback(Unknown Source)
      [testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
      [testng] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
      [testng] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
      [testng] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      [testng] at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
      [testng] at org.javassist.tmp.java.lang.Object_$$javassist_seam_1.afterTransactionRollback(Object$$_javassist_seam_1.java)
      [testng] at org.jboss.seam.transaction.UTTransaction.rollback(UTTransaction.java:70)
      [testng] at org.jboss.seam.util.Work.workInTransaction(Work.java:82)
      [testng] at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
      [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      [testng] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
      [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      [testng] at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:163)
      [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      [testng] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      [testng] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
      [testng] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
      [testng] at org.jboss.seam.example.restbay.resteasy.SecuredResource_$$javassist_seam_24.synchronizationsLookup(SecuredResource$$_javassist_seam_24.java)
      [testng] at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:124)
      [testng] at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:247)
      [testng] at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:212)
      [testng] at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:202)
      [testng] at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:441)
      [testng] ... 49 more

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  manaRH Marek Novotny
                  Reporter:
                  jharting Jozef Hartinger
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: