2 Replies Latest reply on Jan 17, 2010 4:37 AM by auth.gabor

    JBossESB and HornetQ

    auth.gabor

      Hi,

       

        I've installed the HornetQ 2.0.0.GA into the JBossAS 5.1.0.GA and I've installed the JBossESB 4.7 into the AS. It works perfectly... but only single node.

        I've configured a JBoss cluster with two nodes, and the story has begun...

       

        I've started the second node, and the JBoss cluster view has been modified:

      2010-01-16 16:33:40,313 INFO  [org.jboss.ha.framework.interfaces.HAPartition.lifecycle.KRWSFE] (Incoming-4,10.8.23.10:44963) New cluster view for partition KRWSFE (id: 1, delta: 1) : [10.8.23.10:1099, 10.8.23.19:1099]
      2010-01-16 16:33:40,353 INFO  [org.jboss.ha.framework.server.DistributedReplicantManagerImpl.KRWSFE] (AsynchViewChangeHandler Thread) I am (10.8.23.10:1099) received membershipChanged event:
      2010-01-16 16:33:40,353 INFO  [org.jboss.ha.framework.server.DistributedReplicantManagerImpl.KRWSFE] (AsynchViewChangeHandler Thread) Dead members: 0 ([])
      2010-01-16 16:33:40,354 INFO  [org.jboss.ha.framework.server.DistributedReplicantManagerImpl.KRWSFE] (AsynchViewChangeHandler Thread) New Members : 1 ([10.8.23.19:1099])
      2010-01-16 16:33:40,354 INFO  [org.jboss.ha.framework.server.DistributedReplicantManagerImpl.KRWSFE] (AsynchViewChangeHandler Thread) All Members : 2 ([10.8.23.10:1099, 10.8.23.19:1099])
      2010-01-16 16:33:40,355 INFO  [org.jboss.cache.RPCManagerImpl] (Incoming-9,10.8.23.10:44963) Received new cluster view: [10.8.23.10:44963|1] [10.8.23.10:44963, 10.8.23.19:40251]

       

        The two HornetQ node has been connected too:

      2010-01-16 16:33:48,082 INFO  [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-4 (group:HornetQ-server-threads3446221-2086061525)) Connecting bridge sf.my-cluster.8756de69-02b4-11df-b035-00163621d9d7 to its destination
      2010-01-16 16:33:48,427 INFO  [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-4 (group:HornetQ-server-threads3446221-2086061525)) Bridge sf.my-cluster.8756de69-02b4-11df-b035-00163621d9d7 is connected to its destination

       

        But... I've sent some request into the ESB via ServiceInvoker, and I've seen this:

      2010-01-16 20:43:18,993 TRACE [hu.javaforum.services.bf.DocumentsUploadBFBean] (pool-34-thread-1) hu.javaforum.services.bf.DocumentsUploadBFBean.process[98]: Exit (3.33ms)

      [--- the ESB put message into the reply queue ---]
      2010-01-16 20:43:19,005 ERROR [org.hornetq.core.server.impl.ServerSessionImpl] (New I/O server worker #1-4) Failed to send message
      java.lang.NullPointerException
              at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
              at org.hornetq.core.postoffice.impl.BindingsImpl.routeFromCluster(BindingsImpl.java:464)
              at org.hornetq.core.postoffice.impl.BindingsImpl.route(BindingsImpl.java:243)
              at org.hornetq.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:631)
              at org.hornetq.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1995)
              at org.hornetq.core.server.impl.ServerSessionImpl.handleSend(ServerSessionImpl.java:1426)

       

        I've installed and configured the HornetQ from the documentation, but I cannot decide: I've found a HornetQ or a JBossESB related bug or I'm thoughtless...

       

      Best regards,

      Gábor Auth