1 Reply Latest reply on May 16, 2017 3:48 AM by xfr.dev

    Wildfly warning logs : WFLYEE0006: Failed to destroy component instance

    xfr.dev

      Hi,

       

      Wildfly is emitting some warning logs when a application (using SFSB) is removed or when Wildfly is stopped :

      _____________________________________

       

      WARN  [org.jboss.as.ee] (ServerService Thread Pool -- 141) WFLYEE0006: Failed to destroy component instance  Instance of XXXX {UnknownSessionID [6652556548496969566657495254676966534850696649515166676869515449]}: javax.ejb.EJBException: java.lang.NullPointerException

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInNoTx(CMTTxInterceptor.java:213)

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:265)

          at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.notSupported(LifecycleCMTTxInterceptor.java:87)

          at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:64)

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

          at org.jboss.as.ee.component.BasicComponentInstance.destroy(BasicComponentInstance.java:125)

          at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.destroyInstance(StatefulSessionComponent.java:161)

          at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.destroyInstance(StatefulSessionComponent.java:79)

          at org.jboss.as.ejb3.cache.simple.SimpleCache.stop(SimpleCache.java:91)

          at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.done(StatefulSessionComponent.java:373)

          at org.jboss.as.ejb3.component.EJBComponent.stop(EJBComponent.java:553)

          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)

      Caused by: java.lang.NullPointerException

      _____________________________________

      It seems thats is to be related to StatefulSessionObjectReferenceImpl.isRemoved npe due to ejbComponent.getCache() returning null · GitHub. The npe come from the ejbComponent.getCache() method which returning null.

      The problem never occurred in Wilfdly 8.x but exists in 9. and 10.x.

      Does anyone has already met this problem?

      Does anyone think it is important (these are "only" warning logs)?

       

      Thanks in advance for replying,

      Regards,

       

      xfr