users@glassfish.java.net

Re: GF 3.1 - CDI error on multiple parallel requests

From: CasMeiron <casmeiron_at_gmail.com>
Date: Tue, 14 Sep 2010 08:21:28 -0300

Sorry for calling you Silvia, just now I've realized your name is *Siva.*
-------------------------------
Paulo Reis




On Tue, Sep 14, 2010 at 8:15 AM, CasMeiron <casmeiron_at_gmail.com> wrote:

> Hi Silvia,
>
> Thanks for reply. I've run my testcase again with 1.5k multiple requests so
> all the errors below are given on this test execution. When I get the
> exception my jersey client fails with status code 500 (obviously).
>
> Every time I run the test I get surprise of different kind of errors, or
> CDI is really immature yet or I'm doin' somethin' pretty bad, either way
> hope you help me =)
>
> Thanks in advance.
>
> Here we goes the full stacktrace for each exception:
>
> *SEVERE: We couldn't authenticate user 'pc'! Fatal error!*
> *java.lang.IllegalArgumentException: Can not set
> javax.enterprise.event.Event field
> br.com.bestdeal.np.redirect.gui.user.UserObject.userLoggedOutEvent to
> org.jboss.weld.servlet.HttpSessionManager_$$_WeldProxy*
> at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
> at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
> at
> sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
> at java.lang.reflect.Field.set(Field.java:657)
> at
> org.jboss.weld.introspector.jlr.WeldFieldImpl.set(WeldFieldImpl.java:95)
> at
> org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:117)
> at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:790)
> at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:802)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:178)
> at
> org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:134)
> at
> org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:47)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:172)
> at
> org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:143)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:166)
> at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:333)
> at
> org.jboss.weld.context.AbstractMapContext.get(AbstractMapContext.java:116)
> at
> org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:89)
> at
> org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
> at
> br.com.bestdeal.np.redirect.gui.user.UserObject_$$_WeldProxy.onLogin(UserObject_$$_WeldProxy.java)
> at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
> at
> org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
> at
> org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
> at
> org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
> at
> org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:198)
> at
> org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
> at
> org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:200)
> at
> org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241)
> at
> org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:216)
> at
> org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:604)
> at
> org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:597)
> at
> org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:591)
> at org.jboss.weld.event.EventImpl.fire(EventImpl.java:94)
> at
> br.com.bestdeal.np.redirect.gui.business.auth.AuthBusiness.restLogin(AuthBusiness.java:120)
> at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
> 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:1052)
> at
> org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
> at
> com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5357)
> at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
> at
> com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
> at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
> at
> org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:47)
> at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
> 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:862)
> at
> com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
> at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
> at
> com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
> at
> com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
> at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
> 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:862)
> at
> com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
> at
> com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:371)
> at
> com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5329)
> at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5317)
> at
> com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
> at
> com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
> at $Proxy157.restLogin(Unknown Source)
> at
> br.com.bestdeal.np.redirect.gui.business.auth.__EJB31_Generated__AuthBusiness__Intf____Bean__.restLogin(Unknown
> Source)
> at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
> at
> org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
> at
> org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
> at
> org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
> at
> org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:127)
> at
> org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:62)
> at
> br.com.bestdeal.np.redirect.gui.business.auth.AuthBusiness_$$_WeldProxy.restLogin(AuthBusiness_$$_WeldProxy.java)
> at
> br.com.bestdeal.np.redirect.gui.filter.RestAuthenticationFilter.doFilter(RestAuthenticationFilter.java:49)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
> 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:824)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:721)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1014)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:220)
> 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.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:530)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:511)
> at java.lang.Thread.run(Thread.java:619)
>
>
>
> *SEVERE: We couldn't authenticate user 'pc'! Fatal error!*
> *java.lang.IllegalArgumentException: Can not set
> br.com.bestdeal.np.redirect.gui.manager.EntityManagerWrapper field
> br.com.bestdeal.np.redirect.gui.user.UserObject.manager to
> org.jboss.weld.conversation.ServletConversationManager_$$_WeldProxy*
> at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
> at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
> at
> sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
> at java.lang.reflect.Field.set(Field.java:657)
> at
> org.jboss.weld.introspector.jlr.WeldFieldImpl.set(WeldFieldImpl.java:95)
> at
> org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:117)
> at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:790)
> at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:802)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:178)
> at
> org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:134)
> at
> org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:47)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:172)
> at
> org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:143)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:166)
> at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:333)
> at
> org.jboss.weld.context.AbstractMapContext.get(AbstractMapContext.java:116)
> at
> org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:89)
> at
> org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
> at
> br.com.bestdeal.np.redirect.gui.user.UserObject_$$_WeldProxy.onLogin(UserObject_$$_WeldProxy.java)
> at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
> at
> org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
> at
> org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
> at
> org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
> at
> org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:198)
> at
> org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
> at
> org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:200)
> at
> org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241)
> at
> org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:216)
> at
> org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:604)
> at
> org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:597)
> at
> org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:591)
> at org.jboss.weld.event.EventImpl.fire(EventImpl.java:94)
> at
> br.com.bestdeal.np.redirect.gui.business.auth.AuthBusiness.restLogin(AuthBusiness.java:120)
> at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
> 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:1052)
> at
> org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
> at
> com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5357)
> at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
> at
> com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
> at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
> at
> org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:47)
> at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
> 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:862)
> at
> com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
> at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
> at
> com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
> at
> com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
> at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
> 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:862)
> at
> com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
> at
> com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:371)
> at
> com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5329)
> at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5317)
> at
> com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
> at
> com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
> at $Proxy157.restLogin(Unknown Source)
> at
> br.com.bestdeal.np.redirect.gui.business.auth.__EJB31_Generated__AuthBusiness__Intf____Bean__.restLogin(Unknown
> Source)
> at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
> at
> org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
> at
> org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
> at
> org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
> at
> org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:127)
> at
> org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:62)
> at
> br.com.bestdeal.np.redirect.gui.business.auth.AuthBusiness_$$_WeldProxy.restLogin(AuthBusiness_$$_WeldProxy.java)
> at
> br.com.bestdeal.np.redirect.gui.filter.RestAuthenticationFilter.doFilter(RestAuthenticationFilter.java:49)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
> 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:824)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:721)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1014)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:220)
> 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.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:530)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:511)
> at java.lang.Thread.run(Thread.java:619)
>
>
>
> *SEVERE: WebModule[/nprd-gui]PWC1321: Error invoking requestInitialized
> method on ServletRequestListener org.jboss.weld.servlet.WeldListener*
> *java.lang.IllegalArgumentException: Can not set
> org.jboss.weld.conversation.ConversationImpl field
> org.jboss.weld.conversation.AbstractConversationManager.conversation to
> org.jboss.weld.conversation.ServletConversationManager*
> at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
> at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
> at
> sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
> at java.lang.reflect.Field.set(Field.java:657)
> at
> org.jboss.weld.introspector.jlr.WeldFieldImpl.set(WeldFieldImpl.java:95)
> at
> org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:117)
> at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:790)
> at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:802)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:178)
> at
> org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:51)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:172)
> at
> org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:143)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:166)
> at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:333)
> at
> org.jboss.weld.context.AbstractMapContext.get(AbstractMapContext.java:116)
> at
> org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:89)
> at
> org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
> at
> org.jboss.weld.conversation.ServletConversationManager_$$_WeldProxy.setupConversation(ServletConversationManager_$$_WeldProxy.java)
> at
> org.jboss.weld.servlet.ServletLifecycle.restoreConversationContext(ServletLifecycle.java:129)
> at
> org.jboss.weld.servlet.ServletLifecycle.beginRequest(ServletLifecycle.java:102)
> at
> org.jboss.weld.servlet.WeldListener.requestInitialized(WeldListener.java:182)
> at
> org.apache.catalina.core.StandardContext.fireRequestInitializedEvent(StandardContext.java:4564)
> at
> org.apache.catalina.core.StandardContextValve.preInvoke(StandardContextValve.java:352)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
> 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:824)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:721)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1014)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:220)
> 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.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:530)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:511)
> at java.lang.Thread.run(Thread.java:619)
>
>
> *SEVERE: WebModule[/nprd-gui]PWC1321: Error invoking requestInitialized
> method on ServletRequestListener org.jboss.weld.servlet.WeldListener*
> *java.lang.IllegalArgumentException: Can not set
> org.jboss.weld.servlet.HttpSessionManager field *org.jboss.weld.conversation.ServletConversationManager.httpSessionManager
> to org.jboss.weld.conversation.ServletConversationManager
> at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
> at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
> at
> sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
> at java.lang.reflect.Field.set(Field.java:657)
> at
> org.jboss.weld.introspector.jlr.WeldFieldImpl.set(WeldFieldImpl.java:95)
> at
> org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:117)
> at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:790)
> at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:802)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:178)
> at
> org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:51)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:172)
> at
> org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:143)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:166)
> at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:333)
> at
> org.jboss.weld.context.AbstractMapContext.get(AbstractMapContext.java:116)
> at
> org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:89)
> at
> org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
> at
> org.jboss.weld.conversation.ServletConversationManager_$$_WeldProxy.setupConversation(ServletConversationManager_$$_WeldProxy.java)
> at
> org.jboss.weld.servlet.ServletLifecycle.restoreConversationContext(ServletLifecycle.java:129)
> at
> org.jboss.weld.servlet.ServletLifecycle.beginRequest(ServletLifecycle.java:102)
> at
> org.jboss.weld.servlet.WeldListener.requestInitialized(WeldListener.java:182)
> at
> org.apache.catalina.core.StandardContext.fireRequestInitializedEvent(StandardContext.java:4564)
> at
> org.apache.catalina.core.StandardContextValve.preInvoke(StandardContextValve.java:352)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
> 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:824)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:721)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1014)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:220)
> 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.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:530)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:511)
> at java.lang.Thread.run(Thread.java:619)
>
>
> *SEVERE: WebModule[/nprd-gui]PWC1321: Error invoking requestInitialized
> method on ServletRequestListener org.jboss.weld.servlet.WeldListener*
> *java.lang.ClassCastException:
> br.com.bestdeal.np.redirect.gui.manager.AppEntityManagerWrapper_$$_WeldProxy
> cannot be cast to org.jboss.weld.servlet.HttpSessionManager*
> at
> org.jboss.weld.servlet.BeanProvider.httpSessionManager(BeanProvider.java:60)
> at
> org.jboss.weld.servlet.ServletLifecycle.restoreSessionContext(ServletLifecycle.java:121)
> at
> org.jboss.weld.servlet.ServletLifecycle.beginRequest(ServletLifecycle.java:101)
> at
> org.jboss.weld.servlet.WeldListener.requestInitialized(WeldListener.java:182)
> at
> org.apache.catalina.core.StandardContext.fireRequestInitializedEvent(StandardContext.java:4564)
> at
> org.apache.catalina.core.StandardContextValve.preInvoke(StandardContextValve.java:352)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
> 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:824)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:721)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1014)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:220)
> 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.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:530)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:511)
> at java.lang.Thread.run(Thread.java:619)
>
>
> *SEVERE: WebModule[/nprd-gui]PWC1322: Error invoking requestDestroyed
> method on ServletRequestListener org.jboss.weld.servlet.WeldListener*
> *java.lang.IllegalArgumentException: Can not set
> org.jboss.weld.conversation.ConversationManager2 field
> org.jboss.weld.conversation.ConversationImpl.conversationManager to
> org.jboss.weld.conversation.ConversationImpl*
> at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
> at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
> at
> sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
> at java.lang.reflect.Field.set(Field.java:657)
> at
> org.jboss.weld.introspector.jlr.WeldFieldImpl.set(WeldFieldImpl.java:95)
> at
> org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:117)
> at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:790)
> at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:802)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:178)
> at
> org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:51)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:172)
> at
> org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:143)
> at
> org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:166)
> at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:333)
> at
> org.jboss.weld.context.AbstractMapContext.get(AbstractMapContext.java:116)
> at
> org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:89)
> at
> org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
> at
> org.jboss.weld.conversation.ConversationImpl_$$_WeldProxy.isTransient(ConversationImpl_$$_WeldProxy.java)
> at
> org.jboss.weld.conversation.AbstractConversationManager.teardownConversation(AbstractConversationManager.java:183)
> at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
> at
> org.jboss.weld.conversation.ServletConversationManager_$$_WeldProxy.teardownConversation(ServletConversationManager_$$_WeldProxy.java)
> at
> org.jboss.weld.servlet.ServletLifecycle.teardownConversation(ServletLifecycle.java:199)
> at
> org.jboss.weld.servlet.ServletLifecycle.endRequest(ServletLifecycle.java:181)
> at
> org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:159)
> at
> org.apache.catalina.core.StandardContext.fireRequestDestroyedEvent(StandardContext.java:4601)
> at
> org.apache.catalina.core.StandardContextValve.postInvoke(StandardContextValve.java:223)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:656)
> 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:824)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:721)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1014)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:220)
> 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.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:530)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:511)
> at java.lang.Thread.run(Thread.java:619)
>
>
> -------------------------------
> Paulo Reis
>
>
>
>
>
> On Tue, Sep 14, 2010 at 7:33 AM, Sivakumar Thyagarajan <
> Sivakumar.Thyagarajan_at_sun.com> wrote:
>
>> On Tuesday 14 September 2010 02:51 AM, CasMeiron wrote:
>>
>>> Hi guys,
>>>
>>> When I send multiple requests to my server (invoking RestfulServices
>>> through jersey client) GF gets crazy, everytime I get some random errors
>>> about CDI, like:
>>>
>>> SEVERE: WebModule[/nprd-gui]PWC1321: Error invoking requestInitialized
>>> method on ServletRequestListener org.jboss.weld.servlet.WeldListener
>>> java.lang.ClassCastException:
>>> org.jboss.weld.conversation.ServletConversationManager_$$_WeldProxy
>>> cannot be cast to org.jboss.weld.servlet.HttpSessionManager
>>>
>>
>> Are there any other detailed stack traces (that outline the location of
>> the ClassCastException in the trace) in the server.log? If yes, could you
>> please provide them?
>>
>> Thanks
>> --Siva.
>>
>>
>>
>>> SEVERE: WebModule[/nprd-gui]PWC1322: Error invoking requestDestroyed
>>> method on ServletRequestListener org.jboss.weld.servlet.WeldListener
>>> java.lang.ClassCastException:
>>> org.jboss.weld.servlet.HttpSessionManager_$$_WeldProxy cannot be cast to
>>> org.jboss.weld.conversation.ConversationManager2
>>>
>>> SEVERE: WebModule[/nprd-gui]PWC1321: Error invoking requestInitialized
>>> method on ServletRequestListener org.jboss.weld.servlet.WeldListener
>>> java.lang.IllegalArgumentException: Can not set
>>> org.jboss.weld.conversation.ConversationIdGenerator field
>>>
>>> org.jboss.weld.conversation.AbstractConversationManager.conversationIdGenerator
>>> to org.jboss.weld.conversation.ServletConversationManager
>>>
>>> SEVERE: We couldn't authenticate user 'pc'! Fatal error!
>>> java.lang.IllegalArgumentException: Can not set
>>> br.com.bestdeal.np.redirect.gui.manager.EntityManagerWrapper field
>>> br.com.bestdeal.np.redirect.gui.user.UserObject.manager to
>>> org.jboss.weld.servlet.HttpSessionManager_$$_WeldProxy
>>>
>>> I've tried 500 parallel requests and every time those errors appears
>>> (randomly, some time I get only 1, 2 or all of them).
>>>
>>> Seems the server get overloaded and can't do the normal injections any
>>> more. Whether I try with less requests (< 100) it's very difficult to
>>> get any of the above errors.
>>>
>>> What's goin' on?
>>>
>>> Thanks.
>>>
>>> -------------------------------
>>> Paulo Reis
>>>
>>>
>>>
>>
>