2017-11-03 4 views
0

Ich bin mit ActiveMQ 5.3.0 und ich versuchte, die Anweisungen hier https://cwiki.apache.org/confluence/display/ACTIVEMQ/Delete+Inactive+Destinations zu erhalten meine Konfiguration zu folgen Warteschlangen zu löschen, die keine Nachrichten hatten oder Verbraucher auf sich.ActiveMQ 5.3.0 - Löschen Inaktive Ziele

Allerdings habe ich meine activemq.xml-Datei aktualisiert und ich bekomme diese Stack-Trace , wenn ich versuche, activemq jetzt zu starten. Kann jemand helfen? Ich bin sehr neu zu activemq, also entschuldige ich mich, wenn ich etwas Dummes mache.

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? 

Antwort

0

Ihre ActiveMQ-Version ist zu alt für das Konfigurationselement, das Sie hinzufügen möchten. Version 5.3.0 ist ziemlich alt und Sie sollten wirklich erwägen, auf ein neueres Release mit aktuellen Fixes und Sicherheitsverbesserungen zu aktualisieren.