NullPointerException at kahadb.
-------------------------------

                 Key: AMQ-2687
                 URL: https://issues.apache.org/activemq/browse/AMQ-2687
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.3.1, 5.3.0, 5.4.0
            Reporter: Igor Hjelmstrom Vinhas Ribeiro


Hi!

I am receiving a NullPointerException when trying to start up activemq after a 
crash.

This is similar to http://issues.apache.org/activemq/browse/AMQ-2512 and 
http://issues.apache.org/activemq/browse/AMQ-2672 with the important difference 
that I confirmed this happens right now with:
   5.3.0
   5.3.1
   The current TRUNK revision (I tested with revision 931309 from SVN).

Also, this happens with both the default (store) cursor and fileQueueCursor. (I 
tried the solution given by Dariusz Szablinski at 
http://issues.apache.org/activemq/browse/AMQ-2512 but it did not help).

I uploaded the full directory with activemq built from trunk together with the 
data directory (~85 megs) to: 
http://rapidshare.com/files/372819396/apache-activemq-5.4-SNAPSHOT_-_svn_trunk_revision_931309_with_crashing_data.tar.gz.html

To see the issue, just try to start activemq from this distribution.

ERROR | Failed to start ActiveMQ JMS Message Broker. Reason: 
java.lang.NullPointerException
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:472)
        at 
org.apache.activemq.broker.jmx.ManagedQueueRegion.createDestination(ManagedQueueRegion.java:56)
        at 
org.apache.activemq.broker.region.AbstractRegion.addDestination(AbstractRegion.java:123)
        at 
org.apache.activemq.broker.region.RegionBroker.addDestination(RegionBroker.java:279)
        at 
org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:143)
        at 
org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:143)
        at 
org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:143)
        at 
org.apache.activemq.advisory.AdvisoryBroker.addDestination(AdvisoryBroker.java:157)
        at 
org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:143)
        at 
org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:149)
        at 
org.apache.activemq.broker.region.AbstractRegion.start(AbstractRegion.java:95)
        at 
org.apache.activemq.broker.region.RegionBroker.start(RegionBroker.java:184)
        at 
org.apache.activemq.broker.jmx.ManagedRegionBroker.start(ManagedRegionBroker.java:100)
        at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:155)
        at 
org.apache.activemq.broker.scheduler.SchedulerBroker.start(SchedulerBroker.java:85)
        at 
org.apache.activemq.broker.TransactionBroker.start(TransactionBroker.java:112)
        at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:155)
        at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:155)
        at 
org.apache.activemq.broker.BrokerService$3.start(BrokerService.java:1743)
        at 
org.apache.activemq.broker.BrokerService.start(BrokerService.java:476)
        at 
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:85)
        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:597)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1527)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1468)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
...

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

Reply via email to