Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-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 954797B2C for ; Mon, 26 Sep 2011 12:38:49 +0000 (UTC) Received: (qmail 19000 invoked by uid 500); 26 Sep 2011 12:38:48 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 18847 invoked by uid 500); 26 Sep 2011 12:38:48 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 18839 invoked by uid 99); 26 Sep 2011 12:38:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2011 12:38:48 +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; Mon, 26 Sep 2011 12:38:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2B23FBC532 for ; Mon, 26 Sep 2011 12:38:26 +0000 (UTC) Date: Mon, 26 Sep 2011 12:38:26 +0000 (UTC) From: "Udayanga Wickramasinghe (JIRA)" To: java-dev@axis.apache.org Message-ID: <529956960.12396.1317040706173.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1691865678.50942.1316618228854.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AXIS2-5152) RepositoryListener ConcurrentModification Exception when accessing DeploymentEngine deployerMap 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/AXIS2-5152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Udayanga Wickramasinghe updated AXIS2-5152: ------------------------------------------- Attachment: AXIS2-5152.patch i am including a patch for this issue. please review and commit. > RepositoryListener ConcurrentModification Exception when accessing DeploymentEngine deployerMap > ----------------------------------------------------------------------------------------------- > > Key: AXIS2-5152 > URL: https://issues.apache.org/jira/browse/AXIS2-5152 > Project: Axis2 > Issue Type: Bug > Components: kernel > Reporter: Udayanga Wickramasinghe > Attachments: AXIS2-5152.patch > > > Axis2 DeploymentEngine deployerMap seems to be not thread safe. Following exception can be thrown when there is a high concurrent acceess scenario with multiple deployers in place.. > Exception in thread "Timer-3" java.util.ConcurrentModificationException > at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) > at java.util.HashMap$EntryIterator.next(HashMap.java:834) > at java.util.HashMap$EntryIterator.next(HashMap.java:832) > at org.apache.axis2.deployment.RepositoryListener.loadOtherDirectories(R > epositoryListener.java:270) > at org.apache.axis2.deployment.RepositoryListener.checkServices(Reposito > ryListener.java:253) > at org.apache.axis2.deployment.RepositoryListener.startListener(Reposito > ryListener.java:365) > at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(S > chedulerTask.java:73) > at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask > .java:94) > at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.ru > n(Scheduler.java:93) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org