3 Replies Latest reply on Dec 16, 2013 8:05 AM by gohil90

    Error while configuring the JMS in JBOSS

    gohil90

      Hi All,

      I am working on JBoss EAP 6.1 and configuring JMS in domain mode.

      In domain.xml JMS configuration is like this

      <connection-factory name="RemoteConnectionFactory">
        <connectors>
        <connector-ref connector-name="netty"/>
        </connectors>
        <entries>
        <entry name="RemoteConnectionFactory"/>
        <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>
        </entries>
        <ha>true</ha>
        <block-on-acknowledge>true</block-on-acknowledge>
        <retry-interval>1000</retry-interval>
        <retry-interval-multiplier>1.0</retry-interval-multiplier>
        <reconnect-attempts>-1</reconnect-attempts>
      </connection-factory>
      

      and destination is like

      <jms-destinations>  
        <jms-queue name="testQueue">
        <entry name="java:/queue/test"/>
        <entry name="java:jboss/exported/jms/queue/test"/>
        <durable>true</durable>
        </jms-queue>
      </jms-destinations>
      

       

      Although getting error while configuring as above.Is something wrong in configuration.While going through the logs i got 10-10-10-127 which does not known to me.

      also i have no where coded or configured host=10-10-10-127. still getting this[parameters = {port=5445, host=10-10-10-127}] in error log..let me know where i can check or override this HOST IP in configuration to make it work.As may be server is sending request to 10-10-10-127 on port which is not available and that is why its giving error.

      .Thanks

       

      Found error in Logs..as below

      DEBUG [org.hornetq.core.server] (Thread-4 (HornetQ-server-HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a-1188286789)) Connecting  ClusterConnectionBridge@6f71cb85 [name=sf.my-cluster.ad5e4c73-40a0-11e3-b260-75e53c38159b, queue=QueueImpl[name=sf.my-cluster.ad5e4c73-40a0-11e3-b260-75e53c38159b, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a]]@17e8c1ec targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@6f71cb85 [name=sf.my-cluster.ad5e4c73-40a0-11e3-b260-75e53c38159b, queue=QueueImpl[name=sf.my-cluster.ad5e4c73-40a0-11e3-b260-75e53c38159b, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a]]@17e8c1ec targetConnector=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=10-10-10-127], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@2122146079[nodeUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a, connector=TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=10-10-10-1, address=jms, server=HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a])) [initialConnectors=[TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=10-10-10-127], discoveryGroupConfiguration=null]] to its destination [a4f17244-3d58-11e3-8c89-87263e6e5c8a], csf=null
      DEBUG [org.hornetq.core.client] (Thread-4 (HornetQ-server-HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a-1188286789)) Trying to connect with connector = org.hornetq.core.remoting.impl.netty.NettyConnectorFactory@16c7d858, parameters = {port=5445, host=10-10-10-127} connector = NettyConnector [host=10-10-10-127, port=5445, httpEnabled=false, useServlet=false, servletPath=/messaging/HornetQServlet, sslEnabled=false, useNio=false]
      DEBUG [org.hornetq.core.client] (Thread-4 (HornetQ-server-HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a-1188286789)) Started Netty Connector version 3.6.2.Final-redhat-1-c0d783c
      DEBUG [org.hornetq.core.client] (Thread-4 (HornetQ-server-HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a-1188286789)) Remote destination: /10-10-10-127:5445
      DEBUG [org.hornetq.core.client] (Thread-4 (HornetQ-server-HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a-1188286789)) Could not connect to any server. Didn't have reconnection configured on the ClientSessionFactory
      DEBUG [org.hornetq.core.server] (Thread-4 (HornetQ-server-HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a-1188286789)) Bridge ClusterConnectionBridge@6f71cb85 [name=sf.my-cluster.ad5e4c73-40a0-11e3-b260-75e53c38159b, queue=QueueImpl[name=sf.my-cluster.ad5e4c73-40a0-11e3-b260-75e53c38159b, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a]]@17e8c1ec targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@6f71cb85 [name=sf.my-cluster.ad5e4c73-40a0-11e3-b260-75e53c38159b, queue=QueueImpl[name=sf.my-cluster.ad5e4c73-40a0-11e3-b260-75e53c38159b, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a]]@17e8c1ec targetConnector=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=10-10-10-127], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@2122146079[nodeUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a, connector=TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=10-10-10-1, address=jms, server=HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a])) [initialConnectors=[TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=10-10-10-127], discoveryGroupConfiguration=null]] is unable to connect to destination. Retrying: HornetQException[errorType=NOT_CONNECTED message=Unable to connect to server using configuration TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=10-10-10-127]
        at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:256) [hornetq-core-client-2.3.1.Final-redhat-1.jar:2.3.1.Final-redhat-1]
        at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:694) [hornetq-core-client-2.3.1.Final-redhat-1.jar:2.3.1.Final-redhat-1]
        at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:650) [hornetq-core-client-2.3.1.Final-redhat-1.jar:2.3.1.Final-redhat-1]
        at org.hornetq.core.server.cluster.impl.ClusterConnectionBridge.createSessionFactory(ClusterConnectionBridge.java:150) [hornetq-server-2.3.1.Final-redhat-1.jar:2.3.1.Final-redhat-1]
        at org.hornetq.core.server.cluster.impl.BridgeImpl.connect(BridgeImpl.java:800) [hornetq-server-2.3.1.Final-redhat-1.jar:2.3.1.Final-redhat-1]
        at org.hornetq.core.server.cluster.impl.BridgeImpl$ConnectRunnable.run(BridgeImpl.java:1106) [hornetq-server-2.3.1.Final-redhat-1.jar:2.3.1.Final-redhat-1]
        at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:106) [hornetq-core-client-2.3.1.Final-redhat-1.jar:2.3.1.Final-redhat-1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]
        at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]
      
        • 1. Re: Error while configuring the JMS in JBOSS
          gohil90

          Please Suggest..struggling with it.

          • 2. Re: Error while configuring the JMS in JBOSS
            jmesnil

            The JMS server in JBoss EAP uses the socket-binding named "messaging". How is this socket-binding configured in your standalone XML configuration file?

            Which interface is it using (default is the "public" interface that binds to 127.0.0.1)?

             

            From you log file, the messaging socket-binding is somehow using the 10.10.10.127 IP address.

            • 3. Re: Error while configuring the JMS in JBOSS
              gohil90

              Hi Jeff,thanks for reply.

              i am using domain mode so i am doing configuration in domain.xml and in "FULL-HA".  here is the socket-binding="messaging" part of domain.xml

              <connectors>

                <netty-connector name="netty" socket-binding="messaging"/>

                <netty-connector name="netty-throughput" socket-binding="messaging-throughput">

                <param key="batch-delay" value="50"/>

                </netty-connector>

                <in-vm-connector name="in-vm" server-id="0"/>

              </connectors>

               

              <acceptors>

                <netty-acceptor name="netty" socket-binding="messaging"/>

                <netty-acceptor name="netty-throughput" socket-binding="messaging-throughput">

                <param key="batch-delay" value="50"/>

                <param key="direct-deliver" value="false"/>

                </netty-acceptor>

                <in-vm-acceptor name="in-vm" server-id="0"/>

              </acceptors>

               

               

              within  <server-groups> i have

              <socket-binding-group ref="full-ha-sockets"/>

              and in <socket-binding-groups> i have

              <socket-binding-group name="full-ha-sockets" default-interface="public">

               

               

              So the interface is public as you said.

              i have tried to bind my local server ip(10.10.10.1) on which JBOSS 6 EAP is running by using -b.

              Although it's still intiating TransportConfiguration with 1)local IP(10.10.10.1) and 2)other IP(10.10.10.127) as in log

              1)[initialConnectors=[TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=10-10-10-127], discoveryGroupConfiguration=null]

              2)connector=TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5445&host=10-10-10-1

               

              can you suggest something i can try or to remove (10.10.10.127) Ip from any where in cache or in configuration.