You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "Jorge S." <js...@gfi.es> on 2008/03/05 13:54:55 UTC
Problem with Master/Slave, how to configure it? (I'm using
Servicemix)
Hello everyone
I'm trying to test a servicemix cluster with ActiveMQ in Master/Slave mode.
Master starts correctly but when Slave starts, I've continuously got the
same error in Master log
ERROR - MasterBroker - Slave Failed
java.lang.AssertionError: Unsupported Method
at
org.apache.activemq.transport.TransportSupport.request(TransportSupport.java:71)
at
org.apache.activemq.transport.TransportFilter.request(TransportFilter.java:88)
at
org.apache.activemq.transport.TransportFilter.request(TransportFilter.java:88)
at
org.apache.activemq.transport.MutexTransport.request(MutexTransport.java:54)
at
org.apache.activemq.broker.ft.MasterBroker.sendSyncToSlave(MasterBroker.java:363)
at
org.apache.activemq.broker.ft.MasterBroker.sendToSlave(MasterBroker.java:345)
at
org.apache.activemq.broker.ft.MasterBroker.acknowledge(MasterBroker.java:320)
at
org.apache.activemq.broker.MutableBrokerFilter.acknowledge(MutableBrokerFilter.java:88)
at
org.apache.activemq.broker.TransportConnection.processMessageAck(TransportConnection.java:506)
at org.apache.activemq.command.MessageAck.visit(MessageAck.java:179)
at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:294)
at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:185)
at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:65)
at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:133)
at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137)
at java.lang.Thread.run(Thread.java:619)
I call ActiveMQ in the two servicemix instances as follows:
failover://(tcp://localhost:61616,tcp://localhost:61617)?randomize=false
I've attached my configuration files. I appreciate any help you can give me.
http://www.nabble.com/file/p15849423/activemq_master.xml activemq_master.xml
| http://www.nabble.com/file/p15849423/activemq_slave.xml
activemq_slave.xml
--
View this message in context: http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p15849423.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem with Master/Slave, how to configure it? (I'm using
Servicemix)
Posted by "Jorge S." <js...@gfi.es>.
Thank you toxicafunk, I didn't realize that. Anyway, I follow the
instructions for recovery master/slave topology but not resolve my problem.
Finally, I changed configuration in activemq.xml master and it worked ok:
Before (master):
<networkConnectors>
</networkConnectors>
Now (master):
<networkConnectors>
<networkConnector name="default-nc" uri="multicast://default"/>
</networkConnectors>
toxicafunk wrote:
>
> It seems your master and slave are out of synch. Take a look at here:
> http://activemq.apache.org/masterslave.html#MasterSlave-RecoveryingaMasterSlavetopology
>
>
> Jorge S. wrote:
>> On the other hand, I'm trying 5.0.0 release and I get this error in Slave
>> node, so communication between master and slave fails:
>>
>>
>> ACTIVEMQ_HOME: /opt/servicemix/apache-activemq-5.0.0
>> ACTIVEMQ_BASE: /opt/servicemix/apache-activemq-5.0.0
>> Loading message broker from: xbean:activemq.xml
>> INFO BrokerService - Using Persistence Adapter:
>> AMQPersistenceAdapter(/opt/servicemix/apache-activemq-5.0.0/data/localhost)
>> INFO BrokerService - ActiveMQ 5.0.0 JMS Message Broker
>> (localhost) is starting
>> INFO BrokerService - For help or more information
>> please
>> see: http://activemq.apache.org/
>> INFO AMQPersistenceAdapter - AMQStore starting using directory:
>> /opt/servicemix/apache-activemq-5.0.0/data/localhost
>> INFO KahaStore - Kaha Store using data directory
>> /opt/servicemix/apache-activemq-5.0.0/data/localhost/kr-store/state
>> INFO AMQPersistenceAdapter - Active data files: []
>> INFO ManagementContext - JMX consoles can connect to
>> service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
>> INFO KahaStore - Kaha Store using data directory
>> /opt/servicemix/apache-activemq-5.0.0/data/localhost/kr-store/data
>> INFO TransportServerThreadSupport - Listening for connections at:
>> tcp://node2:61616
>> INFO TransportConnector - Connector openwire Started
>> INFO TransportServerThreadSupport - Listening for connections at:
>> ssl://node2:61617
>> INFO TransportConnector - Connector ssl Started
>> INFO TransportServerThreadSupport - Listening for connections at:
>> stomp://node2:61613
>> INFO TransportConnector - Connector stomp Started
>> INFO TransportServerThreadSupport - Listening for connections at:
>> xmpp://node2:61222
>> INFO TransportConnector - Connector xmpp Started
>> INFO TransportConnector - Connector vm://localhost Started
>> INFO MasterConnector - Starting a network connection
>> between
>> vm://localhost#0 and tcp://null:0 has been established.
>> INFO BrokerService - ActiveMQ JMS Message Broker
>> (localhost, ID:vmplatina2-54913-1205294150180-1:0) started
>> INFO MasterConnector - Slave connection between
>> vm://localhost#0 and tcp:///192.168.205.141:61616 has been established.
>> ERROR Service - Async error occurred:
>> java.lang.IllegalStateException: Cannot remove session that had not been
>> registered: ID:node1-36343-1205293362171-2:1:684
>> java.lang.IllegalStateException: Cannot remove session that had not been
>> registered: ID:node1-36343-1205293362171-2:1:684
>> at
>> org.apache.activemq.broker.TransportConnection.processRemoveSession(TransportConnection.java:575)
>> at
>> org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:62)
>> at
>> org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:281)
>> at
>> org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:178)
>> at
>> org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
>> at
>> org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
>> at
>> org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:202)
>> at
>> org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
>> at
>> org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
>> INFO log - Logging to
>> org.slf4j.impl.JCLLoggerAdapter(org.mortbay.log) via
>> org.mortbay.log.Slf4jLog
>> INFO log - jetty-6.1.4
>> INFO WebConsoleStarter - ActiveMQ WebConsole initialized.
>> INFO /admin - Initializing Spring
>> FrameworkServlet
>> 'dispatcher'
>> INFO log - ActiveMQ Console at
>> http://0.0.0.0:8161/admin
>> INFO log - ActiveMQ Web Demos at
>> http://0.0.0.0:8161/demo
>> INFO log - Started
>> SelectChannelConnector@0.0.0.0:8161
>>
>>
>>
>> I wrote:
>>
>>
>>
>>>
>>> Thank you Rob. I've tried ActiveMQ 5.1-20080311.181016-59 release but I
>>> get the following error when I start it:
>>>
>>> WARN log - EXCEPTION
>>> java.lang.ClassNotFoundException:
>>> org.springframework.web.servlet.DispatcherServlet
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>> ....
>>>
>>>
>>>
>>>
>>> rajdavies wrote:
>>>>
>>>>
>>>> On 10 Mar 2008, at 07:43, Jorge S. wrote:
>>>>> Does anyone have an idea? I have problems using version 5, I prefer to
>>>>> continue using old version. How can I be sure that error is due to
>>>>> the old
>>>>> version?
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p15950592.html
>>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>>>
>>>> Hi Jorge,
>>>>
>>>> Master/Slave has had some fixes applied which went in 5.0 - you might
>>>> want to try a 5.1-SNAPSHOT release
>>>>
>>>>
>>>> cheers,
>>>>
>>>> Rob
>>>>
>>>> http://open.iona.com/ -Enterprise Open Integration
>>>> http://rajdavies.blogspot.com/
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
>
--
View this message in context: http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p16023869.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem with Master/Slave, how to configure it? (I'm using Servicemix)
Posted by Eric Rodriguez <to...@gmail.com>.
It seems your master and slave are out of synch. Take a look at here:
http://activemq.apache.org/masterslave.html#MasterSlave-RecoveryingaMasterSlavetopology
Jorge S. wrote:
> On the other hand, I'm trying 5.0.0 release and I get this error in Slave
> node, so communication between master and slave fails:
>
>
> ACTIVEMQ_HOME: /opt/servicemix/apache-activemq-5.0.0
> ACTIVEMQ_BASE: /opt/servicemix/apache-activemq-5.0.0
> Loading message broker from: xbean:activemq.xml
> INFO BrokerService - Using Persistence Adapter:
> AMQPersistenceAdapter(/opt/servicemix/apache-activemq-5.0.0/data/localhost)
> INFO BrokerService - ActiveMQ 5.0.0 JMS Message Broker
> (localhost) is starting
> INFO BrokerService - For help or more information please
> see: http://activemq.apache.org/
> INFO AMQPersistenceAdapter - AMQStore starting using directory:
> /opt/servicemix/apache-activemq-5.0.0/data/localhost
> INFO KahaStore - Kaha Store using data directory
> /opt/servicemix/apache-activemq-5.0.0/data/localhost/kr-store/state
> INFO AMQPersistenceAdapter - Active data files: []
> INFO ManagementContext - JMX consoles can connect to
> service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> INFO KahaStore - Kaha Store using data directory
> /opt/servicemix/apache-activemq-5.0.0/data/localhost/kr-store/data
> INFO TransportServerThreadSupport - Listening for connections at:
> tcp://node2:61616
> INFO TransportConnector - Connector openwire Started
> INFO TransportServerThreadSupport - Listening for connections at:
> ssl://node2:61617
> INFO TransportConnector - Connector ssl Started
> INFO TransportServerThreadSupport - Listening for connections at:
> stomp://node2:61613
> INFO TransportConnector - Connector stomp Started
> INFO TransportServerThreadSupport - Listening for connections at:
> xmpp://node2:61222
> INFO TransportConnector - Connector xmpp Started
> INFO TransportConnector - Connector vm://localhost Started
> INFO MasterConnector - Starting a network connection between
> vm://localhost#0 and tcp://null:0 has been established.
> INFO BrokerService - ActiveMQ JMS Message Broker
> (localhost, ID:vmplatina2-54913-1205294150180-1:0) started
> INFO MasterConnector - Slave connection between
> vm://localhost#0 and tcp:///192.168.205.141:61616 has been established.
> ERROR Service - Async error occurred:
> java.lang.IllegalStateException: Cannot remove session that had not been
> registered: ID:node1-36343-1205293362171-2:1:684
> java.lang.IllegalStateException: Cannot remove session that had not been
> registered: ID:node1-36343-1205293362171-2:1:684
> at
> org.apache.activemq.broker.TransportConnection.processRemoveSession(TransportConnection.java:575)
> at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:62)
> at
> org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:281)
> at
> org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:178)
> at
> org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
> at
> org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
> at
> org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:202)
> at
> org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
> at
> org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
> INFO log - Logging to
> org.slf4j.impl.JCLLoggerAdapter(org.mortbay.log) via
> org.mortbay.log.Slf4jLog
> INFO log - jetty-6.1.4
> INFO WebConsoleStarter - ActiveMQ WebConsole initialized.
> INFO /admin - Initializing Spring FrameworkServlet
> 'dispatcher'
> INFO log - ActiveMQ Console at
> http://0.0.0.0:8161/admin
> INFO log - ActiveMQ Web Demos at
> http://0.0.0.0:8161/demo
> INFO log - Started
> SelectChannelConnector@0.0.0.0:8161
>
>
>
> I wrote:
>
>
>
>>
>> Thank you Rob. I've tried ActiveMQ 5.1-20080311.181016-59 release but I
>> get the following error when I start it:
>>
>> WARN log - EXCEPTION
>> java.lang.ClassNotFoundException:
>> org.springframework.web.servlet.DispatcherServlet
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> ....
>>
>>
>>
>>
>> rajdavies wrote:
>>>
>>>
>>> On 10 Mar 2008, at 07:43, Jorge S. wrote:
>>>> Does anyone have an idea? I have problems using version 5, I prefer to
>>>> continue using old version. How can I be sure that error is due to
>>>> the old
>>>> version?
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p15950592.html
>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>>
>>> Hi Jorge,
>>>
>>> Master/Slave has had some fixes applied which went in 5.0 - you might
>>> want to try a 5.1-SNAPSHOT release
>>>
>>>
>>> cheers,
>>>
>>> Rob
>>>
>>> http://open.iona.com/ -Enterprise Open Integration
>>> http://rajdavies.blogspot.com/
>>>
>>>
>>>
>>>
>>>
>>
>
Re: Problem with Master/Slave, how to configure it? (I'm using
Servicemix)
Posted by "Jorge S." <js...@gfi.es>.
On the other hand, I'm trying 5.0.0 release and I get this error in Slave
node, so communication between master and slave fails:
ACTIVEMQ_HOME: /opt/servicemix/apache-activemq-5.0.0
ACTIVEMQ_BASE: /opt/servicemix/apache-activemq-5.0.0
Loading message broker from: xbean:activemq.xml
INFO BrokerService - Using Persistence Adapter:
AMQPersistenceAdapter(/opt/servicemix/apache-activemq-5.0.0/data/localhost)
INFO BrokerService - ActiveMQ 5.0.0 JMS Message Broker
(localhost) is starting
INFO BrokerService - For help or more information please
see: http://activemq.apache.org/
INFO AMQPersistenceAdapter - AMQStore starting using directory:
/opt/servicemix/apache-activemq-5.0.0/data/localhost
INFO KahaStore - Kaha Store using data directory
/opt/servicemix/apache-activemq-5.0.0/data/localhost/kr-store/state
INFO AMQPersistenceAdapter - Active data files: []
INFO ManagementContext - JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
INFO KahaStore - Kaha Store using data directory
/opt/servicemix/apache-activemq-5.0.0/data/localhost/kr-store/data
INFO TransportServerThreadSupport - Listening for connections at:
tcp://node2:61616
INFO TransportConnector - Connector openwire Started
INFO TransportServerThreadSupport - Listening for connections at:
ssl://node2:61617
INFO TransportConnector - Connector ssl Started
INFO TransportServerThreadSupport - Listening for connections at:
stomp://node2:61613
INFO TransportConnector - Connector stomp Started
INFO TransportServerThreadSupport - Listening for connections at:
xmpp://node2:61222
INFO TransportConnector - Connector xmpp Started
INFO TransportConnector - Connector vm://localhost Started
INFO MasterConnector - Starting a network connection between
vm://localhost#0 and tcp://null:0 has been established.
INFO BrokerService - ActiveMQ JMS Message Broker
(localhost, ID:vmplatina2-54913-1205294150180-1:0) started
INFO MasterConnector - Slave connection between
vm://localhost#0 and tcp:///192.168.205.141:61616 has been established.
ERROR Service - Async error occurred:
java.lang.IllegalStateException: Cannot remove session that had not been
registered: ID:vmplatina1-36343-1205293362171-2:1:684
java.lang.IllegalStateException: Cannot remove session that had not been
registered: ID:vmplatina1-36343-1205293362171-2:1:684
at
org.apache.activemq.broker.TransportConnection.processRemoveSession(TransportConnection.java:575)
at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:62)
at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:281)
at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:178)
at
org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
at
org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:202)
at
org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
at
org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
INFO log - Logging to
org.slf4j.impl.JCLLoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog
INFO log - jetty-6.1.4
INFO WebConsoleStarter - ActiveMQ WebConsole initialized.
INFO /admin - Initializing Spring FrameworkServlet
'dispatcher'
INFO log - ActiveMQ Console at
http://0.0.0.0:8161/admin
INFO log - ActiveMQ Web Demos at
http://0.0.0.0:8161/demo
INFO log - Started
SelectChannelConnector@0.0.0.0:8161
Jorge S. wrote:
>
> Thank you Rob. I've tried ActiveMQ 5.1-20080311.181016-59 release but I
> get the following error when I start it:
>
> WARN log - EXCEPTION
> java.lang.ClassNotFoundException:
> org.springframework.web.servlet.DispatcherServlet
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> ....
>
>
>
>
> rajdavies wrote:
>>
>>
>>
>> On 10 Mar 2008, at 07:43, Jorge S. wrote:
>>>
>>> Does anyone have an idea? I have problems using version 5, I prefer to
>>> continue using old version. How can I be sure that error is due to
>>> the old
>>> version?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p15950592.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>> Hi Jorge,
>>
>> Master/Slave has had some fixes applied which went in 5.0 - you might
>> want to try a 5.1-SNAPSHOT release
>>
>>
>> cheers,
>>
>> Rob
>>
>> http://open.iona.com/ -Enterprise Open Integration
>> http://rajdavies.blogspot.com/
>>
>>
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p16002322.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem with Master/Slave, how to configure it? (I'm using
Servicemix)
Posted by "Jorge S." <js...@gfi.es>.
Thank you Rob. I've tried ActiveMQ 5.1-20080311.181016-59 release but I get
the following error when I start it:
WARN log - EXCEPTION
java.lang.ClassNotFoundException:
org.springframework.web.servlet.DispatcherServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
....
rajdavies wrote:
>
>
>
> On 10 Mar 2008, at 07:43, Jorge S. wrote:
>>
>> Does anyone have an idea? I have problems using version 5, I prefer to
>> continue using old version. How can I be sure that error is due to
>> the old
>> version?
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p15950592.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
> Hi Jorge,
>
> Master/Slave has had some fixes applied which went in 5.0 - you might
> want to try a 5.1-SNAPSHOT release
>
>
> cheers,
>
> Rob
>
> http://open.iona.com/ -Enterprise Open Integration
> http://rajdavies.blogspot.com/
>
>
>
>
>
--
View this message in context: http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p16002294.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem with Master/Slave, how to configure it? (I'm using Servicemix)
Posted by Rob Davies <ra...@gmail.com>.
On 10 Mar 2008, at 07:43, Jorge S. wrote:
>
> Does anyone have an idea? I have problems using version 5, I prefer to
> continue using old version. How can I be sure that error is due to
> the old
> version?
> --
> View this message in context: http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p15950592.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Hi Jorge,
Master/Slave has had some fixes applied which went in 5.0 - you might
want to try a 5.1-SNAPSHOT release
cheers,
Rob
http://open.iona.com/ -Enterprise Open Integration
http://rajdavies.blogspot.com/
Re: Problem with Master/Slave, how to configure it? (I'm using
Servicemix)
Posted by "Jorge S." <js...@gfi.es>.
Does anyone have an idea? I have problems using version 5, I prefer to
continue using old version. How can I be sure that error is due to the old
version?
--
View this message in context: http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p15950592.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem with Master/Slave, how to configure it? (I'm using
Servicemix)
Posted by "Jorge S." <js...@gfi.es>.
I'm using version 4.1.1.
rajdavies wrote:
>
>
> On 5 Mar 2008, at 12:54, Jorge S. wrote:
>
>>
>> Hello everyone
>>
>> I'm trying to test a servicemix cluster with ActiveMQ in Master/
>> Slave mode.
>> Master starts correctly but when Slave starts, I've continuously got
>> the
>> same error in Master log
>>
>>
>> ERROR - MasterBroker - Slave Failed
>> java.lang.AssertionError: Unsupported Method
>> at
>> org
>> .apache
>> .activemq.transport.TransportSupport.request(TransportSupport.java:71)
>> at
>> org
>> .apache
>> .activemq.transport.TransportFilter.request(TransportFilter.java:88)
>> at
>> org
>> .apache
>> .activemq.transport.TransportFilter.request(TransportFilter.java:88)
>> at
>> org
>> .apache
>> .activemq.transport.MutexTransport.request(MutexTransport.java:54)
>> at
>> org
>> .apache
>> .activemq.broker.ft.MasterBroker.sendSyncToSlave(MasterBroker.java:
>> 363)
>> at
>> org
>> .apache
>> .activemq.broker.ft.MasterBroker.sendToSlave(MasterBroker.java:345)
>> at
>> org
>> .apache
>> .activemq.broker.ft.MasterBroker.acknowledge(MasterBroker.java:320)
>> at
>> org
>> .apache
>> .activemq
>> .broker.MutableBrokerFilter.acknowledge(MutableBrokerFilter.java:88)
>> at
>> org
>> .apache
>> .activemq
>> .broker
>> .TransportConnection.processMessageAck(TransportConnection.java:506)
>> at
>> org.apache.activemq.command.MessageAck.visit(MessageAck.java:179)
>> at
>> org
>> .apache
>> .activemq
>> .broker.TransportConnection.service(TransportConnection.java:294)
>> at
>> org.apache.activemq.broker.TransportConnection
>> $1.onCommand(TransportConnection.java:185)
>> at
>> org
>> .apache
>> .activemq.transport.TransportFilter.onCommand(TransportFilter.java:65)
>> at
>> org
>> .apache
>> .activemq
>> .transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:
>> 133)
>> at
>> org
>> .apache
>> .activemq
>> .transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
>> at
>> org
>> .apache
>> .activemq.transport.TransportSupport.doConsume(TransportSupport.java:
>> 84)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:
>> 137)
>> at java.lang.Thread.run(Thread.java:619)
>>
>>
>> I call ActiveMQ in the two servicemix instances as follows:
>> failover://(tcp://localhost:61616,tcp://localhost:61617)?
>> randomize=false
>>
>> I've attached my configuration files. I appreciate any help you can
>> give me.
>>
>>
>> http://www.nabble.com/file/p15849423/activemq_master.xml
>> activemq_master.xml
>> | http://www.nabble.com/file/p15849423/activemq_slave.xml
>> activemq_slave.xml
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p15849423.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
> This looks like an old version 4 problem - which version are you using ?
>
>
>
--
View this message in context: http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p15868048.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem with Master/Slave, how to configure it? (I'm using Servicemix)
Posted by Rob Davies <ra...@gmail.com>.
On 5 Mar 2008, at 12:54, Jorge S. wrote:
>
> Hello everyone
>
> I'm trying to test a servicemix cluster with ActiveMQ in Master/
> Slave mode.
> Master starts correctly but when Slave starts, I've continuously got
> the
> same error in Master log
>
>
> ERROR - MasterBroker - Slave Failed
> java.lang.AssertionError: Unsupported Method
> at
> org
> .apache
> .activemq.transport.TransportSupport.request(TransportSupport.java:71)
> at
> org
> .apache
> .activemq.transport.TransportFilter.request(TransportFilter.java:88)
> at
> org
> .apache
> .activemq.transport.TransportFilter.request(TransportFilter.java:88)
> at
> org
> .apache
> .activemq.transport.MutexTransport.request(MutexTransport.java:54)
> at
> org
> .apache
> .activemq.broker.ft.MasterBroker.sendSyncToSlave(MasterBroker.java:
> 363)
> at
> org
> .apache
> .activemq.broker.ft.MasterBroker.sendToSlave(MasterBroker.java:345)
> at
> org
> .apache
> .activemq.broker.ft.MasterBroker.acknowledge(MasterBroker.java:320)
> at
> org
> .apache
> .activemq
> .broker.MutableBrokerFilter.acknowledge(MutableBrokerFilter.java:88)
> at
> org
> .apache
> .activemq
> .broker
> .TransportConnection.processMessageAck(TransportConnection.java:506)
> at
> org.apache.activemq.command.MessageAck.visit(MessageAck.java:179)
> at
> org
> .apache
> .activemq
> .broker.TransportConnection.service(TransportConnection.java:294)
> at
> org.apache.activemq.broker.TransportConnection
> $1.onCommand(TransportConnection.java:185)
> at
> org
> .apache
> .activemq.transport.TransportFilter.onCommand(TransportFilter.java:65)
> at
> org
> .apache
> .activemq
> .transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:
> 133)
> at
> org
> .apache
> .activemq
> .transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
> at
> org
> .apache
> .activemq.transport.TransportSupport.doConsume(TransportSupport.java:
> 84)
> at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:
> 137)
> at java.lang.Thread.run(Thread.java:619)
>
>
> I call ActiveMQ in the two servicemix instances as follows:
> failover://(tcp://localhost:61616,tcp://localhost:61617)?
> randomize=false
>
> I've attached my configuration files. I appreciate any help you can
> give me.
>
>
> http://www.nabble.com/file/p15849423/activemq_master.xml
> activemq_master.xml
> | http://www.nabble.com/file/p15849423/activemq_slave.xml
> activemq_slave.xml
> --
> View this message in context: http://www.nabble.com/Problem-with-Master-Slave%2C-how-to-configure-it--%28I%27m-using-Servicemix%29-tp15849423s2354p15849423.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
This looks like an old version 4 problem - which version are you using ?