Hi,
I'm getting this exception thrown in my Singleton bean:
WFLYEE0043: Component is stopped: java.lang.IllegalStateException: WFLYEE0043: Component is stopped
at org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:110)
at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:194)
at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
The singleton's task is to create and maintain listeners for external message queues. When a listener obtains a new message it calls a method on an injected Stateless EJB. The above exception occurs when the method is called.
So far I have only observed this behavior on my local PC after a longer running time. So it may be performance related. The application server is running fine outside of this, no other crashes, no anomalies.
I'm not quite sure what's happening here. Is the Stateless EJB being destroyed/stopped or is it the Singleton bean? What I do know is that a new singleton bean is created when this happens, since the message is successfully processed milliseconds later in a new bean, according to logs.
Thanks