7 Replies Latest reply on Oct 16, 2013 9:54 AM by ataylor

    Exception after setup hornetq live/backup on soa-p 5.3.1 (static connectors)

    boomsurf

      Hello

       

      Sorry if I used the wrong forum but this is my first time I'm here :-)

       

      I followed the instructions on how to setup a live - backup hornetq server. Because in the past we've had problems in our network with UDP packets, we switched to use static connectors on both nodes.

       

            <connector name="netty-backup">

               <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>

               <param key="host"  value="192.168.2.60"/>

               <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>

            </connector>

      ......

         <cluster-connections>
            <cluster-connection name="my-cluster">
               <address>jms</address> 
               <connector-ref>netty</connector-ref>

              <static-connectors>
                      <connector-ref>netty-backup</connector-ref>
              </static-connectors>

            <!--  <discovery-group-ref discovery-group-name="dg-group1"/> -->
            </cluster-connection>
         </cluster-connections>

       

      When I startup the server now, I get several error messages like the following on the backup node regarding queues that are used/defined inside /jbpm.esb/hornetq-jms.xml. I also saw errors when hornetq uses UDP instead of TCP.

       

      2013-10-14 15:20:42,177 INFO  [org.hornetq.ra.inflow.HornetQActivation] (WorkManager(2)-3) Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@23f7abc0 destination=queue/JbpmCommandQueue destinationType=javax.xml.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15)

      2013-10-14 15:20:42,178 INFO  [org.hornetq.ra.inflow.HornetQActivation] (WorkManager(2)-3) Unable to retrieve queue/JbpmCommandQueue from JNDI. Creating a new javax.jms.Queue named "JbpmCommandQueue" to be used by the MDB.

      2013-10-14 15:20:42,178 ERROR [org.hornetq.ra.inflow.HornetQActivation] (WorkManager(2)-3) Unable to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@23f7abc0 destination=queue/JbpmCommandQueue destinationType=javax.xml.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15)

      HornetQException[errorCode=2 message=Cannot connect to server(s). Tried with all available servers.]

      at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:785)

      at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:314)

      at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:599)

      at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:642)

      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)

      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      at java.lang.Thread.run(Thread.java:724)

      2013-10-14 15:20:42,188 INFO  [org.hornetq.ra.inflow.HornetQActivation] (WorkManager(2)-4) Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@23f7abc0 destination=queue/JbpmTimerQueue destinationType=javax.xml.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15)

      2013-10-14 15:20:42,188 INFO  [org.hornetq.ra.inflow.HornetQActivation] (WorkManager(2)-4) Unable to retrieve queue/JbpmTimerQueue from JNDI. Creating a new javax.jms.Queue named "JbpmTimerQueue" to be used by the MDB.

      2013-10-14 15:20:42,188 ERROR [org.hornetq.ra.inflow.HornetQActivation] (WorkManager(2)-4) Unable to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@23f7abc0 destination=queue/JbpmTimerQueue destinationType=javax.xml.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15)

      HornetQException[errorCode=2 message=Cannot connect to server(s). Tried with all available servers.]

      at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:785)

      at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:314)

      at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:599)

      at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:642)

      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)

      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      at java.lang.Thread.run(Thread.java:724)

       

      I've already tried a couple of things like changed to ip addresses in acceptors & connectors etc. but I couldn't figure out where the problem might be.

       

      Please let me know if you have any idea what might be the problem.

       

      Thanks.

       

      Regards

      Martin