[ 
https://issues.apache.org/jira/browse/AXIS2-3958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619022#action_12619022
 ] 

Hans G Knudsen commented on AXIS2-3958:
---------------------------------------

Hi Nandana!

I am testing a solution where I replace HashMap with ConcurrentHashMap - in 
AxisConfiguration...

But this would imply an API change as getServices has to be modified to :

    // To get all the services in the system
    public java.util.AbstractMap getServices() {
        return allServices;
    }

- which involves a correction within Axis2...

Right now I cannot see any other solutions - as the 'allServices' is published 
by getServices...

Maybe - it can be solved by copying allServices (in getService) - but I donot 
know i all external usage is READ only...

/hans



> 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
>
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to