activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Brandon (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-1246) Sporatic ArrayOutOfBoundsException with Kaha persistence (in org.apache.activemq.kaha.impl.index.hash.HashPage.addHashEntry)
Date Fri, 08 Jun 2007 23:00:40 GMT

    [ https://issues.apache.org/activemq/browse/AMQ-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39241
] 

Chad Brandon commented on AMQ-1246:
-----------------------------------

I'm now consistently seeing this issue (in a build of 4.2-SNAPSHOT as of yesterday 6/7/2007
as well).    When I get around 200k messages into the topic (the consumer can't pull them
off as fast as they are published) I start getting these errors consistently when I try to
send any more messages.  The error even occurs after the consumer pulls all messages from
the topic and there are no more messages waiting.   The only way to get rid of it (from what
I can tell), is to delete the data in the $ACTIVEMQ_HOME/data directory and restart activemq.

java.lang.IndexOutOfBoundsException: Index: 169, Size: 168
        at java.util.ArrayList.add(ArrayList.java:368)
        at org.apache.activemq.kaha.impl.index.hash.HashPage.addHashEntry(HashPage.java:197)
        at org.apache.activemq.kaha.impl.index.hash.HashPageInfo.addHashEntry(HashPageInfo.java:65)
        at org.apache.activemq.kaha.impl.index.hash.HashBin.addHashEntry(HashBin.java:181)
        at org.apache.activemq.kaha.impl.index.hash.HashBin.put(HashBin.java:144)
        at org.apache.activemq.kaha.impl.index.hash.HashIndex.store(HashIndex.java:230)
        at org.apache.activemq.kaha.impl.container.MapContainerImpl.place(MapContainerImpl.java:389)
        at org.apache.activemq.store.kahadaptor.KahaTopicMessageStore.addMessage(KahaTopicMessageStore.java:62)
        at org.apache.activemq.store.kahadaptor.KahaTransactionStore.addMessage(KahaTransactionStore.java:133)
        at org.apache.activemq.store.kahadaptor.KahaTransactionStore$2.addMessage(KahaTransactionStore.java:68)
        at org.apache.activemq.broker.region.Topic.doMessageSend(Topic.java:349)
        at org.apache.activemq.broker.region.Topic.send(Topic.java:341)
        at org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:306)
        at org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:407)
        at org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:203)
        at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:127)
        at org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:97)
        at org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:137)
        at org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:474)
        at org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:618)
        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:282)
        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:188)
        at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:65)
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:133)
        at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:121)
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137)
        at java.lang.Thread.run(Thread.java:595)
2007-06-08 18:26:19,363 ERROR [STDERR] Exception in thread "pool-3-thread-1"
2007-06-08 18:26:19,363 ERROR [STDERR] javax.ejb.EJBException: java.lang.IndexOutOfBoundsException:
Index: 169, Size: 168

> Sporatic ArrayOutOfBoundsException with Kaha persistence (in org.apache.activemq.kaha.impl.index.hash.HashPage.addHashEntry)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1246
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1246
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.0.0
>         Environment: 4.2-SNAPSHOT (build from 3/26/2007)
>            Reporter: Chad Brandon
>
> This error just started occurring after restarting activemq after its memory got fairly
high (we've been running our app with this same ActiveMQ 4.2 build for several months without
ever seeing this).  It's happening on a persistent topic and doesn't happen after each message
is added to the topic but happens every 20 - 30 messages (the occurrence isn't very consistent).
> java.lang.IndexOutOfBoundsException: Index: 25, Size: 22
>         at java.util.ArrayList.add(ArrayList.java:368)
>         at org.apache.activemq.kaha.impl.index.hash.HashPage.addHashEntry(HashPage.java:197)
>         at org.apache.activemq.kaha.impl.index.hash.HashPageInfo.addHashEntry(HashPageInfo.java:65)
>         at org.apache.activemq.kaha.impl.index.hash.HashBin.addHashEntry(HashBin.java:181)
>         at org.apache.activemq.kaha.impl.index.hash.HashBin.put(HashBin.java:144)
>         at org.apache.activemq.kaha.impl.index.hash.HashIndex.store(HashIndex.java:230)
>         at org.apache.activemq.kaha.impl.container.MapContainerImpl.place(MapContainerImpl.java:389)
>         at org.apache.activemq.store.kahadaptor.KahaTopicMessageStore.addMessage(KahaTopicMessageStore.java:62)
>         at org.apache.activemq.store.kahadaptor.KahaTransactionStore.addMessage(KahaTransactionStore.java:133)
>         at org.apache.activemq.store.kahadaptor.KahaTransactionStore$2.addMessage(KahaTransactionStore.java:68)
>         at org.apache.activemq.broker.region.Topic.doMessageSend(Topic.java:349)
>         at org.apache.activemq.broker.region.Topic.send(Topic.java:341)
>         at org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:306)
>         at org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:407)
>         at org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:203)
>         at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:127)
>         at org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:97)
>         at org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:137)
>         at org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:474)
>         at org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:618)
>         at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:282)
>         at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:188)
>         at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:65)
>         at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:133)
>         at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:121)
>         at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
>         at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137)
>         at java.lang.Thread.run(Thread.java:595)

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


Mime
View raw message