[
http://jira.jboss.com/jira/browse/EJBTHREE-746?page=comments#action_12345923 ]
William DeCoste commented on EJBTHREE-746:
------------------------------------------
To recreate the test, run:
build -f build-test.xml test -Dtest=stateful
This will run 2 junits (NestedBeanUnitTestCase, RemoteUnitTestCase).
RemoteUnitTestCase.testClusteredPassivation() is the test that is failing. This test is
currently inactive as it's called atestClusteredPassivation().
This is what I am seeing ... this problem does not occur 100% of the time, so you may be
required to run the test multiple times or modify the config and sleep times. A @Clustered
SFSB is passivated, the corresponding cache node is evicted, and the attributes are
correctly written to the file. Some later time, the bean is passivated again. It has not
been activated. During this second passivation process, since there is no node, null
attributes are written to the existing file, overwriting the real attributes. So there are
two problems
1) The SFSB being passivated after it's already passivated
2) When there is no node to passivate, null attributes are written instead of doing
nothing. I locally fixed this problem in cache, which resolved the issue.
injection of clustered SFSB fails during activation
---------------------------------------------------
Key: EJBTHREE-746
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-746
Project: EJB 3.0
Issue Type: Bug
Affects Versions: EJB 3.0 RC9 - FD
Reporter: William DeCoste
Assigned To: William DeCoste
Injecting clustered SFSB fails during activation:
14:57:42,237 ERROR [STDERR] javax.ejb.EJBNoSuchObjectException: Could not find Stateful
bean: 4sg3a33-etojrw-eszuinl5-1-et4t44tc-1t
14:57:42,237 ERROR [STDERR] at
org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:268)
14:57:42,237 ERROR [STDERR] at
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:61)
14:57:42,237 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:57:42,237 ERROR [STDERR] at
org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:167)
14:57:42,237 ERROR [STDERR] at
org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
14:57:42,237 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:57:42,253 ERROR [STDERR] at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
14:57:42,253 ERROR [STDERR] at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
14:57:42,253 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:57:42,253 ERROR [STDERR] at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
14:57:42,253 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:57:42,253 ERROR [STDERR] at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:86)
14:57:42,253 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:57:42,253 ERROR [STDERR] at
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
14:57:42,253 ERROR [STDERR] at
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
14:57:42,253 ERROR [STDERR] at $Proxy913.initialize(I)V(Unknown Source)
14:57:42,253 ERROR [STDERR] at
com.insight.xvs.ejb.logic.NightlyDeterminationServiceEjb.performNightlyDetermination(NightlyDeterminationServiceEjb.java:75)
14:57:42,253 ERROR [STDERR] at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
14:57:42,253 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
14:57:42,253 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:116)
14:57:42,253 ERROR [STDERR] at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
14:57:42,253 ERROR [STDERR] at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
14:57:42,253 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:57:42,253 ERROR [STDERR] at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
14:57:42,253 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:57:42,253 ERROR [STDERR] at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
14:57:42,253 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:57:42,253 ERROR [STDERR] at
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
14:57:42,253 ERROR [STDERR] at
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
14:57:42,253 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:57:42,253 ERROR [STDERR] at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
14:57:42,253 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira