activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rural Hunter (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-2672) ActiveMQ failed to start after server crash
Date Tue, 30 Mar 2010 14:49:08 GMT

    [ https://issues.apache.org/activemq/browse/AMQ-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58564#action_58564
] 

Rural Hunter commented on AMQ-2672:
-----------------------------------

This is the startup log:
2010-03-29 23:41:00,062 | INFO  | ActiveMQ JMS Message Broker (datacenter, ID:xuxulike-bca7e5-3933-1269877226406-0:0)
stopped | org.apache.activemq.broker.BrokerService | ActiveMQ ShutdownHook
2010-03-29 23:43:37,281 | INFO  | PListStore:D:\Application\apache-activemq-5.4-SNAPSHOT\bin\..\data\datacenter\tmp_storage
started | org.apache.activemq.store.kahadb.plist.PListStore | main
2010-03-29 23:43:37,390 | INFO  | Using Persistence Adapter: org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter@186d484
| org.apache.activemq.broker.BrokerService | main
2010-03-29 23:43:38,562 | INFO  | Replayed 1 operations from the journal in 0.031 seconds.
| org.apache.activemq.store.kahadb.MessageDatabase | main
2010-03-29 23:43:38,625 | INFO  | ActiveMQ 5.4-SNAPSHOT JMS Message Broker (datacenter) is
starting | org.apache.activemq.broker.BrokerService | main
2010-03-29 23:43:38,625 | INFO  | For help or more information please see: http://activemq.apache.org/
| org.apache.activemq.broker.BrokerService | main
2010-03-29 23:43:39,062 | INFO  | Scheduler using directory: activemq-data\scheduler | org.apache.activemq.broker.scheduler.SchedulerBroker
| main
2010-03-29 23:43:39,812 | INFO  | Listening for connections at: tcp://xuxulike-bca7e5:62616
| org.apache.activemq.transport.TransportServerThreadSupport | main
2010-03-29 23:43:39,812 | INFO  | Connector openwire Started | org.apache.activemq.broker.TransportConnector
| main
2010-03-29 23:43:39,828 | INFO  | ActiveMQ JMS Message Broker (datacenter, ID:xuxulike-bca7e5-1307-1269877418875-0:0)
started | org.apache.activemq.broker.BrokerService | main
2010-03-29 23:43:40,000 | INFO  | Logging to org.slf4j.impl.JCLLoggerAdapter(org.eclipse.jetty.util.log)
via org.eclipse.jetty.util.log.Slf4jLog | org.eclipse.jetty.util.log | main
2010-03-29 23:43:40,000 | INFO  | jetty-7.0.1.v20091125 | org.eclipse.jetty.util.log | main
2010-03-29 23:43:41,796 | INFO  | ActiveMQ WebConsole initialized. | org.apache.activemq.web.WebConsoleStarter
| main
2010-03-29 23:43:42,578 | INFO  | Initializing Spring FrameworkServlet 'dispatcher' | /admin
| main
2010-03-29 23:43:43,046 | INFO  | ActiveMQ Console at http://0.0.0.0:8161/admin | org.eclipse.jetty.util.log
| main
2010-03-29 23:43:43,687 | INFO  | Initializing Spring root WebApplicationContext | /camel
| main
2010-03-29 23:44:40,875 | INFO  | Slow KahaDB access: cleanup took 1688 | org.apache.activemq.store.kahadb.MessageDatabase
| ActiveMQ Journal Checkpoint Worker
2010-03-29 23:45:15,312 | INFO  | Slow KahaDB access: cleanup took 797 | org.apache.activemq.store.kahadb.MessageDatabase
| ActiveMQ Journal Checkpoint Worker
2010-03-29 23:45:26,578 | INFO  | Slow KahaDB access: cleanup took 1610 | org.apache.activemq.store.kahadb.MessageDatabase
| ActiveMQ Journal Checkpoint Worker

The log looks fine for me but I can not even telnet to port 8161. I didn't configure anything
for web console and I cann jetty is in conf:
<!-- 
        Enable web consoles, REST and Ajax APIs and demos
        Take a look at activemq-jetty.xml for more details 
    -->
    <import resource="jetty.xml"/>

> ActiveMQ failed to start after server crash
> -------------------------------------------
>
>                 Key: AMQ-2672
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2672
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.3.0, 5.3.1
>         Environment: Windows 2003
>            Reporter: Rural Hunter
>            Assignee: Rob Davies
>
> I'm using kahadb as storage. I have seen this several times, for both 5.3.0 and 5.3.1.
If there are many messages in queues and ActiveMQ is not stopped in a correct manner, such
as server crash or reboot accidentally, then ActiveMQ can not be started. I have to delete
all files in data directory to make it start-able. But this kind of operation causes data
loss. Is there anyway to fix that? Here is the log when it fails to start:
> 2010-03-23 21:28:19,187 | INFO  | ActiveMQ 5.3.1 JMS Message Broker (datacenter) is starting
| org.apache.activemq.broker.BrokerService | main
> 2010-03-23 21:28:19,187 | INFO  | For help or more information please see: http://activemq.apache.org/
| org.apache.activemq.broker.BrokerService | main
> 2010-03-23 21:28:19,937 | INFO  | Kaha Store using data directory D:\Application\apache-activemq-5.3.1\bin\..\data\datacenter\tmp_storage
| org.apache.activemq.kaha.impl.KahaStore | main
> 2010-03-23 21:28:21,687 | ERROR | Failed to start ActiveMQ JMS Message Broker. Reason:
java.lang.NullPointerException | org.apache.activemq.broker.BrokerService | main
> java.lang.NullPointerException
>         at org.apache.kahadb.index.BTreeNode$BTreeIterator.findNextPage(BTreeNode.java:109)
>         at org.apache.kahadb.index.BTreeNode$BTreeIterator.hasNext(BTreeNode.java:120)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$4.execute(KahaDBStore.java:222)
>         at org.apache.kahadb.page.Transaction.execute(Transaction.java:728)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recover(KahaDBStore.java:219)
>         at org.apache.activemq.broker.region.Queue.initialize(Queue.java:251)
>         at org.apache.activemq.broker.region.DestinationFactoryImpl.createDestination(DestinationFactoryImpl.java:83)
>         at org.apache.activemq.broker.region.AbstractRegion.createDestination(AbstractRegion.java:464)
>         at org.apache.activemq.broker.jmx.ManagedQueueRegion.createDestination(ManagedQueueRegion.java:56)
>         at org.apache.activemq.broker.region.AbstractRegion.addDestination(AbstractRegion.java:120)
>         at org.apache.activemq.broker.region.RegionBroker.addDestination(RegionBroker.java:268)
>         at org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:142)
>         at org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:142)
>         at org.apache.activemq.advisory.AdvisoryBroker.addDestination(AdvisoryBroker.java:153)
>         at org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:142)
>         at org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:149)
>         at org.apache.activemq.broker.region.AbstractRegion.start(AbstractRegion.java:94)
>         at org.apache.activemq.broker.region.RegionBroker.start(RegionBroker.java:178)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.start(ManagedRegionBroker.java:100)
>         at org.apache.activemq.broker.TransactionBroker.start(TransactionBroker.java:112)
>         at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:154)
>         at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:154)
>         at org.apache.activemq.broker.BrokerService$3.start(BrokerService.java:1707)
>         at org.apache.activemq.broker.BrokerService.start(BrokerService.java:469)
>         at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:85)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>         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:222)
>         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:728)
>         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
>         at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
>         at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
>         at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
>         at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
>         at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
>         at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
>         at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
>         at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
>         at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:136)
>         at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:82)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
>         at org.apache.activemq.console.Main.main(Main.java:107)
> 2010-03-23 21:28:21,781 | INFO  | ActiveMQ Message Broker (datacenter, null) is shutting
down | org.apache.activemq.broker.BrokerService | main
> 2010-03-23 21:28:21,781 | INFO  | Connector openwire Stopped | org.apache.activemq.broker.TransportConnector
| main
> 2010-03-23 21:28:22,843 | INFO  | ActiveMQ JMS Message Broker (datacenter, null) stopped
| org.apache.activemq.broker.BrokerService | main

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message