ActiveMQ 5.3.0 - 删除非活动目标

时间:2017-11-03 01:01:06

标签: activemq

我正在运行ActiveMQ 5.3.0,我尝试按照此处的说明操作 https://cwiki.apache.org/confluence/display/ACTIVEMQ/Delete+Inactive+Destinations  让我的配置删除没有消息的队列或 消费者对他们。

但是,我更新了我的activemq.xml文件,并且我得到了这个堆栈跟踪 当我尝试启动activemq时。有人可以帮忙吗?我很新 activemq所以,如果我做一些愚蠢的话,我道歉。

ERROR: java.lang.Exception: 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class 
path resource [activemq.xml]: Error setting property values; nested 
exception is org.springframework.beans.NotWritablePropertyException: Invalid 
property 'schedulePeriodForDestinationPurge' of bean class 
[org.apache.activemq.xbean.XBeanBrokerService]: Bean property 
'schedulePeriodForDestinationPurge' is not writable or has an invalid setter 
method. Does the parameter type of the setter match the return type of the 
getter? 
INFO   | jvm 1    | 2017/11/02 15:51:00 | java.lang.Exception: 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class 
path resource [activemq.xml]: Error setting property values; nested 
exception is org.springframework.beans.NotWritablePropertyException: Invalid 
property 'schedulePeriodForDestinationPurge' of bean class 
[org.apache.activemq.xbean.XBeanBrokerService]: Bean property 
'schedulePeriodForDestinationPurge' is not writable or has an invalid setter 
method. Does the parameter type of the setter match the return type of the 
getter? 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
java.lang.reflect.Method.invoke(Unknown Source) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.console.Main.runTaskClass(Main.java:251) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.console.Main.main(Main.java:107) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
java.lang.reflect.Method.invoke(Unknown Source) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
java.lang.Thread.run(Unknown Source) 
INFO   | jvm 1    | 2017/11/02 15:51:00 | Caused by: 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class 
path resource [activemq.xml]: Error setting property values; nested 
exception is org.springframework.beans.NotWritablePropertyException: Invalid 
property 'schedulePeriodForDestinationPurge' of bean class 
[org.apache.activemq.xbean.XBeanBrokerService]: Bean property 
'schedulePeriodForDestinationPurge' is not writable or has an invalid setter 
method. Does the parameter type of the setter match the return type of the 
getter? 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
java.security.AccessController.doPrivileged(Native Method) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       at 
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74) 
INFO   | jvm 1    | 2017/11/02 15:51:00 |       ... 16 more 
INFO   | jvm 1    | 2017/11/02 15:51:00 | Caused by: 
org.springframework.beans.NotWritablePropertyException: Invalid property 
'schedulePeriodForDestinationPurge' of bean class 
[org.apache.activemq.xbean.XBeanBrokerService]: Bean property 
'schedulePeriodForDestinationPurge' is not writable or has an invalid setter 
method. Does the parameter type of the setter match the return type of the 
getter? 

1 个答案:

答案 0 :(得分:0)

您尝试添加的配置项的ActiveMQ版本已旧。版本5.3.0已经很老了,您应该考虑升级到具有当前修复和安全性改进的较新版本。