You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by khandelwalanuj <kh...@gmail.com> on 2015/02/02 15:29:13 UTC

Facing "Failed to remove inactive durable subscriber"

Hi,

Using ActiveMQ 5.10

I am facing below error *sometimes* when broker tries to remove inactive
durable subscriber because of long-time inactivity. And after this error, it
stays forever in broker.

/org.apache.activemq.broker.region.TopicRegion#doCleanup 102 ERROR] - Failed
to remove inactive durable subscriber : /

My broker config looks like: 
 <amq:broker persistent="true" brokerName="testbroker"
        useJmx="true" <b>offlineDurableSubscriberTimeout="172800000"
        offlineDurableSubscriberTaskSchedule="3600000"*
advisorySupport="false">


Thanks,
Anuj



--
View this message in context: http://activemq.2283324.n4.nabble.com/Facing-Failed-to-remove-inactive-durable-subscriber-tp4690820.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Facing "Failed to remove inactive durable subscriber"

Posted by khandelwalanuj <kh...@gmail.com>.
Did anyone get a chance to look at this ?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Facing-Failed-to-remove-inactive-durable-subscriber-tp4690820p4690909.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Facing "Failed to remove inactive durable subscriber"

Posted by Tim Bain <tb...@alumni.duke.edu>.
Sounds like a bug; submit a bug report for it in JIRA.  Put as much
information as possible about exactly how to recreate it; if all you do is
provide this stack trace, there's a good chance it'll get closed as "Cannot
Reproduce" if the person who would implement it tries to recreate the
problem and can't.

I'm aware that it happens only intermittently for you, but at least it does
happen, so describe your setup and the behavior of your producers and
consumers when it does.
On Feb 3, 2015 4:31 AM, "khandelwalanuj" <kh...@gmail.com>
wrote:

> *java.lang.NullPointerException* here.
>
> Attaching the complete stack trace:
>
> [20150121 03:35:33.852 EST (ActiveMQ Durable Subscriber Cleanup Timer)
> org.apache.activemq.broker.region.TopicRegion#doCleanup 102 ERROR] - Failed
> to remove inactive durable subscriber
> *java.lang.NullPointerException
> *        at
>
> org.apache.activemq.store.kahadb.disk.index.BTreeIndex.loadNode(BTreeIndex.java:264)
>         at
>
> org.apache.activemq.store.kahadb.disk.index.BTreeIndex.getRoot(BTreeIndex.java:174)
>         at
>
> org.apache.activemq.store.kahadb.disk.index.BTreeIndex.clear(BTreeIndex.java:202)
>         at
>
> org.apache.activemq.store.kahadb.MessageDatabase$MessageOrderIndex.remove(MessageDatabase.java:2834)
>         at
>
> org.apache.activemq.store.kahadb.MessageDatabase$MessageOrderIndex.clear(MessageDatabase.java:2826)
>         at
>
> org.apache.activemq.store.kahadb.MessageDatabase.updateIndex(MessageDatabase.java:1471)
>         at
>
> org.apache.activemq.store.kahadb.MessageDatabase$15.execute(MessageDatabase.java:1204)
>         at
>
> org.apache.activemq.store.kahadb.disk.page.Transaction.execute(Transaction.java:779)
>         at
>
> org.apache.activemq.store.kahadb.MessageDatabase.process(MessageDatabase.java:1201)
>         at
>
> org.apache.activemq.store.kahadb.MessageDatabase$10.visit(MessageDatabase.java:1104)
>         at
>
> org.apache.activemq.store.kahadb.data.KahaSubscriptionCommand.visit(KahaSubscriptionCommand.java:187)
>         at
>
> org.apache.activemq.store.kahadb.MessageDatabase.process(MessageDatabase.java:1071)
>         at
>
> org.apache.activemq.store.kahadb.MessageDatabase.store(MessageDatabase.java:978)
>         at
>
> org.apache.activemq.store.kahadb.MessageDatabase.store(MessageDatabase.java:958)
>         at
>
> org.apache.activemq.store.kahadb.KahaDBStore$KahaDBTopicMessageStore.deleteSubscription(KahaDBStore.java:788)
>         at
>
> org.apache.activemq.store.ProxyTopicMessageStore.deleteSubscription(ProxyTopicMessageStore.java:103)
>         at
>
> org.apache.activemq.store.ProxyTopicMessageStore.deleteSubscription(ProxyTopicMessageStore.java:103)
>         at
> org.apache.activemq.broker.region.Topic.deleteSubscription(Topic.java:201)
>         at
>
> org.apache.activemq.broker.region.TopicRegion.removeSubscription(TopicRegion.java:199)
>         at
>
> org.apache.activemq.broker.region.TopicRegion.doCleanup(TopicRegion.java:100)
>         at
> org.apache.activemq.broker.region.TopicRegion$1.run(TopicRegion.java:70)
>         at java.util.TimerThread.mainLoop(Timer.java:555)
>         at java.util.TimerThread.run(Timer.java:505)
>
> Please check this.
>
> Thanks,
> Anuj
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Facing-Failed-to-remove-inactive-durable-subscriber-tp4690820p4690913.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: Facing "Failed to remove inactive durable subscriber"

Posted by khandelwalanuj <kh...@gmail.com>.
*java.lang.NullPointerException* here.

Attaching the complete stack trace: 

[20150121 03:35:33.852 EST (ActiveMQ Durable Subscriber Cleanup Timer)
org.apache.activemq.broker.region.TopicRegion#doCleanup 102 ERROR] - Failed
to remove inactive durable subscriber 
*java.lang.NullPointerException
*        at
org.apache.activemq.store.kahadb.disk.index.BTreeIndex.loadNode(BTreeIndex.java:264)
        at
org.apache.activemq.store.kahadb.disk.index.BTreeIndex.getRoot(BTreeIndex.java:174)
        at
org.apache.activemq.store.kahadb.disk.index.BTreeIndex.clear(BTreeIndex.java:202)
        at
org.apache.activemq.store.kahadb.MessageDatabase$MessageOrderIndex.remove(MessageDatabase.java:2834)
        at
org.apache.activemq.store.kahadb.MessageDatabase$MessageOrderIndex.clear(MessageDatabase.java:2826)
        at
org.apache.activemq.store.kahadb.MessageDatabase.updateIndex(MessageDatabase.java:1471)
        at
org.apache.activemq.store.kahadb.MessageDatabase$15.execute(MessageDatabase.java:1204)
        at
org.apache.activemq.store.kahadb.disk.page.Transaction.execute(Transaction.java:779)
        at
org.apache.activemq.store.kahadb.MessageDatabase.process(MessageDatabase.java:1201)
        at
org.apache.activemq.store.kahadb.MessageDatabase$10.visit(MessageDatabase.java:1104)
        at
org.apache.activemq.store.kahadb.data.KahaSubscriptionCommand.visit(KahaSubscriptionCommand.java:187)
        at
org.apache.activemq.store.kahadb.MessageDatabase.process(MessageDatabase.java:1071)
        at
org.apache.activemq.store.kahadb.MessageDatabase.store(MessageDatabase.java:978)
        at
org.apache.activemq.store.kahadb.MessageDatabase.store(MessageDatabase.java:958)
        at
org.apache.activemq.store.kahadb.KahaDBStore$KahaDBTopicMessageStore.deleteSubscription(KahaDBStore.java:788)
        at
org.apache.activemq.store.ProxyTopicMessageStore.deleteSubscription(ProxyTopicMessageStore.java:103)
        at
org.apache.activemq.store.ProxyTopicMessageStore.deleteSubscription(ProxyTopicMessageStore.java:103)
        at
org.apache.activemq.broker.region.Topic.deleteSubscription(Topic.java:201)
        at
org.apache.activemq.broker.region.TopicRegion.removeSubscription(TopicRegion.java:199)
        at
org.apache.activemq.broker.region.TopicRegion.doCleanup(TopicRegion.java:100)
        at
org.apache.activemq.broker.region.TopicRegion$1.run(TopicRegion.java:70)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)

Please check this. 

Thanks,
Anuj



--
View this message in context: http://activemq.2283324.n4.nabble.com/Facing-Failed-to-remove-inactive-durable-subscriber-tp4690820p4690913.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.