0 Replies Latest reply on Oct 31, 2011 2:33 AM by Penumbra Shadow

    HornetQ 2.x throws NPE when largemessage is published to cluster

    Penumbra Shadow Newbie

      org/hornetq/core/server/cluster/impl/ClusterConnectionBridge.java throws a NullPointerException under the following conditions:

      - only when persistence is enabled

      - when the message is a LargeMessage

       

      Hello,

       

      Thanks for the really excellent JMS product.  I also appreciate the new leadership, and hope that the new style of community outreach can continue.

       

      This post is about an obscure edge-condition bug that has existed since 2.0.0 GA (a long time).  It's been reported in the following discussions and jira's:

      - http://community.jboss.org/message/549579#549579

      - https://issues.jboss.org/browse/HORNETQ-388

      - https://issues.jboss.org/browse/TORQUE-474

       

      The fix is to simply add the following copy() method to src/main/org/hornetq/core/persistence/impl/journal/LargeServerMessageImpl.java

       

      @Override

      public ServerMessage copy()

      {

          return copy(messageID);

      }

       

      That's all there is to it!?  Can you please help me to get this fix into JBoss AS7!

       

      Thanks,

      --penumbra