You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Igor Hjelmstrom Vinhas Ribeiro (JIRA)" <ji...@apache.org> on 2010/04/06 23:35:08 UTC

[jira] Created: (AMQ-2687) NullPointerException at kahadb.

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.


[jira] Commented: (AMQ-2687) NullPointerException at kahadb.

Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58733#action_58733 ] 

Hiram Chirino commented on AMQ-2687:
------------------------------------

Looks like the btree index became inconsistent.  Access logic looks ok, so I'm suspecting it was the btree update logic that may be at fault.  To help me narrow down the search for the culprit.. could you let us what you were doing /w the broker and how you stopped it?  Were you only producing?  producing and consuming?  Did you stop it with a kill -9 or did you power off the box? etc. etc.


> 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.


[jira] Work started: (AMQ-2687) NullPointerException at kahadb.

Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on AMQ-2687 started by Hiram Chirino.

> 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.


[jira] Updated: (AMQ-2687) NullPointerException at kahadb.

Posted by "Bruce Snyder (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruce Snyder updated AMQ-2687:
------------------------------

    Fix Version/s: 5.5.0
                       (was: 5.4.1)

> 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
>             Fix For: 5.5.0
>
>
> 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.


[jira] Commented: (AMQ-2687) NullPointerException at kahadb.

Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58738#action_58738 ] 

Hiram Chirino commented on AMQ-2687:
------------------------------------

found a bug in how the recovery log was loaded and applied.  The net effect was that it was never applied because it was always considered inconsistent. Fixed in rev 932537 in trunk.
It's a long shot, but it might just fix the issue.  Igor, if you get a chance could you get a trunk update and see if the situation improves?

> 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.


[jira] Assigned: (AMQ-2687) NullPointerException at kahadb.

Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiram Chirino reassigned AMQ-2687:
----------------------------------

    Assignee: Hiram Chirino

> 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.


[jira] Commented: (AMQ-2687) NullPointerException at kahadb.

Posted by "Igor Hjelmstrom Vinhas Ribeiro (JIRA)" <ji...@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.