activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liurui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-3098) Failed to page in more queue messages - Cannot consume messages
Date Wed, 05 Mar 2014 05:39:43 GMT

    [ https://issues.apache.org/jira/browse/AMQ-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13920537#comment-13920537
] 

liurui commented on AMQ-3098:
-----------------------------

I am experience the same problem. Version is 5.7.0.  

 I had to delete the queue  in order to get ActiveMQ to start consuming messages.

2014-03-05 11:27:41,230 | ERROR | org.apache.activemq.broker.region.cursors.QueueStorePrefetch@19f0b0a6:queue.psu.product.update,batchResetNeeded=false,storeHasMessages=true,size=935106,cacheEnabled=false,maxBatchSize:200
- Failed to fill batch | org.apache.activemq.broker.region.cursors.AbstractStoreCursor | ActiveMQ
BrokerService[slave] Task-176
java.io.IOException: Invalid location: 965:1286, : java.lang.NegativeArraySizeException
        at org.apache.kahadb.journal.DataFileAccessor.readRecord(DataFileAccessor.java:92)
        at org.apache.kahadb.journal.Journal.read(Journal.java:604)
        at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:879)
        at org.apache.activemq.store.kahadb.KahaDBStore.loadMessage(KahaDBStore.java:1030)
        at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$4.execute(KahaDBStore.java:558)
        at org.apache.kahadb.page.Transaction.execute(Transaction.java:769)
        at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recoverNextMessages(KahaDBStore.java:547)
        at org.apache.activemq.store.ProxyMessageStore.recoverNextMessages(ProxyMessageStore.java:106)
        at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:97)
        at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:274)
        at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:110)
        at org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157)
        at org.apache.activemq.broker.region.Queue.doPageInForDispatch(Queue.java:1765)
        at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:1993)
        at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1486)
        at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
        at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
2014-03-05 11:27:41,230 | ERROR | org.apache.activemq.broker.region.cursors.QueueStorePrefetch@19f0b0a6:queue.psu.product.update,batchResetNeeded=false,storeHasMessages=true,size=935106,cacheEnabled=false,maxBatchSize:200
- Failed to fill batch | org.apache.activemq.broker.region.cursors.AbstractStoreCursor | ActiveMQ
BrokerService[slave] Task-176
java.lang.RuntimeException: java.io.IOException: Invalid location: 965:1286, : java.lang.NegativeArraySizeException
        at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:277)
        at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:110)
        at org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157)
        at org.apache.activemq.broker.region.Queue.doPageInForDispatch(Queue.java:1765)
        at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:1993)
        at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1486)
        at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)

> Failed to page in more queue messages - Cannot consume messages
> ---------------------------------------------------------------
>
>                 Key: AMQ-3098
>                 URL: https://issues.apache.org/jira/browse/AMQ-3098
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.4.2
>            Reporter: Loc Truong
>            Priority: Critical
>
> With the error messages below, Consumers cannot consume any message until clearing the
data folder then restart ActiveMQ, assuming old messages are lost.
> ERROR | Failed to fill batch
> java.lang.RuntimeException: java.io.IOException: Invalid location: 1711:34233, : java.lang.NegativeArraySizeException
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:265)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:110)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157)
>         at org.apache.activemq.broker.region.Queue.doPageIn(Queue.java:1678)
>         at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:1898)
>         at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1425)
>         at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
>         at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
> Caused by: java.io.IOException: Invalid location: 1711:34233, : java.lang.NegativeArraySizeException
>         at org.apache.kahadb.journal.DataFileAccessor.readRecord(DataFileAccessor.java:94)
>         at org.apache.kahadb.journal.Journal.read(Journal.java:596)
>         at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:786)
>         at org.apache.activemq.store.kahadb.KahaDBStore.loadMessage(KahaDBStore.java:956)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$5.execute(KahaDBStore.java:494)
>         at org.apache.kahadb.page.Transaction.execute(Transaction.java:728)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recoverNextMessages(KahaDBStore.java:485)
>         at org.apache.activemq.store.ProxyMessageStore.recoverNextMessages(ProxyMessageStore.java:88)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:97)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:262)
>         ... 7 more
> ERROR | Failed to page in more queue messages
> java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Invalid
location: 1711:34233, : java.lang.NegativeArraySizeException
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:113)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157)
>         at org.apache.activemq.broker.region.Queue.doPageIn(Queue.java:1678)
>         at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:1898)
>         at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1425)
>         at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
>         at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
> Caused by: java.lang.RuntimeException: java.io.IOException: Invalid location: 1711:34233,
: java.lang.NegativeArraySizeException
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:265)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:110)
>         ... 6 more
> Caused by: java.io.IOException: Invalid location: 1711:34233, : java.lang.NegativeArraySizeException
>         at org.apache.kahadb.journal.DataFileAccessor.readRecord(DataFileAccessor.java:94)
>         at org.apache.kahadb.journal.Journal.read(Journal.java:596)
>         at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:786)
>         at org.apache.activemq.store.kahadb.KahaDBStore.loadMessage(KahaDBStore.java:956)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$5.execute(KahaDBStore.java:494)
>         at org.apache.kahadb.page.Transaction.execute(Transaction.java:728)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recoverNextMessages(KahaDBStore.java:485)
>         at org.apache.activemq.store.ProxyMessageStore.recoverNextMessages(ProxyMessageStore.java:88)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:97)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:262)
>         ... 7 more



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message