[GLASSFISH-15377] [STRESS] java.lang.ArrayIndexOutOfBoundsException in EJB container when executing richAccess 24x7 Created: 28/Dec/10  Updated: 06/Jan/11

Status: Reopened
Project: glassfish
Component/s: ejb_container
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: sonymanuel Assignee: marina vatkina
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File server.log    
Issue Links:
Dependency
blocks GLASSFISH-15425 [STRESS][umbrella] 24x7 RichAccess ru... Open

 Description   

Build : 21-dec-2010 nightly build.

See one occurrence of this exception in the cluster when running richaccess over a 24x7 period.

[#|2010-12-28T13:02:31.076+0530|WARNING|glassfish3.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=16;_ThreadName=Thread-1;|A system exception occurred during an invocation on EJB SFSB method null
javax.ejb.EJBException: java.lang.ArrayIndexOutOfBoundsException
at com.sun.ejb.containers.StatefulSessionContainer.removeBean(StatefulSessionContainer.java:1051)
at com.sun.ejb.containers.StatefulSessionContainer.removeBean(StatefulSessionContainer.java:969)
at com.sun.ejb.containers.EJBObjectImpl.remove(EJBObjectImpl.java:207)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invokeEJBObjectMethod(EJBObjectInvocationHandler.java:284)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:170)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:123)
at $Proxy182.remove(Unknown Source)
at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:241)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
at com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:227)
at samples.rmiiiopclient.ejb._SFSBRemoteObjRef_DynamicStub.remove(samples/rmiiiopclient/ejb/_SFSBRemoteObjRef_DynamicStub.java)
at com.s1as.e2e.richAccess.servlet.SendOrder.processRequest(SendOrder.java:141)
at com.s1as.e2e.richAccess.servlet.SendOrder.doPost(SendOrder.java:229)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:817)



 Comments   
Comment by Mahesh Kannan [ 03/Jan/11 ]

Sony, Are there any other exceptions following this exception (particularly any message that says "Caused by")?

Comment by Mahesh Kannan [ 03/Jan/11 ]

At line number 1051 in StatefulSessioncontainer, I dont see any Array access at all. The source at that line only throws EJBException(ex);

line 1051: throw new EJBException(ex);

I have asked Sony to find out if there were any other "Caused by" exception messages.

This is an EJB Container bug and not replication bug.

Since we see this only once in a 7 day run, the priority of the issue can be reduced.

Also, the message "A system exception occurred during an invocation on EJB SFSB method null " seem to indicate that the method object is null. Not sure if it is anyway related to the ArrayIndex exception.

Assigning to Marina for further evaluation.

Comment by marina vatkina [ 04/Jan/11 ]

Sony, Is monitoring on during run? Can you set ejb-container logger to FINE level and try again?

Comment by marina vatkina [ 05/Jan/11 ]

Please reopen when you have FINE logs available

Comment by sonymanuel [ 05/Jan/11 ]

Don't expect FINE logs for a stress run. We are running at 100 calls per seconds and we can't turn on FINE logging.

Generated at Tue Sep 01 16:43:45 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.