[
https://issues.jboss.org/browse/JBSEAM-5053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728587#comment-12728587
]
Marek Schmidt commented on JBSEAM-5053:
---------------------------------------
You'd need to add the annotation
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) to the
ArtistHome interface if that is what you want. The problem is that the create
method will still be run as with TransactionAttributeType.REQUIRED if the
annotation is only on the ArtistHomeImpl, so the ArtistHome SFSB will be locked
by the transaction that created the instance and so any further call of any of
the TransactionAttributeType.NOT_SUPPORTED methods will wait till the end of
that transaction, thus this deadlock occurs (the deadlock is resolved by the
timeout).
> javax.ejb.ConcurrentAccessTimeoutException: JBAS014360
> ------------------------------------------------------
>
> Key: JBSEAM-5053
> URL: https://issues.jboss.org/browse/JBSEAM-5053
> Project: Seam 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.3.0.Final
> Environment: JBoss AS 7.1.1, Seam 2.3.0.Final
> Reporter: Gus Gu
>
> Hi there,
> I am not sure this exception is caused by JBoss AS 7.1.1 or Seam 2.3.0. The
> following codes works fine in Seam 2.2 and JBoss 4.2.3.
> How to reproduce: just add
> @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) to
> ArtistHomeImpl.java in the seam-discs example:
> @Name("artistHome")
> @Stateful
> @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
> public class ArtistHomeImpl extends EntityHome<Artist> implements ArtistHome
> {
> Caused by: javax.ejb.EJBException:
> javax.ejb.ConcurrentAccessTimeoutException: JBAS014360: EJB 3.1 FR 4.3.14.1
> concurrent access timeout on org.jboss.invocation.InterceptorContext@109fe782
> - could not obtain lock within 5000 MILLISECONDS
> at
> org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:282)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:188)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ejb3.component.stateful.StatefulComponentIdInterceptor.processInvocation(StatefulComponentIdInterceptor.java:52)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> com.mycom.controller.forum.home.ForumHome$$$view6.getCategory(Unknown Source)
> [proj-ejb.jar:]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [rt.jar:1.6.0_26]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [rt.jar:1.6.0_26]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [rt.jar:1.6.0_26]
> at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_26]
> at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
> [jboss-seam.jar:2.3.0.Final]
> at
> org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
> [jboss-seam.jar:2.3.0.Final]
> at
> org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
> [jboss-seam.jar:2.3.0.Final]
> at
> org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
> [jboss-seam.jar:2.3.0.Final]
> at
> org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:43)
> [jboss-seam.jar:2.3.0.Final]
> at
> org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> [jboss-seam.jar:2.3.0.Final]
> at
> org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
> [jboss-seam.jar:2.3.0.Final]
> at
> org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
> [jboss-seam.jar:2.3.0.Final]
> at
> org.javassist.tmp.java.lang.Object_$$_javassist_seam_19.getCategory(Object_$$_javassist_seam_19.java)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [rt.jar:1.6.0_26]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [rt.jar:1.6.0_26]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [rt.jar:1.6.0_26]
> at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_26]
> at javax.el.BeanELResolver.getValue(BeanELResolver.java:302)
> [jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
> at
> com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
> [jsf-impl-2.1.7-jbossorg-2.jar:]
> at
> com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
> [jsf-impl-2.1.7-jbossorg-2.jar:]
> at
> org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
> [jboss-el.jar:1.0_02.CR6]
> at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
> [jboss-el.jar:1.0_02.CR6]
> at
> org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
> [jboss-el.jar:1.0_02.CR6]
> at
> com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
> [jsf-impl-2.1.7-jbossorg-2.jar:]
> ... 72 more
> Caused by: javax.ejb.ConcurrentAccessTimeoutException: JBAS014360: EJB 3.1 FR
> 4.3.14.1 concurrent access timeout on
> org.jboss.invocation.InterceptorContext@109fe782 - could not obtain lock
> within 5000 MILLISECONDS
> at
> org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.processInvocation(StatefulSessionSynchronizationInterceptor.java:117)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ejb3.component.stateful.StatefulComponentInstanceInterceptor.processInvocation(StatefulComponentInstanceInterceptor.java:66)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:211)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:274)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> ... 117 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues