0 Replies Latest reply on Oct 30, 2013 9:55 AM by Nayan Gohil

    Getting Error while configuring JMS on JBOSS-EAP 6.1

    Nayan Gohil Newbie

      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>

      while doing as above getting error as below.Is something wrong in configuration..Thanks

       

      14:25:44,885 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8) started in 4013ms - Started 178 of 299 services (120 services are passive or on-demand)

      14:25:45,833 INFO  [org.hornetq.core.server] (Thread-22 (HornetQ-server-HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a-1188286789)) HQ221027: Bridge ClusterConnectionBridge@63e06937 [name=sf.my-cluster.a5dbd2c0-3d58-11e3-a56d-138c60635646, queue=QueueImpl[name=sf.my-cluster.a5dbd2c0-3d58-11e3-a56d-138c60635646, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a]]@221bcd1b targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@63e06937 [name=sf.my-cluster.a5dbd2c0-3d58-11e3-a56d-138c60635646, queue=QueueImpl[name=sf.my-cluster.a5dbd2c0-3d58-11e3-a56d-138c60635646, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a]]@221bcd1b targetConnector=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=netty, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=5595&host=10-10-10-1], 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=5595&host=10-10-10-1], discoveryGroupConfiguration=null]] is connected

      14:25:54,824 ERROR [org.hornetq.core.client] (Thread-9 (HornetQ-server-HornetQServerImpl::serverUUID=a4f17244-3d58-11e3-8c89-87263e6e5c8a-1188286789)) HQ214016: Failed to create netty connection: java.net.SocketTimeoutException: connect timed out

        at java.net.PlainSocketImpl.socketConnect(Native Method) [rt.jar:1.6.0_24]

        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327) [rt.jar:1.6.0_24]

        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193) [rt.jar:1.6.0_24]

        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180) [rt.jar:1.6.0_24]

        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) [rt.jar:1.6.0_24]

        at java.net.Socket.connect(Socket.java:546) [rt.jar:1.6.0_24]

        at org.jboss.netty.channel.socket.oio.OioClientSocketPipelineSink.connect(OioClientSocketPipelineSink.java:105) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]

        at org.jboss.netty.channel.socket.oio.OioClientSocketPipelineSink.eventSunk(OioClientSocketPipelineSink.java:65) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]

        at org.jboss.netty.channel.Channels.connect(Channels.java:634) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]

        at org.jboss.netty.channel.AbstractChannel.connect(AbstractChannel.java:207) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]

        at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]

        at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]

        at org.hornetq.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:628) [hornetq-core-client-2.3.1.Final-redhat-1.jar:2.3.1.Final-redhat-1]

        at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1223) [hornetq-core-client-2.3.1.Final-redhat-1.jar:2.3.1.Final-redhat-1]

        at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:1069) [hornetq-core-client-2.3.1.Final-redhat-1.jar:2.3.1.Final-redhat-1]

        at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:246) [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]