Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 34176 invoked from network); 5 Aug 2008 03:27:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 03:27:06 -0000 Received: (qmail 33911 invoked by uid 500); 5 Aug 2008 03:27:04 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 33849 invoked by uid 500); 5 Aug 2008 03:27:04 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 33838 invoked by uid 99); 5 Aug 2008 03:27:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2008 20:27:03 -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; Tue, 05 Aug 2008 03:26:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 344FA234C186 for ; Mon, 4 Aug 2008 20:26:44 -0700 (PDT) Message-ID: <955453138.1217906804199.JavaMail.jira@brutus> Date: Mon, 4 Aug 2008 20:26:44 -0700 (PDT) From: "Nandana Mihindukulasooriya (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-3958) ConcurrentModificationException in AxisConfiguration In-Reply-To: <1514122544.1217595991722.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/jira/browse/AXIS2-3958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619772#action_12619772 ] Nandana Mihindukulasooriya commented on AXIS2-3958: --------------------------------------------------- Hi Hans, In this case, I think we will have to synchronize getServiceForActivation method too. But as getServices is a very frequent call which is called several times per request, the cost of this synchronizing may be high. Rather than synchronizing all these methods, shall we use a HashTable for allEndpoints too. I think it will solve the problem in an efficient way. WDYT ? thanks, nandana > ConcurrentModificationException in AxisConfiguration > ---------------------------------------------------- > > Key: AXIS2-3958 > URL: https://issues.apache.org/jira/browse/AXIS2-3958 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: kernel > Environment: Axis2 1.4.1 RC1 artifiacts > Reporter: Hans G Knudsen > Fix For: 1.4.1 > > Attachments: 3958AXIS2.patch, patch.txt, patch_3958_synchronized.txt > > > Hi! > I ran into a : > java.util.ConcurrentModificationException > at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841) > at java.util.HashMap$KeyIterator.next(HashMap.java:877) > at org.apache.axis2.engine.AxisConfiguration.removeServiceGroup(AxisConfiguration.java:395) > at org.apache.axis2.client.ServiceClient.cleanup(ServiceClient.java:813) > In my testsetup I run 5 concurrent threads each running a series of request . > - all creating a new ServiceClient pr request > - reusing the same ConfigurationContext. > /hans -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org