activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jalateras <j...@comware.com.au>
Subject BadMagicException starting broker
Date Thu, 15 Apr 2010 03:18:06 GMT

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
http://dispatcher-config.xml: 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.<init>(IndexManager.java:60)
at
org.apache.activemq.kaha.impl.KahaStore.getIndexManager(KahaStore.java:366)
at
org.apache.activemq.kaha.impl.KahaStore.generateInterestInMapDataFiles(KahaStore.java:563)
at org.apache.activemq.kaha.impl.KahaStore.initialize(KahaStore.java:486)
at
org.apache.activemq.kaha.impl.KahaStore.getMapContainer(KahaStore.java:214)
at
org.apache.activemq.kaha.impl.KahaStore.getMapContainer(KahaStore.java:209)
at
org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter.createTransactionStore(KahaPersistenceAdapter.java:165)
at
org.apache.activemq.broker.BrokerService.addInterceptors(BrokerService.java:1681)
at
org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1584)
at
org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:593)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:464)
at
au.com.observant.ringocore.dispatcher.manager.ActiveMQDispatcherManager.start(ActiveMQDispatcherManager.java:316)
... 29 more

Here is the contents of the activemq directory

drwxr-xr-x 11 jima staff 374 13 Apr 12:23 ..
-rwxr-xr-x@ 1 jima staff 1481 13 Apr 13:06 data-container-roots-1
-rwxr-xr-x@ 1 jima staff 2129920 13 Apr 13:06 data-queue-data-1211
-rwxr-xr-x@ 1 jima staff 0 13 Apr 13:06
hash-index-queue-data_queue#3a#2f#2fblob_queue
-rwxr-xr-x@ 1 jima staff 2374657 13 Apr 13:06
hash-index-queue-data_queue#3a#2f#2fdevobs_queue
-rwxr-xr-x@ 1 jima staff 0 13 Apr 13:06
hash-index-queue-data_queue#3a#2f#2flivestock_queue
-rwxr-xr-x@ 1 jima staff 0 13 Apr 13:06
hash-index-queue-data_queue#3a#2f#2fphoto_queue
-rwxr-xr-x@ 1 jima staff 1114112 13 Apr 13:06
hash-index-queue-data_queue#3a#2f#2fsyslog_queue
-rwxr-xr-x@ 1 jima staff 0 13 Apr 13:06
hash-index-transactions_PreparedTransactions
-rwxr-xr-x@ 1 jima staff 408 13 Apr 13:06 index-container-roots
-rwxr-xr-x@ 1 jima staff 51642368 13 Apr 13:06 index-queue-data
-rwxr-xr-x@ 1 jima staff 51 13 Apr 13:06 index-transactions
-rwxr-xr-x@ 1 jima staff 0 13 Apr 13:06 lock

How do i recover from such an error without losing my data?

i can supply the actual activemq directory if required, which has a size of
10MB.

I am using activemq 5.3.0.1

cheers
</jima>
-- 
View this message in context: http://old.nabble.com/BadMagicException-starting-broker-tp28250807p28250807.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message