2 Replies Latest reply on Mar 22, 2012 9:49 AM by qtm

    Live-backup warning messages

    qtm Newbie



      Using Jboss 7.1.1 (HornetQ 2.2.13) I'm setting up a simple Live-Backup configuration(a shared folder on localhost, both servers on localhost). I'm getting the following warnings in the back-up server console:


      (Periodic Recovery) ARJUNA016027: Local XARecoveryModule.xaRecovery got XA exception XAException.XAER_RMERR: javax.transaction.xa.XAException: Error trying to connect to any providers for xa recovery

          at org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.getDelegate(HornetQXAResourceWrapper.java:275) [hornetq-jms-2.2.13.Final.jar:]

          at org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.recover(HornetQXAResourceWrapper.java:77) [hornetq-jms-2.2.13.Final.jar:]

          at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecovery(XARecoveryModule.java:503) [jbossjts-4.16.2.Final.jar:]

          at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.resourceInitiatedRecoveryForRecoveryHelpers(XARecoveryModule.java:471) [jbossjts-4.16.2.Final.jar:]

          at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.bottomUpRecovery(XARecoveryModule.java:385) [jbossjts-4.16.2.Final.jar:]

          at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkSecondPass(XARecoveryModule.java:166) [jbossjts-4.16.2.Final.jar:]

          at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:789) [jbossjts-4.16.2.Final.jar:]

          at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:371) [jbossjts-4.16.2.Final.jar:]

      Caused by: HornetQException[errorCode=2 message=null]

          at org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.connect(HornetQXAResourceWrapper.java:351) [hornetq-jms-2.2.13.Final.jar:]

          at org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.getDelegate(HornetQXAResourceWrapper.java:251) [hornetq-jms-2.2.13.Final.jar:]

          ... 7 more




      WARN  [org.hornetq.core.server.cluster.impl.BroadcastGroupImpl] (Activation for server HornetQServerImpl::serverUUID=58899408-71a1-11e1-9dda-b8ac6f2ea395) local-bind-address specified for broadcast group but no local-bind-port specified so socket will NOT be bound to a local address/port

      WARN  [org.hornetq.core.client.impl.ClientSessionFactoryImpl] (Thread-1 (HornetQ-client-global-threads-33379524)) Failed to connect to server.

      WARN  [org.hornetq.core.client.impl.ServerLocatorImpl] (Thread-1 (HornetQ-client-global-threads-33379524)) null



      Are they harmful or not?


      Also, with this configuration if I get a connection from live, close live - > back-up becomes live, I can' use that connection anymore. What's wrong with my configuration?

        • 1. Re: Live-backup warning messages
          Andy Taylor Master

          you must have a pooled connection factory on the backup server which you dont need and shouldnt have as no resources will be deployed

          1 of 1 people found this helpful
          • 2. Re: Live-backup warning messages
            qtm Newbie


            I've managed to get rid of the warning messages -> removed the pooled cf from the backup, also removed the broadcast stuff since I'm using static discovery. I've added the ha and reconnect-attempts attributes to my cf and everything works almost as expected. The connection is moved nicely from live to backup and backwards. The only problem I have is that the second fail-over loses track of the hornetq.management queue.


            I've attached my remote code(I'm displaying queue messages for a queue and queue names) and configs.


            Steps to reproduce:

            1. Live + Backup up -> everything ok , messages ok, queue names ok.

            2. Live -down, Backup becomes live -> all ok

            3. Live up again, backup becomes a back-up again -> all ok, but when live starts, in the back-up I'm getting the following warning:

            13:43:49,158 WARN  [org.hornetq.core.server.management.impl.ManagementServiceImpl] (Thread-80) On ManagementService stop, there are 6 unexpected registered MBeans: [jms.queue.testQueue, jms.server, jms.queue.testQueue2, jms.connectionfactory.InVmConnectionFactory, jms.topic.testTopic, jms.connectionfactory.RemoteConnectionFactory]

            4. live down -> back-up live -> messages displayed ok, queue names not. It doesn't display any of them.