3 Replies Latest reply on Oct 7, 2011 9:40 AM by Nico Joseph

    Problem with HornetQ in JBOSS 6

    Nico Joseph Newbie

      Hi everybody, I'm a newbie in this forum and I post this message because I have a problem.

       

      I just upgrade JBoss 4 to JBoss 6 and I have a problem with HornetQ. in fact I received a error message in the Log about :

       

      Caught unexpected exception: java.lang.IllegalStateException: 29821652 Could not find reference on consumerID=0, messageId = 273722 queue = jms.queue.TaskSelectionQueue closed = false

       

      I see that be caused by the version of HornetQ.. so I updated HornetQ to 2.1.2 to 2.2.5 Final. All is ok.. but I received this message again.

       

      I think it caused by the previous error in the log :

       

      [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] Connection failure has been detected: Did not receive data from invm:0. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might have configured connection-ttl and client-failure-check-period incorrectly. Please check user manual for more information. The connection will now be closed. [code=3]

       

      I already checked in forum, blogs,.. but I haven't found a correct response.

       

      I found this solution but it's not a solution for me : http://community.jboss.org/thread/160367

       

      This solution just "avoid" the problem but for my program I need to close the connection when there is a dead connection.

      Maybe the probleme could come from the version of JBoss but I can't update JBoss (program in production).

      I don't think the solution comes from a configuration of connection-ttl or client-failure-check-period.

       

      Somebody could help me to solve this problem?

       

      Thank you very much.

        • 1. Re: Problem with HornetQ in JBOSS 6
          tl le Newbie

          I have the same problem. Is there anybody having the same problem and has anybody found the solution yet? Please post if you have a solution.

          • 2. Re: Problem with HornetQ in JBOSS 6
            tl le Newbie

            I think I found a solution (not sure if this should be the permanent fix for this but at least I didn't see any of those errors mentioned above happened). Here is what I did

            1. Open the hornetq-configuration.xml in server/default/deploy/hornetq

            2. Add this line:

            <connection-ttl-override>86400000</connection-ttl-override>

             

            Hope this helps.

            • 3. Re: Problem with HornetQ in JBOSS 6
              Nico Joseph Newbie

              Hello, in fact it's not "really" a solution, it's just to avoid (sometimes) receive the error. But this solution doesn't explain what there is a problem and how to solve it...

               

              with this line :

              <connection-ttl-override>86400000</connection-ttl-override>

               

              you just set the time to live to 86400000, it means that you will wait the reponse during 86400000ms before send the exception.

               

              I'm ok with your solution, that solve the problem in 90% cases but we don't know the 'WHY' of this exception.

               

              Thank you.