[GLASSFISH-20355] stateful/lifecycle tests failed with CDI enabled Created: 19/Apr/13  Updated: 25/Apr/13  Resolved: 19/Apr/13

Status: Resolved
Project: glassfish
Component/s: ejb_container
Affects Version/s: 4.0_b85
Fix Version/s: 4.0

Type: Bug Priority: Major
Reporter: sherryshen Assignee: jjsnyder83
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHL6 and JDK1.7.0_10



 Description   

stateful/lifecycle tests failed with CDI enabled

glassfish-4.0-b85.zip

appserver-sqe/pe/ejb/ejb30/session/stateful/lifecycle
Lifecycle of session beans

Tests failed on b85 promoted, but passed on b84 promoted.

Thanks Mitesh for the initial analysis:
Looks like failing after passivating a SFSB
The tests started to fail with nightly of Apr 12 and
pass after disabling implicit-cdi (using asadmin set configs.config.server-config.cdi-service.enable-implicit-cdi=false).



 Comments   
Comment by tlcksnyder [ 19/Apr/13 ]

Exception from log ftp://adc2120166.us.oracle.com/pub/tmp/appserver-sqe_130418_EJB3_six_test_failure/stateful_lifecycle_server_log.txt:
javax.ejb.NoSuchObjectLocalException: Invalid Session Key ( 81900a1600e51f-1eb0a831-2)
at com.sun.ejb.containers.StatefulSessionContainer._getContextForInstance(StatefulSessionContainer.java:1469)
at com.sun.ejb.containers.StatefulSessionContainer.getEJBRemoteBusinessObjectImpl(StatefulSessionContainer.java:1493)
at com.sun.ejb.containers.BaseContainer.getTargetObject(BaseContainer.java:1751)
at org.glassfish.enterprise.iiop.impl.POARemoteReferenceFactory.preinvoke(POARemoteReferenceFactory.java:501)
at com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorImpl_NR_USM.internalGetServant(POAPolicyMediatorImpl_NR_USM.java:93)
at com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase.getInvocationServant(POAPolicyMediatorBase.java:139)
at com.sun.corba.ee.impl.oa.poa.POAImpl.getInvocationServant(POAImpl.java:1805)
at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.getServant(ServerRequestDispatcherImpl.java:286)
at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.getServantWithPI(ServerRequestDispatcherImpl.java:311)
at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:196)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)

Comment by Mitesh Meswani [ 19/Apr/13 ]

Assigning to JJ since this issue is due to enable-implicit-cdi

Comment by jjsnyder83 [ 19/Apr/13 ]

Can you provide info on how to download and execute the tests?

Comment by sherryshen [ 19/Apr/13 ]

Hi JJ,

Thanks for looking into the bug.

1) To set up test env, please reference the instruction section I, IIa
http://aseng-wiki.us.oracle.com/asengwiki/display/ASQA/4.0+Core+Test+Instructions
(use co-ejb instead of co-core to save check out time).
2) To run test suite, do "ant all" in test suite dir
(e.g. $SPS_HOME/pe/ejb/ejb30/session/stateful/lifecycle in this bug)

Here is build.xml for this suite and test env in hudson configure for your reference.
http://sqe-hudson.us.oracle.com:8080/hudson/job/sherry-das/ws/appserver-sqe/pe/ejb/ejb30/session/stateful/lifecycle/build.xml/*view*/
http://sqe-hudson.us.oracle.com:8080/hudson/job/sherry-das/
I will update the bug with this info.
For other suites, you can run tests similarly.
Thanks!

Sherry

Comment by jjsnyder83 [ 19/Apr/13 ]

http://java.net/jira/browse/GLASSFISH-20325

Comment by sherryshen [ 25/Apr/13 ]

Test passed on build 86 promoted.
Thanks for the analysis and fix.

Generated at Sat Sep 05 14:03:17 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.