【问题标题】:ActiveMQ 5.3.0 - Delete Inactive DestinationsActiveMQ 5.3.0 - 删除非活动目的地
【发布时间】:2017-11-03 01:01:06
【问题描述】:

我正在运行 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? 

【问题讨论】:

    标签: activemq


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-16
      • 2015-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-22
      相关资源
      最近更新 更多