Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 35237 invoked from network); 6 Apr 2010 21:35:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Apr 2010 21:35:29 -0000 Received: (qmail 26223 invoked by uid 500); 6 Apr 2010 21:35:29 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 26201 invoked by uid 500); 6 Apr 2010 21:35:29 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 26193 invoked by uid 99); 6 Apr 2010 21:35:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 21:35:29 +0000 X-ASF-Spam-Status: No, hits=-1233.4 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 21:35:28 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6259A234C1F2 for ; Tue, 6 Apr 2010 21:35:08 +0000 (UTC) Message-ID: <1797448238.13381270589708397.JavaMail.jira@brutus.apache.org> Date: Tue, 6 Apr 2010 21:35:08 +0000 (UTC) From: "Igor Hjelmstrom Vinhas Ribeiro (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQ-2687) NullPointerException at kahadb. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c 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.