Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F7B275A3 for ; Sun, 18 Sep 2011 12:30:35 +0000 (UTC) Received: (qmail 89979 invoked by uid 500); 18 Sep 2011 12:30:35 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 89867 invoked by uid 500); 18 Sep 2011 12:30:34 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 89846 invoked by uid 99); 18 Sep 2011 12:30:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2011 12:30:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2011 12:30:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 97CF4A0865 for ; Sun, 18 Sep 2011 12:30:12 +0000 (UTC) Date: Sun, 18 Sep 2011 12:30:12 +0000 (UTC) From: "Giampaolo Tranchida (JIRA)" To: dev@activemq.apache.org Message-ID: <379870767.40020.1316349012618.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-2284) ClassCastException in KahaDB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13107422#comment-13107422 ] Giampaolo Tranchida commented on AMQ-2284: ------------------------------------------ We see exactly the same error with 5.5.0-fuse-00-27 in high load condition, but only one time. We suspect a problem with the SAN / filesystem that cause a filestore corruption. After server restart all seems OK. Do you have any test case to reproduce this error / bug ? > ClassCastException in KahaDB > ---------------------------- > > Key: AMQ-2284 > URL: https://issues.apache.org/jira/browse/AMQ-2284 > Project: ActiveMQ > Issue Type: Bug > Components: Message Store > Affects Versions: 5.3.0 > Environment: Linux, activemq-core and kahadb 5.3-SNAPSHOT from 2009-06-02 > Reporter: Swen Moczarski > Fix For: 5.6.0 > > > We test the broker with the Kaha message store. After some time we get lots of class cast exceptions: > {noformat} > [2009-06-06 06:01:22,047] [QueueThread:queue://xxx] [ERROR] [org.apache.activemq.broker.region.cursors.AbstractStoreCursor] [Failed to fill batch] > java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.activemq.store.kahadb.MessageDatabase$MessageKeys > at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$4.execute(KahaDBStore.java:228) > at org.apache.kahadb.page.Transaction.execute(Transaction.java:728) > at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recoverNextMessages(KahaDBStore.java:221) > at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:81) > at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:227) > at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.hasNext(AbstractStoreCursor.java:134) > at org.apache.activemq.broker.region.cursors.StoreQueueCursor.hasNext(StoreQueueCursor.java:131) > at org.apache.activemq.broker.region.Queue.doPageIn(Queue.java:1280) > at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:1419) > at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1103) > at org.apache.activemq.thread.DeterministicTaskRunner.runTask(DeterministicTaskRunner.java:84) > at org.apache.activemq.thread.DeterministicTaskRunner$1.run(DeterministicTaskRunner.java:41) > 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:619) > [2009-06-06 06:01:22,048] [QueueThread:queue://xxx] [ERROR] [org.apache.activemq.broker.region.cursors.AbstractStoreCursor] [Failed to fill batch] > java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.activemq.store.kahadb.MessageDatabase$MessageKeys > at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:230) > at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.hasNext(AbstractStoreCursor.java:134) > at org.apache.activemq.broker.region.cursors.StoreQueueCursor.hasNext(StoreQueueCursor.java:131) > at org.apache.activemq.broker.region.Queue.doPageIn(Queue.java:1280) > at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:1419) > at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1103) > at org.apache.activemq.thread.DeterministicTaskRunner.runTask(DeterministicTaskRunner.java:84) > at org.apache.activemq.thread.DeterministicTaskRunner$1.run(DeterministicTaskRunner.java:41) > 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:619) > Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.activemq.store.kahadb.MessageDatabase$MessageKeys > at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$4.execute(KahaDBStore.java:228) > at org.apache.kahadb.page.Transaction.execute(Transaction.java:728) > at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recoverNextMessages(KahaDBStore.java:221) > at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:81) > at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:227) > ... 10 more > {noformat} > For the messages we use the persistence delivery mode. > Our configuration (in Spring) for the persistance adapter: > {code:xml} > > > > > > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira