Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 23990 invoked from network); 10 Apr 2008 06:59:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2008 06:59:39 -0000 Received: (qmail 13336 invoked by uid 500); 10 Apr 2008 06:59:39 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 13011 invoked by uid 500); 10 Apr 2008 06:59:38 -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 12994 invoked by uid 99); 10 Apr 2008 06:59:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 23:59:38 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 06:58:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EDD7B234C0C3 for ; Wed, 9 Apr 2008 23:56:46 -0700 (PDT) Message-ID: <1564494047.1207810606973.JavaMail.jira@brutus> Date: Wed, 9 Apr 2008 23:56:46 -0700 (PDT) From: "Rob Davies (JIRA)" To: dev@activemq.apache.org Subject: [jira] Assigned: (AMQ-1215) ArrayIndexOutOfBoundsException during ServerSessionPoolImpl.getServerSession() In-Reply-To: <14470927.1175069194506.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rob Davies reassigned AMQ-1215: ------------------------------- Assignee: Rob Davies > ArrayIndexOutOfBoundsException during ServerSessionPoolImpl.getServerSession() > ------------------------------------------------------------------------------ > > Key: AMQ-1215 > URL: https://issues.apache.org/activemq/browse/AMQ-1215 > Project: ActiveMQ > Issue Type: Bug > Components: Connector > Affects Versions: 4.1.0 > Environment: uname -a: > Linux 2.6.9-42.0.3.plus.c4smp #1 SMP Fri Oct 6 12:16:15 CDT 2006 i686 i686 i386 GNU/Linux > java -version: > java version "1.6.0" > Java(TM) SE Runtime Environment (build 1.6.0-b105) > Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode) > JVM options: > -Dcom.sun.management.jmxremote -server -Xmx1024m > ActiveMQ revision: 516005 > JCA connector is Jencks 2.0 > Using spring 2.0 > Reporter: Francesco Vivoli > Assignee: Rob Davies > Fix For: 5.1.0 > > > After some hours of execution my service stopped consuming messages; the log file shows this: > 2007-03-23 18:26:18,573 [ool-1-thread-21] ERROR ServerSessionPoolImpl - Error redispatching unconsumed messages from stale session > java.lang.IndexOutOfBoundsException: Index: 73, Size: 73 > at edu.emory.mathcs.backport.java.util.concurrent.CopyOnWriteArrayList.remove(CopyOnWriteArrayList.java:346) > at org.apache.activemq.ra.ServerSessionPoolImpl.getServerSession(ServerSessionPoolImpl.java:104) > at org.apache.activemq.ra.ServerSessionPoolImpl.dispatchToSession(ServerSessionPoolImpl.java:138) > at org.apache.activemq.ra.ServerSessionPoolImpl.removeFromPool(ServerSessionPoolImpl.java:180) > at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:179) > at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:290) > at org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:619) > 2007-03-23 18:26:18,575 [ol-1-thread-127] ERROR ServerSessionPoolImpl - Error redispatching unconsumed messages from stale session > java.lang.IndexOutOfBoundsException: Index: 67, Size: 67 > at edu.emory.mathcs.backport.java.util.concurrent.CopyOnWriteArrayList.remove(CopyOnWriteArrayList.java:346) > at org.apache.activemq.ra.ServerSessionPoolImpl.getServerSession(ServerSessionPoolImpl.java:104) > at org.apache.activemq.ra.ServerSessionPoolImpl.dispatchToSession(ServerSessionPoolImpl.java:138) > at org.apache.activemq.ra.ServerSessionPoolImpl.removeFromPool(ServerSessionPoolImpl.java:180) > at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:179) > at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:290) > at org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:619) > 2007-03-23 18:26:18,583 [ol-1-thread-116] ERROR ServerSessionPoolImpl - Error redispatching unconsumed messages from stale session > java.lang.IndexOutOfBoundsException: Index: 65, Size: 65 > at edu.emory.mathcs.backport.java.util.concurrent.CopyOnWriteArrayList.remove(CopyOnWriteArrayList.java:346) > at org.apache.activemq.ra.ServerSessionPoolImpl.getServerSession(ServerSessionPoolImpl.java:104) > at org.apache.activemq.ra.ServerSessionPoolImpl.dispatchToSession(ServerSessionPoolImpl.java:138) > at org.apache.activemq.ra.ServerSessionPoolImpl.removeFromPool(ServerSessionPoolImpl.java:180) > at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:179) > at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:290) > at org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:619) > the org.jencks.JCAConnector is configured as follows: > > > > > > > > > > > > > > where initially stage1.maxSessions=250 and the threadpool size was set to 300. > I have been able to avoid this problem reducing the concurrency, but of course this > is not the solution. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.