activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sachin (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (AMQ-1246) Sporatic ArrayOutOfBoundsException with Kaha persistence (in org.apache.activemq.kaha.impl.index.hash.HashPage.addHashEntry)
Date Mon, 27 Aug 2007 11:21:22 GMT

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

Sachin reopened AMQ-1246:
-------------------------


Re-opening this issue.

We still face the same issue and steps of reproductions are more or less same as described
by the original filer.

We are using activemq-5.0 snapshot dated 5th august 2007
Here is the latest stack trace:

Caused by: java.lang.IndexOutOfBoundsException: Index: 163, Size: 162
	at java.util.ArrayList.add(Unknown Source)
	at org.apache.activemq.kaha.impl.index.hash.HashPage.addHashEntry(HashPage.java:191)
	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:192)
	at org.apache.activemq.kaha.impl.index.hash.HashBin.put(HashBin.java:151)
	at org.apache.activemq.kaha.impl.index.hash.HashIndex.store(HashIndex.java:230)
	at org.apache.activemq.kaha.impl.container.MapContainerImpl.put(MapContainerImpl.java:292)
	at org.apache.activemq.store.kahadaptor.KahaMessageStore.addMessage(KahaMessageStore.java:55)
	at org.apache.activemq.store.kahadaptor.KahaTransactionStore.addMessage(KahaTransactionStore.java:133)
	at org.apache.activemq.store.kahadaptor.KahaTransactionStore$1.addMessage(KahaTransactionStore.java:56)
	at org.apache.activemq.broker.region.Queue.doMessageSend(Queue.java:447)
	at org.apache.activemq.broker.region.Queue.send(Queue.java:436)
	at org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:305)
	at org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:412)
	at org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:220)
	at org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:97)
	at org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:136)
	at org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:454)
	at org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:617)
	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:302)
	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:206)
	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:126)
	at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:85)
	at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:154)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:140)

Thanks
Sachin



> 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
>            Assignee: Rob Davies
>             Fix For: 5.0.0
>
>
> 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