0 Replies Latest reply on Dec 1, 2009 7:58 AM by Atle Atle

    IllegalStateException: binding already exist  when starting

    Atle Atle Newbie

      I infrequently get an IllegalStateException when starting an instance of HornetQ.

      java.lang.IllegalStateException: Binding already exists org.hornetq.core.postoffice.impl.LocalQueueBinding@1effc3eb
      at org.hornetq.core.postoffice.impl.SimpleAddressManager.addBinding(SimpleAddressManager.java:45)
      at org.hornetq.core.postoffice.impl.WildcardAddressManager.addBinding(WildcardAddressManager.java:90)
      at org.hornetq.core.postoffice.impl.PostOfficeImpl.addBinding(PostOfficeImpl.java:458)
      at org.hornetq.core.server.impl.HornetQServerImpl.loadJournal(HornetQServerImpl.java:1211)
      at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1017)
      at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:283)
      at com.texi.tls2.component.hornetq.HornetQServerService.doStart(HornetQServerService.java:26)
      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

      etc...

      I think it only happens when there are unsent messages on the queue when the HornetQ server is shut down, but i am not sure.

      Am i doing something wrong?