2 Replies Latest reply on Jul 6, 2012 11:32 AM by Andy Taylor

    java.lang.IllegalStateException: Binding already exists LocalQueueBinding

    Maycon Oliveira Newbie

      Hi there.

       

       

      After a few hours of production use of HornetQ 2.2.5 , the machine that HornetQ is hosted crashed (was powered off).

       

      after that, nothing else works, neither JMS or JMX connections to the HornetQ Server.

       

      The complete Exception is:

       

       

      [main] 16:42:26,656 FINE [org.hornetq.core.server.management.impl.ManagementServiceImpl]  registered queue org.hornetq:module=Core,type=Queue,address="jms.topic.ENVIA_LOCAL",name="PDV_1|11165|32.PDV_1|11165|32"

      [main] 16:42:26,657 FINER [javax.management.mbeanserver]   name = org.hornetq:module=Core,type=Address,name="jms.topic.ENVIA_LOCAL"

      [main] 16:42:26,657 FINER [javax.management.mbeanserver]  name = org.hornetq:module=Core,type=Address,name="jms.topic.ENVIA_LOCAL"

      [main] 16:42:26,657 FINER [javax.management.mbeanserver]  name = org.hornetq:module=Core,type=Address,name="jms.topic.ENVIA_LOCAL"

      [main] 16:42:26,657 FINER [javax.management.mbeanserver]  Send delete notification of object org.hornetq:module=Core,name="jms.topic.ENVIA_LOCAL",type=Address

      [main] 16:42:26,657 FINER [javax.management.mbeanserver]  JMX.mbean.unregistered org.hornetq:module=Core,type=Address,name="jms.topic.ENVIA_LOCAL"

      [main] 16:42:26,657 FINER [javax.management.misc]  Building MBeanInfo for org.hornetq.core.management.impl.AddressControlImpl

      [main] 16:42:26,657 FINER [javax.management.mbeanserver]  ObjectName = org.hornetq:module=Core,type=Address,name="jms.topic.ENVIA_LOCAL"

      [main] 16:42:26,658 FINER [javax.management.mbeanserver]  name = org.hornetq:module=Core,type=Address,name="jms.topic.ENVIA_LOCAL"

      [main] 16:42:26,658 FINER [javax.management.mbeanserver]  Send create notification of object org.hornetq:module=Core,name="jms.topic.ENVIA_LOCAL",type=Address

      [main] 16:42:26,658 FINER [javax.management.mbeanserver]  JMX.mbean.registered org.hornetq:module=Core,type=Address,name="jms.topic.ENVIA_LOCAL"

      [main] 16:42:26,658 FINE [org.hornetq.core.server.management.impl.ManagementServiceImpl]  registered address org.hornetq:module=Core,type=Address,name="jms.topic.ENVIA_LOCAL"

      [main] 16:42:26,658 FINER [javax.management.mbeanserver]   name = org.hornetq:module=Core,type=Queue,address="jms.topic.ENVIA_LOCAL",name="PDV_1|0|0.PDV_1|0|0"

      [main] 16:42:26,658 FINER [javax.management.misc]  Building MBeanInfo for org.hornetq.core.management.impl.QueueControlImpl

      [main] 16:42:26,661 FINER [javax.management.mbeanserver]  ObjectName = org.hornetq:module=Core,type=Queue,address="jms.topic.ENVIA_LOCAL",name="PDV_1|0|0.PDV_1|0|0"

      [main] 16:42:26,661 FINER [javax.management.mbeanserver]  name = org.hornetq:module=Core,type=Queue,address="jms.topic.ENVIA_LOCAL",name="PDV_1|0|0.PDV_1|0|0"

      [main] 16:42:26,661 FINER [javax.management.mbeanserver]  Send create notification of object org.hornetq:address="jms.topic.ENVIA_LOCAL",module=Core,name="PDV_1|0|0.PDV_1|0|0",type=Queue

      [main] 16:42:26,662 FINER [javax.management.mbeanserver]  JMX.mbean.registered org.hornetq:module=Core,type=Queue,address="jms.topic.ENVIA_LOCAL",name="PDV_1|0|0.PDV_1|0|0"

      [main] 16:42:26,662 FINE [org.hornetq.core.server.management.impl.ManagementServiceImpl]  registered queue org.hornetq:module=Core,type=Queue,address="jms.topic.ENVIA_LOCAL",name="PDV_1|0|0.PDV_1|0|0"

      [main] 16:42:26,662 SEVERE [org.hornetq.core.server.impl.HornetQServerImpl]  Failure in initialisation

      java.lang.IllegalStateException: Binding already exists LocalQueueBinding [address=jms.topic.ENVIA_LOCAL, name=PDV_1|0|0.PDV_1|0|0, filter=null]

          at org.hornetq.core.postoffice.impl.SimpleAddressManager.addBinding(SimpleAddressManager.java:53)

          at org.hornetq.core.postoffice.impl.WildcardAddressManager.addBinding(WildcardAddressManager.java:98)

          at org.hornetq.core.postoffice.impl.PostOfficeImpl.addBinding(PostOfficeImpl.java:443)

          at org.hornetq.core.server.impl.HornetQServerImpl.loadJournals(HornetQServerImpl.java:1599)

          at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1469)

          at org.hornetq.core.server.impl.HornetQServerImpl.access$100(HornetQServerImpl.java:132)

          at org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation.run(HornetQServerImpl.java:356)

          at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:570)

          at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:275)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

          at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

          at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

          at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)

          at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)

          at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)

          at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)

          at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)

          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)

          at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)

          at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)

          at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)

          at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)

          at org.hornetq.integration.bootstrap.HornetQBootstrapServer.deploy(HornetQBootstrapServer.java:236)

          at org.hornetq.integration.bootstrap.HornetQBootstrapServer.deploy(HornetQBootstrapServer.java:206)

          at org.hornetq.integration.bootstrap.HornetQBootstrapServer.bootstrap(HornetQBootstrapServer.java:155)

          at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83)

          at org.hornetq.integration.bootstrap.HornetQBootstrapServer.run(HornetQBootstrapServer.java:116)

          at org.hornetq.integration.bootstrap.HornetQBootstrapServer.main(HornetQBootstrapServer.java:73)

       

       

       

       

      After I delete the data folder, all start to work again, but I CANT delete this folder all the time, because there are persistent messages and they need to reach the destination.

       

       

       

      Any ideas of how to  reestore the data files without use the backup?