[webbeans-issues] [JBoss JIRA] Created: (WBRI-398) web beans impl is calling SessionObjectReference.isRemoved()/remove() for stateless/singleton bean types
Ken Saks (JIRA)
jira-events at lists.jboss.org
Sat Sep 26 13:50:49 EDT 2009
web beans impl is calling SessionObjectReference.isRemoved()/remove() for stateless/singleton bean types
--------------------------------------------------------------------------------------------------------
Key: WBRI-398
URL: https://jira.jboss.org/jira/browse/WBRI-398
Project: Web Beans
Issue Type: Bug
Components: GlassFish Integration
Environment: 1.0.0.PREVIEW4.SP1
Reporter: Ken Saks
SessionObjectReference.isRemoved() (and possibly remove() ) is being called for stateless/singleton bean types. The GlassFish implementation was throwing UnsupportedOperationException per the SPI contract, but this results in an application failure since the web beans impl is not expecting it. (Stack trace below). I temporarily changed GlassFish's implementation of SessionObjectReference to return false instead of throwing the exception so that Stateless/Singleton beans can be used with JCDI until this is fixed.
WARNING: A system exception occurred during an invocation on EJB SingletonBean method public void org.jboss.webbeans.examples.numberguess.SingletonBean.hello()
javax.ejb.EJBException
at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:4947)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:4845)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4633)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1871)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1822)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:198)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:84)
at $Proxy157.hello(Unknown Source)
at org.jboss.webbeans.examples.numberguess.__EJB31_Generated__SingletonBean__Intf____Bean__.hello(Unknown Source)
at org.jboss.webbeans.examples.numberguess.StatefulBean.init(StatefulBean.java:26)
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:984)
at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:61)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:372)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:355)
at com.sun.ejb.containers.StatefulSessionContainer.afterInstanceCreation(StatefulSessionContainer.java:717)
at com.sun.ejb.containers.StatefulSessionContainer.createEJBLocalBusinessObjectImpl(StatefulSessionContainer.java:521)
at com.sun.ejb.containers.BaseContainer.createEJBLocalBusinessObjectImpl(BaseContainer.java:2292)
at com.sun.ejb.containers.EJBLocalHomeImpl.createEJBLocalBusinessObjectImpl(EJBLocalHomeImpl.java:113)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:153)
at $Proxy154.create(Unknown Source)
at com.sun.ejb.containers.JavaGlobalJndiNamingObjectProxy.create(JavaGlobalJndiNamingObjectProxy.java:61)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:433)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.glassfish.webbeans.ejb.EjbServicesImpl.resolveEjb(EjbServicesImpl.java:93)
at org.jboss.webbeans.bean.SessionBean.createReference(SessionBean.java:393)
at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.<init>(EnterpriseBeanProxyMethodHandler.java:67)
at org.jboss.webbeans.bean.SessionBean.produce(SessionBean.java:247)
at org.jboss.webbeans.bean.SessionBean.create(SessionBean.java:218)
at org.jboss.webbeans.context.DependentContext.get(DependentContext.java:62)
at org.jboss.webbeans.BeanManagerImpl.getReference(BeanManagerImpl.java:890)
at org.jboss.webbeans.BeanManagerImpl.getReference(BeanManagerImpl.java:936)
at org.jboss.webbeans.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:958)
at org.jboss.webbeans.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:78)
at org.jboss.webbeans.util.Beans.injectBoundFields(Beans.java:543)
at org.jboss.webbeans.bean.ManagedBean$1.proceed(ManagedBean.java:136)
at org.glassfish.webbeans.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:66)
at org.jboss.webbeans.injection.InjectionContextImpl.run(InjectionContextImpl.java:47)
at org.jboss.webbeans.bean.ManagedBean.inject(ManagedBean.java:130)
at org.jboss.webbeans.bean.ManagedBean.create(ManagedBean.java:107)
at org.jboss.webbeans.context.AbstractMapContext.get(AbstractMapContext.java:97)
at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:138)
at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:96)
at org.jboss.webbeans.examples.numberguess.Game_$$_javassist_18.getNumber(Game_$$_javassist_18.java)
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 javax.el.BeanELResolver.getValue(BeanELResolver.java:302)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at com.sun.el.parser.AstValue.getValue(AstValue.java:116)
at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
at com.sun.el.parser.AstGreaterThan.getValue(AstGreaterThan.java:54)
at com.sun.el.parser.AstAnd.getValue(AstAnd.java:54)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
at org.jboss.webbeans.el.WebBeansValueExpression.getValue(WebBeansValueExpression.java:69)
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:102)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:416)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1604)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1610)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:372)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:292)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:146)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
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:637)
Caused by: java.lang.UnsupportedOperationException: ejbRef for ejb StatelessBean is not a stateful bean
at com.sun.ejb.containers.EjbContainerServicesImpl.isRemoved(EjbContainerServicesImpl.java:161)
at org.glassfish.webbeans.ejb.SessionObjectReferenceImpl.isRemoved(SessionObjectReferenceImpl.java:71)
at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:90)
at org.jboss.webbeans.examples.numberguess.StatelessLocal_$$_javassist_11.hello(StatelessLocal_$$_javassist_11.java)
at org.jboss.webbeans.examples.numberguess.SingletonBean.hello(SingletonBean.java:31)
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 org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1038)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1110)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5120)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:610)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:775)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:562)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:157)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:139)
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.AroundInvokeInterceptor.intercept(InterceptorManager.java:836)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:775)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:349)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5092)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5080)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:190)
... 93 more
Sep 26, 2009 10:20:47 AM com.sun.ejb.containers.StatefulSessionContainer createEJBLocalBusinessObjectImpl
WARNING: ejb.create_ejblocalobject_exception
Sep 26, 2009 10:20:47 AM com.sun.ejb.containers.StatefulSessionContainer createEJBLocalBusinessObjectImpl
WARNING: create ejblocal object exception
javax.ejb.EJBException
at com.sun.ejb.containers.StatefulSessionContainer.afterInstanceCreation(StatefulSessionContainer.java:719)
at com.sun.ejb.containers.StatefulSessionContainer.createEJBLocalBusinessObjectImpl(StatefulSessionContainer.java:521)
at com.sun.ejb.containers.BaseContainer.createEJBLocalBusinessObjectImpl(BaseContainer.java:2292)
at com.sun.ejb.containers.EJBLocalHomeImpl.createEJBLocalBusinessObjectImpl(EJBLocalHomeImpl.java:113)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:153)
at $Proxy154.create(Unknown Source)
at com.sun.ejb.containers.JavaGlobalJndiNamingObjectProxy.create(JavaGlobalJndiNamingObjectProxy.java:61)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:433)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.glassfish.webbeans.ejb.EjbServicesImpl.resolveEjb(EjbServicesImpl.java:93)
at org.jboss.webbeans.bean.SessionBean.createReference(SessionBean.java:393)
at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.<init>(EnterpriseBeanProxyMethodHandler.java:67)
at org.jboss.webbeans.bean.SessionBean.produce(SessionBean.java:247)
at org.jboss.webbeans.bean.SessionBean.create(SessionBean.java:218)
at org.jboss.webbeans.context.DependentContext.get(DependentContext.java:62)
at org.jboss.webbeans.BeanManagerImpl.getReference(BeanManagerImpl.java:890)
at org.jboss.webbeans.BeanManagerImpl.getReference(BeanManagerImpl.java:936)
at org.jboss.webbeans.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:958)
at org.jboss.webbeans.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:78)
at org.jboss.webbeans.util.Beans.injectBoundFields(Beans.java:543)
at org.jboss.webbeans.bean.ManagedBean$1.proceed(ManagedBean.java:136)
at org.glassfish.webbeans.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:66)
at org.jboss.webbeans.injection.InjectionContextImpl.run(InjectionContextImpl.java:47)
at org.jboss.webbeans.bean.ManagedBean.inject(ManagedBean.java:130)
at org.jboss.webbeans.bean.ManagedBean.create(ManagedBean.java:107)
at org.jboss.webbeans.context.AbstractMapContext.get(AbstractMapContext.java:97)
at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:138)
at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:96)
at org.jboss.webbeans.examples.numberguess.Game_$$_javassist_18.getNumber(Game_$$_javassist_18.java)
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 javax.el.BeanELResolver.getValue(BeanELResolver.java:302)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at com.sun.el.parser.AstValue.getValue(AstValue.java:116)
at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
at com.sun.el.parser.AstGreaterThan.getValue(AstGreaterThan.java:54)
at com.sun.el.parser.AstAnd.getValue(AstAnd.java:54)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
at org.jboss.webbeans.el.WebBeansValueExpression.getValue(WebBeansValueExpression.java:69)
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:102)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:416)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1604)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1610)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:372)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:292)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:146)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
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:637)
Caused by: javax.ejb.EJBException
at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:4947)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:4845)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4633)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1871)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1822)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:198)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:84)
at $Proxy157.hello(Unknown Source)
at org.jboss.webbeans.examples.numberguess.__EJB31_Generated__SingletonBean__Intf____Bean__.hello(Unknown Source)
at org.jboss.webbeans.examples.numberguess.StatefulBean.init(StatefulBean.java:26)
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:984)
at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:61)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:372)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:355)
at com.sun.ejb.containers.StatefulSessionContainer.afterInstanceCreation(StatefulSessionContainer.java:717)
... 80 more
Caused by: java.lang.UnsupportedOperationException: ejbRef for ejb StatelessBean is not a stateful bean
at com.sun.ejb.containers.EjbContainerServicesImpl.isRemoved(EjbContainerServicesImpl.java:161)
at org.glassfish.webbeans.ejb.SessionObjectReferenceImpl.isRemoved(SessionObjectReferenceImpl.java:71)
at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:90)
at org.jboss.webbeans.examples.numberguess.StatelessLocal_$$_javassist_11.hello(StatelessLocal_$$_javassist_11.java)
at org.jboss.webbeans.examples.numberguess.SingletonBean.hello(SingletonBean.java:31)
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 org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1038)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1110)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5120)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:610)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:775)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:562)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:157)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:139)
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.AroundInvokeInterceptor.intercept(InterceptorManager.java:836)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:775)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:349)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5092)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5080)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:190)
... 93 more
Sep 26, 2009 10:20:47 AM com.sun.enterprise.naming.impl.SerialContext lookup
SEVERE: enterprise_naming.serialctx_communication_exception
Sep 26, 2009 10:20:47 AM com.sun.enterprise.naming.impl.SerialContext lookup
SEVERE:
javax.ejb.EJBException
at com.sun.ejb.containers.StatefulSessionContainer.afterInstanceCreation(StatefulSessionContainer.java:719)
at com.sun.ejb.containers.StatefulSessionContainer.createEJBLocalBusinessObjectImpl(StatefulSessionContainer.java:521)
at com.sun.ejb.containers.BaseContainer.createEJBLocalBusinessObjectImpl(BaseContainer.java:2292)
at com.sun.ejb.containers.EJBLocalHomeImpl.createEJBLocalBusinessObjectImpl(EJBLocalHomeImpl.java:113)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:153)
at $Proxy154.create(Unknown Source)
at com.sun.ejb.containers.JavaGlobalJndiNamingObjectProxy.create(JavaGlobalJndiNamingObjectProxy.java:61)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:433)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.glassfish.webbeans.ejb.EjbServicesImpl.resolveEjb(EjbServicesImpl.java:93)
at org.jboss.webbeans.bean.SessionBean.createReference(SessionBean.java:393)
at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.<init>(EnterpriseBeanProxyMethodHandler.java:67)
at org.jboss.webbeans.bean.SessionBean.produce(SessionBean.java:247)
at org.jboss.webbeans.bean.SessionBean.create(SessionBean.java:218)
at org.jboss.webbeans.context.DependentContext.get(DependentContext.java:62)
at org.jboss.webbeans.BeanManagerImpl.getReference(BeanManagerImpl.java:890)
at org.jboss.webbeans.BeanManagerImpl.getReference(BeanManagerImpl.java:936)
at org.jboss.webbeans.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:958)
at org.jboss.webbeans.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:78)
at org.jboss.webbeans.util.Beans.injectBoundFields(Beans.java:543)
at org.jboss.webbeans.bean.ManagedBean$1.proceed(ManagedBean.java:136)
at org.glassfish.webbeans.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:66)
at org.jboss.webbeans.injection.InjectionContextImpl.run(InjectionContextImpl.java:47)
at org.jboss.webbeans.bean.ManagedBean.inject(ManagedBean.java:130)
at org.jboss.webbeans.bean.ManagedBean.create(ManagedBean.java:107)
at org.jboss.webbeans.context.AbstractMapContext.get(AbstractMapContext.java:97)
at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:138)
at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:96)
at org.jboss.webbeans.examples.numberguess.Game_$$_javassist_18.getNumber(Game_$$_javassist_18.java)
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 javax.el.BeanELResolver.getValue(BeanELResolver.java:302)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at com.sun.el.parser.AstValue.getValue(AstValue.java:116)
at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
at com.sun.el.parser.AstGreaterThan.getValue(AstGreaterThan.java:54)
at com.sun.el.parser.AstAnd.getValue(AstAnd.java:54)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
at org.jboss.webbeans.el.WebBeansValueExpression.getValue(WebBeansValueExpression.java:69)
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:102)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:416)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1604)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1610)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:372)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:292)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:146)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
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:637)
Caused by: javax.ejb.EJBException
at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:4947)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:4845)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4633)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1871)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1822)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:198)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:84)
at $Proxy157.hello(Unknown Source)
at org.jboss.webbeans.examples.numberguess.__EJB31_Generated__SingletonBean__Intf____Bean__.hello(Unknown Source)
at org.jboss.webbeans.examples.numberguess.StatefulBean.init(StatefulBean.java:26)
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:984)
at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:61)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:372)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:355)
at com.sun.ejb.containers.StatefulSessionContainer.afterInstanceCreation(StatefulSessionContainer.java:717)
... 80 more
Caused by: java.lang.UnsupportedOperationException: ejbRef for ejb StatelessBean is not a stateful bean
at com.sun.ejb.containers.EjbContainerServicesImpl.isRemoved(EjbContainerServicesImpl.java:161)
at org.glassfish.webbeans.ejb.SessionObjectReferenceImpl.isRemoved(SessionObjectReferenceImpl.java:71)
at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:90)
at org.jboss.webbeans.examples.numberguess.StatelessLocal_$$_javassist_11.hello(StatelessLocal_$$_javassist_11.java)
at org.jboss.webbeans.examples.numberguess.SingletonBean.hello(SingletonBean.java:31)
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 org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1038)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1110)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5120)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:610)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:775)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:562)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:157)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:139)
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.AroundInvokeInterceptor.intercept(InterceptorManager.java:836)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:775)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:349)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5092)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5080)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:190)
... 93 more
Sep 26, 2009 10:20:47 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
SEVERE: Error Rendering View[/home.xhtml]
javax.el.ELException: /home.xhtml @13,117 rendered="#{game.number gt game.guess and game.guess ne 0}": javax.enterprise.inject.CreationException: could not find the EJB in JNDI class org.jboss.webbeans.examples.numberguess.StatefulBean_$$_javassist_12
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:107)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:416)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1604)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1610)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:372)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:292)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:146)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
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:637)
Caused by: javax.enterprise.inject.CreationException: could not find the EJB in JNDI class org.jboss.webbeans.examples.numberguess.StatefulBean_$$_javassist_12
at org.jboss.webbeans.bean.SessionBean.produce(SessionBean.java:261)
at org.jboss.webbeans.bean.SessionBean.create(SessionBean.java:218)
at org.jboss.webbeans.context.DependentContext.get(DependentContext.java:62)
at org.jboss.webbeans.BeanManagerImpl.getReference(BeanManagerImpl.java:890)
at org.jboss.webbeans.BeanManagerImpl.getReference(BeanManagerImpl.java:936)
at org.jboss.webbeans.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:958)
at org.jboss.webbeans.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:78)
at org.jboss.webbeans.util.Beans.injectBoundFields(Beans.java:543)
at org.jboss.webbeans.bean.ManagedBean$1.proceed(ManagedBean.java:136)
at org.glassfish.webbeans.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:66)
at org.jboss.webbeans.injection.InjectionContextImpl.run(InjectionContextImpl.java:47)
at org.jboss.webbeans.bean.ManagedBean.inject(ManagedBean.java:130)
at org.jboss.webbeans.bean.ManagedBean.create(ManagedBean.java:107)
at org.jboss.webbeans.context.AbstractMapContext.get(AbstractMapContext.java:97)
at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:138)
at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:96)
at org.jboss.webbeans.examples.numberguess.Game_$$_javassist_18.getNumber(Game_$$_javassist_18.java)
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 javax.el.BeanELResolver.getValue(BeanELResolver.java:302)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at com.sun.el.parser.AstValue.getValue(AstValue.java:116)
at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
at com.sun.el.parser.AstGreaterThan.getValue(AstGreaterThan.java:54)
at com.sun.el.parser.AstAnd.getValue(AstAnd.java:54)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
at org.jboss.webbeans.el.WebBeansValueExpression.getValue(WebBeansValueExpression.java:69)
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:102)
... 37 more
Caused by: java.lang.IllegalStateException: Error resolving session object reference for ejb name class org.jboss.webbeans.examples.numberguess.StatefulBean and jndi name java:global/numberguess/StatefulBean!org.jboss.webbeans.examples.numberguess.StatefulBean
at org.glassfish.webbeans.ejb.EjbServicesImpl.resolveEjb(EjbServicesImpl.java:100)
at org.jboss.webbeans.bean.SessionBean.createReference(SessionBean.java:393)
at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.<init>(EnterpriseBeanProxyMethodHandler.java:67)
at org.jboss.webbeans.bean.SessionBean.produce(SessionBean.java:247)
... 67 more
Caused by: javax.naming.CommunicationException: Communication exception for SerialContext [Root exception is javax.ejb.EJBException]
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:462)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.glassfish.webbeans.ejb.EjbServicesImpl.resolveEjb(EjbServicesImpl.java:93)
... 70 more
Caused by: javax.ejb.EJBException
at com.sun.ejb.containers.StatefulSessionContainer.afterInstanceCreation(StatefulSessionContainer.java:719)
at com.sun.ejb.containers.StatefulSessionContainer.createEJBLocalBusinessObjectImpl(StatefulSessionContainer.java:521)
at com.sun.ejb.containers.BaseContainer.createEJBLocalBusinessObjectImpl(BaseContainer.java:2292)
at com.sun.ejb.containers.EJBLocalHomeImpl.createEJBLocalBusinessObjectImpl(EJBLocalHomeImpl.java:113)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:153)
at $Proxy154.create(Unknown Source)
at com.sun.ejb.containers.JavaGlobalJndiNamingObjectProxy.create(JavaGlobalJndiNamingObjectProxy.java:61)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:433)
... 73 more
Caused by: javax.ejb.EJBException
at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:4947)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:4845)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4633)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1871)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1822)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:198)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:84)
at $Proxy157.hello(Unknown Source)
at org.jboss.webbeans.examples.numberguess.__EJB31_Generated__SingletonBean__Intf____Bean__.hello(Unknown Source)
at org.jboss.webbeans.examples.numberguess.StatefulBean.init(StatefulBean.java:26)
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:984)
at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:61)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:372)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:355)
at com.sun.ejb.containers.StatefulSessionContainer.afterInstanceCreation(StatefulSessionContainer.java:717)
... 80 more
Caused by: java.lang.UnsupportedOperationException: ejbRef for ejb StatelessBean is not a stateful bean
at com.sun.ejb.containers.EjbContainerServicesImpl.isRemoved(EjbContainerServicesImpl.java:161)
at org.glassfish.webbeans.ejb.SessionObjectReferenceImpl.isRemoved(SessionObjectReferenceImpl.java:71)
at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:90)
at org.jboss.webbeans.examples.numberguess.StatelessLocal_$$_javassist_11.hello(StatelessLocal_$$_javassist_11.java)
at org.jboss.webbeans.examples.numberguess.SingletonBean.hello(SingletonBean.java:31)
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 org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1038)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1110)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5120)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:610)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:775)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:562)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:157)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:139)
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.AroundInvokeInterceptor.intercept(InterceptorManager.java:836)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:775)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:349)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5092)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5080)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:190)
... 93 more
Sep 26, 2009 10:20:47 AM org.apache.catalina.core.StandardWrapperValve log
WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
javax.enterprise.inject.CreationException: could not find the EJB in JNDI class org.jboss.webbeans.examples.numberguess.StatefulBean_$$_javassist_12
at org.jboss.webbeans.bean.SessionBean.produce(SessionBean.java:261)
at org.jboss.webbeans.bean.SessionBean.create(SessionBean.java:218)
at org.jboss.webbeans.context.DependentContext.get(DependentContext.java:62)
at org.jboss.webbeans.BeanManagerImpl.getReference(BeanManagerImpl.java:890)
at org.jboss.webbeans.BeanManagerImpl.getReference(BeanManagerImpl.java:936)
at org.jboss.webbeans.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:958)
at org.jboss.webbeans.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:78)
at org.jboss.webbeans.util.Beans.injectBoundFields(Beans.java:543)
at org.jboss.webbeans.bean.ManagedBean$1.proceed(ManagedBean.java:136)
at org.glassfish.webbeans.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:66)
at org.jboss.webbeans.injection.InjectionContextImpl.run(InjectionContextImpl.java:47)
at org.jboss.webbeans.bean.ManagedBean.inject(ManagedBean.java:130)
at org.jboss.webbeans.bean.ManagedBean.create(ManagedBean.java:107)
at org.jboss.webbeans.context.AbstractMapContext.get(AbstractMapContext.java:97)
at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:138)
at org.jboss.webbeans.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:96)
at org.jboss.webbeans.examples.numberguess.Game_$$_javassist_18.getNumber(Game_$$_javassist_18.java)
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 javax.el.BeanELResolver.getValue(BeanELResolver.java:302)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at com.sun.el.parser.AstValue.getValue(AstValue.java:116)
at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
at com.sun.el.parser.AstGreaterThan.getValue(AstGreaterThan.java:54)
at com.sun.el.parser.AstAnd.getValue(AstAnd.java:54)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
at org.jboss.webbeans.el.WebBeansValueExpression.getValue(WebBeansValueExpression.java:69)
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:102)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:416)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1604)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1610)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:372)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:292)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:146)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
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:637)
Caused by: java.lang.IllegalStateException: Error resolving session object reference for ejb name class org.jboss.webbeans.examples.numberguess.StatefulBean and jndi name java:global/numberguess/StatefulBean!org.jboss.webbeans.examples.numberguess.StatefulBean
at org.glassfish.webbeans.ejb.EjbServicesImpl.resolveEjb(EjbServicesImpl.java:100)
at org.jboss.webbeans.bean.SessionBean.createReference(SessionBean.java:393)
at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.<init>(EnterpriseBeanProxyMethodHandler.java:67)
at org.jboss.webbeans.bean.SessionBean.produce(SessionBean.java:247)
... 67 more
Caused by: javax.naming.CommunicationException: Communication exception for SerialContext [Root exception is javax.ejb.EJBException]
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:462)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.glassfish.webbeans.ejb.EjbServicesImpl.resolveEjb(EjbServicesImpl.java:93)
... 70 more
Caused by: javax.ejb.EJBException
at com.sun.ejb.containers.StatefulSessionContainer.afterInstanceCreation(StatefulSessionContainer.java:719)
at com.sun.ejb.containers.StatefulSessionContainer.createEJBLocalBusinessObjectImpl(StatefulSessionContainer.java:521)
at com.sun.ejb.containers.BaseContainer.createEJBLocalBusinessObjectImpl(BaseContainer.java:2292)
at com.sun.ejb.containers.EJBLocalHomeImpl.createEJBLocalBusinessObjectImpl(EJBLocalHomeImpl.java:113)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:153)
at $Proxy154.create(Unknown Source)
at com.sun.ejb.containers.JavaGlobalJndiNamingObjectProxy.create(JavaGlobalJndiNamingObjectProxy.java:61)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:433)
... 73 more
Caused by: javax.ejb.EJBException
at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:4947)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:4845)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4633)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1871)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1822)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:198)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:84)
at $Proxy157.hello(Unknown Source)
at org.jboss.webbeans.examples.numberguess.__EJB31_Generated__SingletonBean__Intf____Bean__.hello(Unknown Source)
at org.jboss.webbeans.examples.numberguess.StatefulBean.init(StatefulBean.java:26)
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:984)
at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:61)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:372)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:355)
at com.sun.ejb.containers.StatefulSessionContainer.afterInstanceCreation(StatefulSessionContainer.java:717)
... 80 more
Caused by: java.lang.UnsupportedOperationException: ejbRef for ejb StatelessBean is not a stateful bean
at com.sun.ejb.containers.EjbContainerServicesImpl.isRemoved(EjbContainerServicesImpl.java:161)
at org.glassfish.webbeans.ejb.SessionObjectReferenceImpl.isRemoved(SessionObjectReferenceImpl.java:71)
at org.jboss.webbeans.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:90)
at org.jboss.webbeans.examples.numberguess.StatelessLocal_$$_javassist_11.hello(StatelessLocal_$$_javassist_11.java)
at org.jboss.webbeans.examples.numberguess.SingletonBean.hello(SingletonBean.java:31)
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 org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1038)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1110)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5120)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:610)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:775)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:562)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:157)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:139)
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.AroundInvokeInterceptor.intercept(InterceptorManager.java:836)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:775)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:349)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5092)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5080)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:190)
... 93 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list