axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinath Perera (JIRA)" <>
Subject [jira] Resolved: (AXIS2-4179) Make PolicySubject of AxisDescription thread-safe
Date Wed, 22 Dec 2010 06:36:01 GMT


Srinath Perera resolved AXIS2-4179.

    Resolution: Fixed

this has been applied, not sure how ;)

> Make PolicySubject of AxisDescription thread-safe 
> --------------------------------------------------
>                 Key: AXIS2-4179
>                 URL:
>             Project: Axis2
>          Issue Type: Improvement
>            Reporter: Nandana Mihindukulasooriya
>            Assignee: Nandana Mihindukulasooriya
>         Attachments: AXIS2-4179.patch
> Each AxisDescription instance (AxisService, AxisOperation, etc.) has a "PolicySubject"
field containing the policy components (policy, policy reference) attached at that subject.
The problem is that this PolicySubject class is not thread safe - it maintains a HashMap with
all policy components (mapped by their id). So when users are somehow modifying the policy
of a subject (attaching new components or removing some) if meanwhile a service execution
calls MessageContext.getEffectivePolicy(), which iterates over the policy components, a ConcurrentModificationException
is thrown. In that case the service invocation will fail and a fault will be send to the client.

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:
For additional commands, e-mail:

View raw message