[seam-issues] [JBoss JIRA] Assigned: (JBSEAM-4542) NoSuchEJBException when both Authenticator and web service use EJB transaction

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Feb 16 07:34:10 EST 2010


     [ https://jira.jboss.org/jira/browse/JBSEAM-4542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir reassigned JBSEAM-4542:
---------------------------------

    Assignee: Pete Muir  (was: Jozef Hartinger)


> NoSuchEJBException when both Authenticator and web service use EJB transaction
> ------------------------------------------------------------------------------
>
>                 Key: JBSEAM-4542
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4542
>             Project: Seam
>          Issue Type: Bug
>          Components: WS
>    Affects Versions: 2.2.0.GA
>            Reporter: Jozef Hartinger
>            Assignee: Pete Muir
>             Fix For: 2.2.1.CR2
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list