3 Replies Latest reply on Jan 3, 2009 5:14 AM by timfox

    Exception in MessagingPostOffice

      Hi,
      We are getting these exception in Clustered environment.
      For two servers in Cluster when 2nd Server starts we get this exception.
      We are using JAS 4.2.3 GA and JBM-1.4.0SP3. We dont know how to fix it.
      Both the server are using different & unique ServerPeerID.
      This is happening in 2nd Server start up

      2008-12-30 21:59:47,984 DEBUG [org.jboss.jms.server.destination.QueueService] Starting jboss.messaging.destination:service=Queue,name=batchAuditQueue
      2008-12-30 21:59:48,000 ERROR [org.jboss.messaging.util.ExceptionUtil] Queue[null, name=batchAuditQueue] startService
      java.lang.IllegalStateException: Channel id map for node 1307 already contains binding for queue 12
       at org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.addBindingInMemory(MessagingPostOffice.java:2375)
       at org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.internalAddBinding(MessagingPostOffice.java:1863)
       at org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.addBinding(MessagingPostOffice.java:444)
       at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:110)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
       at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      


      Awaiting response.
      Thanks in advance.


        • 1. Re: Exception in MessagingPostOffice
          gaohoward

          what database are you using?

          • 2. Re: Exception in MessagingPostOffice

            We were using ,
            clustered-hsqldb-persistence-service.xml. I think that was the problem.After changing it to mysql db , mysql-persistence-service.xml.It started working fine.
            In any case we can use clustered-hsqldb-persistence-service.xml for clustered environment ? if not then why we have it we already have hsqldb-persistence-service.xml file.

            thx
            Awaiting for positive reply

            • 3. Re: Exception in MessagingPostOffice
              timfox

              hsql is not a clusterable database.

              I think that is made clear in the installation section of the user guide.

              The naming of "clustered-hsql-persistence-service.xml" is admittedly confusing, but it's only intended as a placeholder.

              As I say, the installation guide is explicit about not to use hsql.