activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From qlin <linlx2...@gmail.com>
Subject Slave broker throws IllegalStateException when I try to use Pure master/slave failover clusting
Date Wed, 16 Jul 2008 09:19:15 GMT

I meets a exception when I start slave broker. Anyone have met the same issue
like that?  How can I fix it? Any suggestion is appreciated. Thank you very
much.

My enironment:
1. computer A is running AMQ5.0.0 as master MQ
2. Computer B is running AMQ5.0.0 as slave MQ

I follow the guide from http://activemq.apache.org/masterslave.html. Master
broker is work fine, but I start slave broker, it will throws
IllegalStateException markes as bold font. 

The following is detailed logs from slave broker:
=========================================================
2008-07-16 01:42:07,914 [main           ] INFO  BrokerService                 
- Using Persistence Adapter:
AMQPersistenceAdapter(E:\apache-activemq-5.0.0\bin\..\data\sonar-slave)
2008-07-16 01:42:07,924 [main           ] INFO  BrokerService                 
- ActiveMQ 5.0.0 JMS Message Broker (sonar-slave) is starting
2008-07-16 01:42:07,924 [main           ] INFO  BrokerService                 
- For help or more information please see: http://activemq.apache.org/
2008-07-16 01:42:07,934 [main           ] INFO  AMQPersistenceAdapter         
- AMQStore starting using directory:
E:\apache-activemq-5.0.0\bin\..\data\sonar-slave
2008-07-16 01:42:07,984 [main           ] INFO  KahaStore                     
- Kaha Store using data directory
E:\apache-activemq-5.0.0\bin\..\data\sonar-slave\kr-store\state
2008-07-16 01:42:08,094 [main           ] INFO  AMQPersistenceAdapter         
- Active data files: []
2008-07-16 01:42:08,165 [JMX connector  ] INFO  ManagementContext             
- JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
2008-07-16 01:42:08,175 [main           ] INFO  KahaStore                     
- Kaha Store using data directory
E:\apache-activemq-5.0.0\bin\..\data\sonar-slave\kr-store\data
2008-07-16 01:42:08,205 [main           ] INFO  TransportServerThreadSupport  
- Listening for connections at: tcp://linqw-vm:61616
2008-07-16 01:42:08,205 [main           ] INFO  TransportConnector            
- Connector openwire Started
2008-07-16 01:42:08,215 [main           ] INFO  TransportConnector            
- Connector vm://sonar-slave Started
2008-07-16 01:42:08,235 [main           ] INFO  MasterConnector               
- Starting a network connection between vm://sonar-slave#0 and tcp://null:0
has been established.
2008-07-16 01:42:08,235 [main           ] INFO  BrokerService                 
- ActiveMQ JMS Message Broker (sonar-slave,
ID:linqw-vm-1057-1216197727754-1:0) started
2008-07-16 01:42:08,245 [main           ] WARN  BrokerRegistry                
- Broker localhost not started so using sonar-slave instead
2008-07-16 01:42:08,245 [main           ] INFO  TransportConnector            
- Connector vm://localhost Started
2008-07-16 01:42:08,305 [Thread-3       ] INFO  MasterConnector               
- Slave connection between vm://sonar-slave#0 and tcp:///10.0.11.50:61616
has been established.
2008-07-16 01:42:08,425 [main           ] INFO  log                           
- Logging to org.slf4j.impl.JCLLoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog
2008-07-16 01:42:08,445 [main           ] INFO  log                           
- jetty-6.1.4
2008-07-16 01:42:08,715 [main           ] INFO  WebConsoleStarter             
- ActiveMQ WebConsole initialized.
2008-07-16 01:42:08,876 [main           ] INFO  /admin                        
- Initializing Spring FrameworkServlet 'dispatcher'
2008-07-16 01:42:08,956 [main           ] INFO  log                           
- ActiveMQ Console at http://0.0.0.0:8161/admin
2008-07-16 01:42:09,076 [main           ] INFO  log                           
- ActiveMQ Web Demos at http://0.0.0.0:8161/demo
2008-07-16 01:42:09,096 [main           ] INFO  log                           
- Started SelectChannelConnector@0.0.0.0:8161
2008-07-16 01:42:09,246 [//sonar-slave#1] ERROR Service                       
- Async error occurred: java.lang.IllegalStateException: Cannot remove
session that had not been registered: ID:QLIN-15836-1216197705088-2:1:23
java.lang.IllegalStateException: Cannot remove session that had not been
registered: ID:QLIN-15836-1216197705088-2:1:23

	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)
================================================================
-- 
View this message in context: http://www.nabble.com/Slave-broker-throws-IllegalStateException-when-I-try-to-use-Pure-master-slave-failover-clusting-tp18483621p18483621.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message