2 Replies Latest reply on Aug 11, 2014 10:20 PM by gaohoward

    Failed to serialize object:HornetQConnectionFactory when I use TCP over UDP for JGroups configuration

    msudha_99

      While running the HornetQ I am getting the following exception when I change the configuration to bind the connection factory to use the "discovery-group-ref" instead default connectors. Also observed that binding works fine if I use the default configuration that is multicating/UDP. I am working with 2.4.0.Final and added jgroups-3.3.4.Final.jar file to the lib folder to resolve missing class exceptions.

       

         <connection-factory name="NettyConnectionFactory">

            <xa>false</xa>

            <!--VENKAT -->

           <discovery-group-ref discovery-group-name="dg-group1"/>

            <!--

            <connectors>

               <connector-ref connector-name="netty"/>

            </connectors>

            -->   

            <entries>

               <entry name="/ConnectionFactory"/>

            </entries>

         </connection-factory>

       

      Appreciate any direction to resolve the issue. I have attached the hornetq-configuratin.xml, horetq-jms.xml, jgroups-ping.xml and the complete log for your reference.

       

      16:23:53,885 INFO  [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.exampleQueue

      16:23:53,893 INFO  [org.hornetq.core.server] HQ221003: trying to deploy queue jms.topic.exampleTopic

      16:23:53,939 ERROR [org.hornetq.core.server] HQ224005: Unable to deploy node [connection-factory: null]: java.lang.RuntimeException: javax.naming.NamingException: Failed to serialize object:HornetQConnectionFactory [serverLocator=ServerLocatorImpl [initialConnectors=[], discoveryGroupConfiguration=DiscoveryGroupConfiguration{name='dg-group1', refreshTimeout=10000, discoveryInitialWaitTimeout=10000}], clientID=null, consumerWindowSize = 1048576, dupsOKBatchSize=1048576, transactionBatchSize=1048576, readOnly=false], org.hornetq.api.core.JGroupsBroadcastGroupConfiguration$1

      at org.hornetq.core.registry.JndiBindingRegistry.bind(JndiBindingRegistry.java:70) [hornetq-server.jar:]

      at org.hornetq.jms.server.impl.JMSServerManagerImpl.bindToJndi(JMSServerManagerImpl.java:1676) [hornetq-jms-server.jar:]

      at org.hornetq.jms.server.impl.JMSServerManagerImpl.access$400(JMSServerManagerImpl.java:105) [hornetq-jms-server.jar:]