Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 95803 invoked from network); 9 Apr 2010 16:25:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Apr 2010 16:25:38 -0000 Received: (qmail 39304 invoked by uid 500); 9 Apr 2010 16:25:38 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 39247 invoked by uid 500); 9 Apr 2010 16:25:38 -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 39239 invoked by uid 99); 9 Apr 2010 16:25:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Apr 2010 16:25:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Fri, 09 Apr 2010 16:25:35 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DAD4029A0013 for ; Fri, 9 Apr 2010 16:25:10 +0000 (UTC) Message-ID: <2146097810.15641270830310894.JavaMail.jira@brutus.apache.org> Date: Fri, 9 Apr 2010 16:25:10 +0000 (UTC) From: "Igor Hjelmstrom Vinhas Ribeiro (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2687) NullPointerException at kahadb. In-Reply-To: <1797448238.13381270589708397.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58735#action_58735 ] Igor Hjelmstrom Vinhas Ribeiro commented on AMQ-2687: ----------------------------------------------------- I was running both a producer and a consumer - both working in a queue that had roughly 300.000 messages. I then executed a "prune" on that queue... saw it executing for a while (it had erased a few thousand messages already), clicked on "delete" (for the same queue), saw the Webconsole hang/stop responding and did a kill -9 in the Java process. After that the queue would no longer start. Let me know if you need any more info, help, or want me to reproduce it again. > 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.0, 5.3.1, 5.4.0 > Reporter: Igor Hjelmstrom Vinhas Ribeiro > Assignee: Hiram Chirino > > 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.