Jeff Mesnil created ARTEMIS-160:
-----------------------------------

             Summary: After failback backup prints warnings to log
                 Key: ARTEMIS-160
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-160
             Project: ActiveMQ Artemis
          Issue Type: Bug
    Affects Versions: 1.0.0
            Reporter: Jeff Mesnil


We integrate Artemis in our app server.

When the artemis server is stopped, we want to unregister any JNDI bindings for 
the JMS resources.
For failback, the only way to detect that the artemis server is stopped is to 
use the ActivateCallback callback on Artemis *core* server. There is no way to 
be notified when the JMS server (wrapping the core server) is stopped.

This leads to a window where we remove JNDI bindings from the JMS server before 
it is deactivated but the actual operations is performed after it was 
deactivated and the server prints WARNING logs:

{noformat}
15:34:59,123 WARN [org.wildfly.extension.messaging-activemq] (ServerService 
Thread Pool – 4) WFLYMSGAMQ0004: Failed to destroy queue: ExpiryQueue: 
java.lang.IllegalStateException: Cannot access JMS Server, core server is not 
yet active
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.checkInitialised(JMSServerManagerImpl.java:1640)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.access$1100(JMSServerManagerImpl.java:101)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl$3.runException(JMSServerManagerImpl.java:752)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.runAfterActive(JMSServerManagerImpl.java:1847)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.removeQueueFromBindingRegistry(JMSServerManagerImpl.java:741)
at 
org.wildfly.extension.messaging.activemq.jms.JMSQueueService$2.run(JMSQueueService.java:101)
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)
15:34:59,123 WARN [org.wildfly.extension.messaging-activemq] (ServerService 
Thread Pool – 68) WFLYMSGAMQ0004: Failed to destroy queue: AsyncQueue: 
java.lang.IllegalStateException: Cannot access JMS Server, core server is not 
yet active
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.checkInitialised(JMSServerManagerImpl.java:1640)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.access$1100(JMSServerManagerImpl.java:101)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl$3.runException(JMSServerManagerImpl.java:752)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.runAfterActive(JMSServerManagerImpl.java:1847)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.removeQueueFromBindingRegistry(JMSServerManagerImpl.java:741)
at 
org.wildfly.extension.messaging.activemq.jms.JMSQueueService$2.run(JMSQueueService.java:101)
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)
15:34:59,123 WARN [org.wildfly.extension.messaging-activemq] (ServerService 
Thread Pool – 9) WFLYMSGAMQ0004: Failed to destroy queue: DLQ: 
java.lang.IllegalStateException: Cannot access JMS Server, core server is not 
yet active
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.checkInitialised(JMSServerManagerImpl.java:1640)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.access$1100(JMSServerManagerImpl.java:101)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl$3.runException(JMSServerManagerImpl.java:752)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.runAfterActive(JMSServerManagerImpl.java:1847)
at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.removeQueueFromBindingRegistry(JMSServerManagerImpl.java:741)
at 
org.wildfly.extension.messaging.activemq.jms.JMSQueueService$2.run(JMSQueueService.java:101)
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)
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to