java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Java.net JIRA | sonialiu | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    OS: solaris10 build: 09/08 nightly build Steps to reproduce the bug: 1. Install V3. start domain 2. Checkout SQE workspace cvs co appserver-sqe/bootstrap.xml (CVSROOT: :pserver:<user>@redcvs.red.iplanet.com:/m/jws) cd appserver-sqe ant -f bootstrap.xml co-security 3.set env variables S1AS_HOME <as install dir> SPS_HOME <appserver-sqe> ANT_HOME <I used ant 1.6.5> JAVA_HOME <I used jdk1.6.0_16> 4. cd appserver-sqe/pe/security/as7, run "ant setup" 5. cd appserver-sqe/pe/security/as7/ssl, run "ant all" The test contains two test cases. The first one passed and the second one failed. I checked server.log and found an exception: [#|2009-09-14T16:04:39.146-0700|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=22;_ThreadName=Thread-2;|Started bundle org.glassfish.connectors.runtime [28]|#] [#|2009-09-14T16:04:39.756-0700|INFO|glassfish|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=22;_ThreadName=Thread-2;|BEAN NODE NAME: sec-sslvalidgroupApp/sec-sslvalidgroup-ejb\.jar/ConverterEJB|#] [#|2009-09-14T16:04:39.912-0700|SEVERE|glassfish|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=22;_ThreadName=Thread-2;|[**EjbMonitoringUtils**] Could not register listener for appName: sec-sslvalidgroupApp; modName: sec-sslvalidgroup-ejb_jar; beanName: ConverterEJB java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at org.glassfish.admin.monitor.StatsProviderRegistry.disableStatsProvider(StatsProviderRegistry.java:168) at org.glassfish.admin.monitor.StatsProviderManagerDelegateImpl.register(StatsProviderManagerDelegateImpl.java:144) at org.glassfish.external.probe.provider.StatsProviderManager.register(StatsProviderManager.java:61) at com.sun.ejb.monitoring.stats.EjbMonitoringUtils.registerComponent(EjbMonitoringUtils.java:70) at com.sun.ejb.monitoring.stats.EjbMonitoringStatsProvider.register(EjbMonitoringStatsProvider.java:95) at com.sun.ejb.containers.BaseContainer.createMonitoringRegistryMediator(BaseContainer.java:5141) at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:461) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:147) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:141) at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99) at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:191) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:175) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63) at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:157) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:194) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:310) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:174) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270) at com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:418) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:505) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:138) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:332) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:184) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:215) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:752) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:660) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:911) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:164) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379) at com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360) at java.lang.Thread.run(Thread.java:619) |#] -- The full server.log and client side log are attached.

    Java.net JIRA | 7 years ago | sonialiu
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    v3 prelude b28c In a singleton with container-managed transaction, its post-construct method should have transaction attribute Required (or RequiresNew), and its transaction context is independent of that of any business methods. But the actual behavior is like this: Singleton is lazily initialized and its post-construct is not called till the first business method invocation. If this business method has no client transaction context (tx attr RequiresNew), there is no transaction context in singleton post-construct method. When doing a EntityManager persist, I got javax.persistence.TransactionRequiredException. If this business method has a client transaction context (tx attr Required), there is a transaction context in post-construct, and no error from EntityManager persist operation. But the data does not exist in table after post-construct and business method invocation. It seems the transaction inside post-construct is silently ended without commit nor rollback. Adding a flush after persist made no difference. Stacktrace for the first symptom: [#|2008-11-10T15:07:46.946-0500|FINE|sun-glassfish|org.eclipse.persistence.session.file:/home/cf126330/prelude/glassfish/domains/domain1/applications/ejblite_tx_cm_singleton_rw_ejblitejsp_vehicle_web/WEB-INF/classes/-ejblite-pu.sql|_ThreadID=15;_ThreadName=Thread-4;ClassName=null;MethodName=null;|SELECT ID, PRICE, BRANDNAME FROM COFFEE WHERE (ID = ?) bind => [0]|#] [#|2008-11-10T15:07:46.948-0500|INFO|sun-glassfish|javax.enterprise.system.container.ejb|_ThreadID=15;_ThreadName=Thread-4;|EJB5070: Exception creating stateless session bean : [{0}] javax.persistence.TransactionRequiredException at com.sun.enterprise.container.common.impl.EntityManagerWrapper.doTxRequiredCheck(EntityManagerWrapper.java:152) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.doTransactionScopedTxCheck(EntityManagerWrapper.java:134) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.persist(EntityManagerWrapper.java:252) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWTxBeanBase.updatePersist(RWTxBeanBase.java:60) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.TxBean.postConstruct(TxBean.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:685) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:64) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:209) at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:540) at com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:85) at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:768) at com.sun.ejb.containers.SingletonContainer.instantiateSingletonInstance(SingletonContainer.java:87) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at com.sun.ejb.containers.SingletonContainer._getContext(SingletonContainer.java:136) at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1834) at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1386) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:185) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy104.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TxBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWTestBeanBase0.requiredNoExistingTransaction(RWTestBeanBase0.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:3161) at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4269) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:187) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy103.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TestBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWClientBase.requiredNoExistingTransaction(RWClientBase.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.runTestInVehicle(EJBLiteClientBase.java:167) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.getStatus(EJBLiteClientBase.java:86) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.EJBLiteJSPTag.doTag(EJBLiteJSPTag.java:40) at org.apache.jsp.ejblitejsp_005fvehicle_jsp._jspService(ejblitejsp_005fvehicle_jsp.java from :79) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) |#] [#|2008-11-10T15:07:46.950-0500|INFO|sun-glassfish|javax.enterprise.system.container.ejb|_ThreadID=15;_ThreadName=Thread-4;TxBean;|EJB5018: An exception was thrown during an ejb invocation on [TxBean]|#] [#|2008-11-10T15:07:46.950-0500|INFO|sun-glassfish|javax.enterprise.system.container.ejb|_ThreadID=15;_ThreadName=Thread-4;| javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB javax.ejb.CreateException: Could not create stateless EJB at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:548) at com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:85) at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:768) at com.sun.ejb.containers.SingletonContainer.instantiateSingletonInstance(SingletonContainer.java:87) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at com.sun.ejb.containers.SingletonContainer._getContext(SingletonContainer.java:136) at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1834) at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1386) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:185) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy104.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TxBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWTestBeanBase0.requiredNoExistingTransaction(RWTestBeanBase0.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:3161) at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4269) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:187) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy103.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TestBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWClientBase.requiredNoExistingTransaction(RWClientBase.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.runTestInVehicle(EJBLiteClientBase.java:167) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.getStatus(EJBLiteClientBase.java:86) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.EJBLiteJSPTag.doTag(EJBLiteJSPTag.java:40) at org.apache.jsp.ejblitejsp_005fvehicle_jsp._jspService(ejblitejsp_005fvehicle_jsp.java from :79) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) Caused by: javax.persistence.TransactionRequiredException at com.sun.enterprise.container.common.impl.EntityManagerWrapper.doTxRequiredCheck(EntityManagerWrapper.java:152) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.doTransactionScopedTxCheck(EntityManagerWrapper.java:134) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.persist(EntityManagerWrapper.java:252) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWTxBeanBase.updatePersist(RWTxBeanBase.java:60) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.TxBean.postConstruct(TxBean.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:685) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:64) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:209) at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:540) ... 70 more javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:770) at com.sun.ejb.containers.SingletonContainer.instantiateSingletonInstance(SingletonContainer.java:87) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at com.sun.ejb.containers.SingletonContainer._getContext(SingletonContainer.java:136) at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1834) at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1386) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:185) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy104.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TxBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWTestBeanBase0.requiredNoExistingTransaction(RWTestBeanBase0.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:3161) at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4269) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:187) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy103.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TestBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWClientBase.requiredNoExistingTransaction(RWClientBase.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.runTestInVehicle(EJBLiteClientBase.java:167) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.getStatus(EJBLiteClientBase.java:86) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.EJBLiteJSPTag.doTag(EJBLiteJSPTag.java:40) at org.apache.jsp.ejblitejsp_005fvehicle_jsp._jspService(ejblitejsp_005fvehicle_jsp.java from :79) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) |#]

    Java.net JIRA | 8 years ago | Cheng Fang
    javax.ejb.CreateException: Could not create stateless EJB at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:548) at com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:85) at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:768) at com.sun.ejb.containers.SingletonContainer.instantiateSingletonInstance(SingletonContainer.java:87) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at com.sun.ejb.containers.SingletonContainer._getContext(SingletonContainer.java:136)
  3. 0

    payara-embedded-web: java.lang.NoClassDefFoundError: fish/payara/nucleus/requesttracing/RequestTracingService

    GitHub | 6 months ago | gustavomassa
    java.lang.NoClassDefFoundError: fish/payara/nucleus/requesttracing/RequestTracingService
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    using the class.forName in the session bean

    Oracle Community | 1 decade ago | 843830
    java.lang.reflect.InvocationTargetException
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    Index: 0, Size: 0

    at java.util.ArrayList.RangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.RangeCheck(ArrayList.java:547)
    2. java.util.ArrayList.get(ArrayList.java:322)
    2 frames
  3. Glassfish Admin
    StatsProviderManagerDelegateImpl.register
    1. org.glassfish.admin.monitor.StatsProviderRegistry.disableStatsProvider(StatsProviderRegistry.java:168)
    2. org.glassfish.admin.monitor.StatsProviderManagerDelegateImpl.register(StatsProviderManagerDelegateImpl.java:144)
    2 frames
  4. management-api
    StatsProviderManager.register
    1. org.glassfish.external.probe.provider.StatsProviderManager.register(StatsProviderManager.java:61)
    1 frame
  5. Embedded GlassFish Web
    EjbDeployer.load
    1. com.sun.ejb.monitoring.stats.EjbMonitoringUtils.registerComponent(EjbMonitoringUtils.java:70)
    2. com.sun.ejb.monitoring.stats.EjbMonitoringStatsProvider.register(EjbMonitoringStatsProvider.java:95)
    3. com.sun.ejb.containers.BaseContainer.createMonitoringRegistryMediator(BaseContainer.java:5141)
    4. com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:461)
    5. com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:147)
    6. com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:141)
    7. com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99)
    8. org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:191)
    9. org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:175)
    10. org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
    10 frames
  6. Private APIs of Glassfish
    ApplicationInfo.load
    1. org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:157)
    2. org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:194)
    2 frames
  7. Kernel Classes
    ApplicationLifecycle.deploy
    1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:310)
    2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:174)
    2 frames
  8. Embedded GlassFish Web
    DeployCommand.execute
    1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
    1 frame
  9. Kernel Classes
    AdminAdapter.service
    1. com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403)
    2. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:418)
    3. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:505)
    4. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:138)
    5. com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:332)
    6. com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:184)
    6 frames
  10. Grizzly WS
    GrizzlyAdapter.service
    1. com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
    1 frame
  11. Kernel Classes
    ContainerMapper.service
    1. com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
    2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:215)
    2 frames
  12. Grizzly WS
    FixedThreadPool$BasicWorker.run
    1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:752)
    2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:660)
    3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:911)
    4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:164)
    5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    11. com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    12. com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379)
    13. com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360)
    13 frames
  13. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame