activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jorge S." <jssacris...@gfi.es>
Subject Re: Problem with Master/Slave, how to configure it? (I'm using Servicemix)
Date Thu, 13 Mar 2008 09:26:12 GMT

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.


Mime
View raw message