Dear ActiveMQ users,

I just upgraded our ActiveMQ deployment from release 5.11.1 to 5.13.4 (I'm on 
Ubuntu 14.04.5), which went pretty smooth. On this server ActiveMQ has been 
updated many times so I was not surprised to get this in the logs during 
startup:

WARN  | Existing Store uses a different OpenWire version[6] than the version 
configured[11] reverting to the version used by this store, some newer broker 
features may not work as expected.

So I started a google search and found this:

https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_A-MQ/6.0/html-single/Migration_Guide/index.html#Summary-Procedure

Step 3 notes that to automatically upgrade to the latest version it might be 
required to remove the db.data and db.redo files first before starting ActiveMQ 
again. So that is what I did, but now ActiveMQ fails to startup properly:

 WARN  | Exception thrown from LifecycleProcessor on context close | 
org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 
'refresh' before invoking lifecycle methods via the context: 
org.apache.activemq.xbean.XBeanBrokerFactory$1@34e51ca2: startup date [Thu Aug 
04 12:23:50 CEST 2016]; root of context hierarchy
at 
org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:357)[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:884)[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:843)[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30)[activemq-spring-5.13.4.jar:5.13.4]
at 
org.apache.activemq.broker.BrokerService.stop(BrokerService.java:873)[activemq-broker-5.13.4.jar:5.13.4]
at 
org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)[activemq-spring-5.13.4.jar:5.13.4]
at 
org.apache.activemq.broker.BrokerService.start(BrokerService.java:627)[activemq-broker-5.13.4.jar:5.13.4]
at 
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.13.4.jar:5.13.4]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_101]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_101]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_101]
at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_101]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1700)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1639)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
at 
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-3.18.jar:3.18]
at 
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-3.18.jar:3.18]
at 
org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.13.4.jar:5.13.4]
at 
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.13.4.jar:5.13.4]
at 
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.13.4.jar:5.13.4]
at 
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.13.4.jar:5.13.4]
at 
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.13.4.jar:5.13.4]
at 
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.13.4.jar:5.13.4]
at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.13.4.jar:5.13.4]
at 
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.13.4.jar:5.13.4]
at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.13.4.jar:5.13.4]
at 
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.13.4.jar:5.13.4]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_101]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_101]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_101]
at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_101]
at 
org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.13.4]
at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.13.4]
2016-08-04 12:24:36,838 | WARN  | Exception encountered during context 
initialization - cancelling refresh attempt: 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class 
path resource [activemq.xml]: Invocation of init method failed; nested 
exception is java.io.EOFException | 
org.apache.activemq.xbean.XBeanBrokerFactory$1 | main

So I went back to my kahadb backup files (including the db.data and db.redo 
files) and everything works again (but the warning message about the openwire 
version is still not solved).

The strange part here is that the exception shows an EOF exception on 
activemq.xml. But I only changed the kahadb files, not the activemq.xml.

Any hints, tips or advise?

Thanks in advance!
Met vriendelijke groet/Kind regards,

Martin Herrman
Manager DevOps

[YMOR]<http://www.ymor.com>

Ptolemaeuslaan 70
3528 BP Utrecht
Mobiel: +31 6 10761936
Kantoor:        +31(0)30 6021149

Email:  mherr...@ymor.nl

[ITOA]
Van reactief naar preventief IT-beheer?
Download de whitepaper:
'Van achteruitkijkspiegel naar glazen bol met IT Operations 
Analytics’<http://www.ymor.com/whitepapers/>


This e-mail message and its attachments are subject to the disclaimer published 
on our 
website<https://www.ymor.com/files/2016/04/2016-Disclaimer-and-Security-EN.pdf>

Reply via email to