Uploaded image for project: 'Rampart'
  1. Rampart
  2. RAMPART-161

java.util.ConcurrentModificationException while a token is associated with a user when sevaral users are using a service

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.4
    • rampart-trust
    • None

    Description

      In the WSO2 Mashup Server [1] we use rampart to secure some backend services using UT. We ran a load test where a user logs in (the login service is secured via UT) and adds a user. When a user is added hes details are also added to the token store so that he can login too. When we ran the above scenario we got a java.util.ConcurrentModificationException. You can refer to the JIRA at [2]. The issue is that when reading the class SimpleTokenStore gets a iterator on a map and then when a user is added details are added to this map. When this happens concurrently the above issue occurs.

      [1] http://wso2.org/projects/mashup
      [2] https://wso2.org/jira/browse/MASHUP-789

      Attachments

        Activity

          People

            ruchith Ruchith B. Gunaratne
            keithgchapman Keith Godwin Chapman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: