Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3104

kahaDB 3 fails to start after server VM reset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 5.4.2
    • 5.6.0
    • Message Store
    • None
    • FreeBSD 8.1, openjdk 1.6.20

    Description

      KahaDB fails to start after RESET (poweroff) virtual machine with activemq broker.

      2010-12-24 13:08:07,577 | WARN | destroyApplicationContextOnStop parameter is deprecated, please use shutdown hooks instead | org.apache.activemq.xbean.XBeanBrokerService | main
      2010-12-24 13:08:07,619 | INFO | PListStore:/usr/local/lib/activemq/data/localhost/tmp_storage started | org.apache.activemq.store.kahadb.plist.PListStore | main
      2010-12-24 13:08:07,687 | INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/usr/local/lib/activemq/data/kahadb] | org.apache.activemq.broker.BrokerService | main
      2010-12-24 13:08:09,706 | INFO | KahaDB is version 3 | org.apache.activemq.store.kahadb.MessageDatabase | main
      2010-12-24 13:08:09,727 | ERROR | Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Invalid location: 1:490436, : java.lang.NegativeArraySizeException | org.apache.activemq.broker.BrokerService | main
      java.io.IOException: Invalid location: 1:490436, : java.lang.NegativeArraySizeException
      at org.apache.kahadb.journal.DataFileAccessor.readRecord(DataFileAccessor.java:94)
      at org.apache.kahadb.journal.Journal.read(Journal.java:596)
      at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:786)
      at org.apache.activemq.store.kahadb.MessageDatabase.recoverProducerAudit(MessageDatabase.java:484)
      at org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:438)
      at org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:315)
      at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:357)
      at org.apache.activemq.store.kahadb.MessageDatabase.doStart(MessageDatabase.java:222)
      at org.apache.activemq.store.kahadb.KahaDBStore.doStart(KahaDBStore.java:180)
      at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
      at org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.start(KahaDBPersistenceAdapter.java:186)
      at org.apache.activemq.broker.BrokerService.start(BrokerService.java:485)
      at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
      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$1.<init>(XBeanBrokerFactory.java:117)
      at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:115)
      at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:71)
      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:143)
      at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
      at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:85)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
      at org.apache.activemq.console.Main.main(Main.java:107)
      2010-12-24 13:08:09,749 | INFO | ActiveMQ Message Broker (localhost, null) is shutting down | org.apache.activemq.broker.BrokerService | main
      2010-12-24 13:08:09,751 | INFO | Network Connector toRADIM Stopped | org.apache.activemq.network.NetworkConnector | main
      2010-12-24 13:08:09,751 | INFO | Connector openwire Stopped | org.apache.activemq.broker.TransportConnector | main
      2010-12-24 13:08:09,765 | INFO | PListStore:/usr/local/lib/activemq/data/localhost/tmp_storage stopped | org.apache.activemq.store.kahadb.plist.PListStore | main
      2010-12-24 13:08:09,765 | INFO | Stopping async queue tasks | org.apache.activemq.store.kahadb.KahaDBStore | main
      2010-12-24 13:08:09,765 | INFO | Stopping async topic tasks | org.apache.activemq.store.kahadb.KahaDBStore | main
      2010-12-24 13:08:09,765 | INFO | Stopped KahaDB | org.apache.activemq.store.kahadb.KahaDBStore | main
      2010-12-24 13:08:10,250 | INFO | ActiveMQ JMS Message Broker (localhost, null) stopped | org.apache.activemq.broker.BrokerService | main

      Attachments

        1. db.data.xz
          0.4 kB
          Radim Kolar
        2. db.redo.xz
          0.2 kB
          Radim Kolar
        3. db-1.log.xz
          5 kB
          Radim Kolar

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hsn Radim Kolar
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: