activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: Not able to configure JDBC Master/Slave Clustering in ActiveMQ 5.4.2
Date Mon, 21 Feb 2011 11:22:20 GMT
Try with updateURIsSupported=false on the failoveruri, that will stop
the auto update and ensure that the clients url list is static.
It looks like the duplex network may be causing an issue for the
dynamic update feature, I know there was some change on trunk related
to that in the past weeks.
Possibly try with a 5.5-SNAPSHOT and if there still is a problem, open
an issue to track it.

On 21 February 2011 10:57, rkparikh <rkparikh@essar.com> wrote:
>
> Hi, as per your suggestion i have taken the trace level log for
> failoverTransport Class.
>
> First time it is successfully connected to one of the broker.
>
> When i shutdown the connected borker, it is getting below urlLIst for making
> connections
> urlList connectionList:[tcp://DT21764:51616, tcp://DT21764:61616] [
> addresses of both brokers.]
>
> then i started the first broker and shutdown the another broker , at this
> time it is getting below urlList
> urlList connectionList:[tcp://DT21764:51616] [i.e., address of only one
> broker on which it was connected lastly].
>
>
> Please refer below log.
> ===============================================================================
> [2011-02-21 16:15:32,681] [task-scheduler-1] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Reconnect was
> triggered but transport is not started yet. Wait for start to connect the
> transport.
> [2011-02-21 16:15:32,806] [task-scheduler-1] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Started.
> [2011-02-21 16:15:32,806] [task-scheduler-1] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Waking up
> reconnect task
> [2011-02-21 16:15:32,806] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> urlList
> connectionList:[tcp://DT21764:61616, tcp://DT21764:51616]
> [2011-02-21 16:15:32,806] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Attempting
> connect to: tcp://DT21764:61616
> [2011-02-21 16:15:32,853] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Connection
> established
> [2011-02-21 16:15:32,853] [ActiveMQ Task] [INFO
> ][org.apache.activemq.transport.failover.FailoverTransport] ==> Successfully
> connected to tcp://DT21764:61616
> [2011-02-21 16:16:00,816] [ActiveMQ Transport:
> tcp://DT21764/150.0.149.218:61616] [TRACE]
> [org.apache.activemq.transport.failover.FailoverTransport] ==>
> tcp://DT21764:61616 handleTransportFailure: java.io.EOFException
> [2011-02-21 16:16:00,816] [ActiveMQ Transport:
> tcp://DT21764/150.0.149.218:61616] [WARN ]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Transport
> (DT21764/150.0.149.218:61616) failed to tcp://DT21764:61616 , attempting to
> automatically reconnect due to: java.io.EOFException
> [2011-02-21 16:16:00,816] [ActiveMQ Transport:
> tcp://DT21764/150.0.149.218:61616] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Transport
> failed with the following exception:
> java.io.EOFException
>        at java.io.DataInputStream.readInt(DataInputStream.java:375)
>        at
> org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:269)
>        at
> org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:227)
>        at
> org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:219)
>        at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202)
>        at java.lang.Thread.run(Thread.java:662)
> [2011-02-21 16:16:00,816] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> urlList
> connectionList:[tcp://DT21764:51616, tcp://DT21764:61616]
> [2011-02-21 16:16:00,816] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Attempting
> connect to: tcp://DT21764:51616
> [2011-02-21 16:16:01,269] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Connection
> established
> [2011-02-21 16:16:01,269] [ActiveMQ Task] [INFO ]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Successfully
> reconnected to tcp://DT21764:51616
> [2011-02-21 16:16:35,711] [ActiveMQ Transport:
> tcp://DT21764/150.0.149.218:51616] [TRACE]
> [org.apache.activemq.transport.failover.FailoverTransport] ==>
> tcp://DT21764:51616 handleTransportFailure: java.io.EOFException
> [2011-02-21 16:16:35,711] [ActiveMQ Transport:
> tcp://DT21764/150.0.149.218:51616] [WARN ]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Transport
> (DT21764/150.0.149.218:51616) failed to tcp://DT21764:51616 , attempting to
> automatically reconnect due to: java.io.EOFException
> [2011-02-21 16:16:35,711] [ActiveMQ Transport:
> tcp://DT21764/150.0.149.218:51616] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Transport
> failed with the following exception:
> java.io.EOFException
>        at java.io.DataInputStream.readInt(DataInputStream.java:375)
>        at
> org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:269)
>        at
> org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:227)
>        at
> org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:219)
>        at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202)
>        at java.lang.Thread.run(Thread.java:662)
> [2011-02-21 16:16:35,711] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> urlList
> connectionList:[tcp://DT21764:51616]
> [2011-02-21 16:16:35,726] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Attempting
> connect to: tcp://DT21764:51616
> [2011-02-21 16:16:35,726] [ActiveMQ Transport:
> tcp://DT21764/150.0.149.218:51616] [TRACE]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> unconnected
> handleTransportFailure: java.io.EOFException
> [2011-02-21 16:16:35,726] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Connect fail
> to: tcp://DT21764:51616, reason:
> org.apache.activemq.transport.InactivityIOException: Channel was inactive
> for too long: DT21764/150.0.149.218:51616
> [2011-02-21 16:16:35,726] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Waiting 10 ms
> before attempting connection.
> [2011-02-21 16:16:35,726] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> urlList
> connectionList:[tcp://DT21764:51616]
> [2011-02-21 16:16:35,726] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Attempting
> connect to: tcp://DT21764:51616
> [2011-02-21 16:16:36,695] [ActiveMQ Task] [DEBUG]
> [org.apache.activemq.transport.failover.FailoverTransport] ==> Connect fail
> to: tcp://DT21764:51616, reason: java.net.ConnectException: Connection
> refused: connect
>
> -----
> Thanks and Regards,
> Rahul
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Not-able-to-configure-JDBC-Master-Slave-Clustering-in-ActiveMQ-5-4-2-tp3316794p3317157.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



--
http://blog.garytully.com
http://fusesource.com

Mime
View raw message