0 Replies Latest reply on Apr 12, 2010 11:13 PM by Jim Alateras

    BadMagicException starting broker

    Jim Alateras Newbie

      I have a situation where i get a org.apache.activemq.kaha.impl.index.BadMagicException exception when my broker is starting up.

       

      Here is the stack trace

       

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispatcherManager' defined in class path resource : Invocation of init method failed; nested exception is au.com.observant.ringocore.dispatcher.api.manager.DispatcherManagerException: Failed to start message broker component

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

           at java.security.AccessController.doPrivileged(Native Method)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

           at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)

           at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)

           at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)

           at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)

           at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

           at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)

           at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)

           at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)

           at au.com.observant.server.Hub.startDispatcher(Hub.java:1087)

           at au.com.observant.server.Hub.start(Hub.java:320)

           at au.com.observant.cmanager.UIStarter.main(UIStarter.java:20)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

           at java.lang.reflect.Method.invoke(Method.java:592)

           at apple.launcher.LaunchRunner.run(LaunchRunner.java:115)

           at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)

           at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)

      Caused by: au.com.observant.ringocore.dispatcher.api.manager.DispatcherManagerException: Failed to start message broker component

           at au.com.observant.ringocore.dispatcher.manager.ActiveMQDispatcherManager.start(ActiveMQDispatcherManager.java:318)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

           at java.lang.reflect.Method.invoke(Method.java:592)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1413)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1374)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)

           ... 22 more

      Caused by: org.apache.activemq.kaha.impl.index.BadMagicException

           at org.apache.activemq.kaha.impl.index.IndexItem.read(IndexItem.java:141)

           at org.apache.activemq.kaha.impl.index.StoreIndexReader.readItem(StoreIndexReader.java:50)

           at org.apache.activemq.kaha.impl.index.IndexManager.initialize(IndexManager.java:207)

           at org.apache.activemq.kaha.impl.index.IndexManager.