Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8343

NullPointerException in org.jboss.as.weld.ejb.StatefulSessionObjectReferenceImpl NPE

    XMLWordPrintable

Details

    Description

      An NPE can be found at the following location in a few circumstances:

      MSC000004: Failure during stop of service jboss.deployment.unit."17ef036e-b6a1-4660-93b8-d4e55066057d.jar".WeldStartService: java.lang.NullPointerException
              at org.jboss.as.weld.ejb.StatefulSessionObjectReferenceImpl.isRemoved(StatefulSessionObjectReferenceImpl.java:134)
              at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:111)
              at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)
              at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100)
              at org.jboss.as.test.integration.weld.ejb.multipleviews.EntertainmentDevice$MusicPlayer$1279946549$Proxy$_$$_Weld$EnterpriseProxy$.destroy(Unknown Source)
              at org.jboss.weld.bean.SessionBean.destroy(SessionBean.java:162)
              at org.jboss.weld.util.bean.IsolatedForwardingBean.destroy(IsolatedForwardingBean.java:50)
              at org.jboss.weld.context.AbstractContext.destroyContextualInstance(AbstractContext.java:139)
              at org.jboss.weld.context.AbstractContext.destroy(AbstractContext.java:153)
              at org.jboss.weld.context.AbstractSharedContext.destroy(AbstractSharedContext.java:61)
              at org.jboss.weld.context.AbstractSharedContext.invalidate(AbstractSharedContext.java:56)
              at org.jboss.weld.bootstrap.WeldRuntime.shutdown(WeldRuntime.java:56)
              at org.jboss.weld.bootstrap.WeldBootstrap.shutdown(WeldBootstrap.java:113)
              at org.jboss.as.weld.WeldStartService.stop(WeldStartService.java:128)
              at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:2150)
              at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:2101)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      
      WFLYEE0006: Failed to destroy component instance  Instance of BMTEPCStatefulBean {UUIDSessionID [37f90331-65e4-4d7e-a5a8-f08e2ec0a509]}: java.lang.NullPointerException
              at org.jboss.as.weld.ejb.StatefulSessionObjectReferenceImpl.isRemoved(StatefulSessionObjectReferenceImpl.java:134)
              at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:111)
              at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)
              at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100)
              at org.jboss.as.test.integration.jpa.epcpropagation.unsync.CMTPCStatefulBean$Proxy$_$$_Weld$EnterpriseProxy$.destroy(Unknown Source)
              at org.jboss.weld.bean.SessionBean.destroy(SessionBean.java:162)
              at org.jboss.weld.util.bean.IsolatedForwardingBean.destroy(IsolatedForwardingBean.java:50)
              at org.jboss.weld.context.CreationalContextImpl.destroy(CreationalContextImpl.java:142)
              at org.jboss.weld.context.CreationalContextImpl.release(CreationalContextImpl.java:130)
              at org.jboss.weld.context.CreationalContextImpl.release(CreationalContextImpl.java:121)
              at org.jboss.as.weld.injection.WeldManagedReferenceFactory$WeldManagedReference.release(WeldManagedReferenceFactory.java:70)
              at org.jboss.as.ee.component.ManagedReferenceReleaseInterceptor.processInvocation(ManagedReferenceReleaseInterceptor.java:60)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
              at org.jboss.as.ee.component.ManagedReferenceReleaseInterceptor.processInvocation(ManagedReferenceReleaseInterceptor.java:56)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
              at org.jboss.as.ee.component.ManagedReferenceReleaseInterceptor.processInvocation(ManagedReferenceReleaseInterceptor.java:56)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
              at org.jboss.as.ee.component.ManagedReferenceReleaseInterceptor.processInvocation(ManagedReferenceReleaseInterceptor.java:56)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
              at org.jboss.as.jpa.interceptor.SFSBDestroyInterceptor.processInvocation(SFSBDestroyInterceptor.java:49)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
              at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
              at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
              at org.jboss.as.ee.component.BasicComponentInstance.destroy(BasicComponentInstance.java:125)
              at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.destroyInstance(StatefulSessionComponent.java:159)
              at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.destroyInstance(StatefulSessionComponent.java:77)
              at org.jboss.as.ejb3.cache.simple.SimpleCache.stop(SimpleCache.java:91)
              at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.done(StatefulSessionComponent.java:367)
              at org.jboss.as.ejb3.component.EJBComponent.stop(EJBComponent.java:596)
              at org.jboss.as.ee.component.ComponentStartService$2.run(ComponentStartService.java:78)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
              at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      

      Both of these exceptions were found in the output of the basic integration test suite.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: