Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-3631

ConcurrentModificationException during session serialization

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1.5, 3.2.0
    • Fix Version/s: 3.1.6
    • Component/s: None
    • Labels:
      None
    • Environment:

      JBboss 4.2.2.GA
      Seam 2.0.2.SP1
      JDK 1.5.0_15
      Windows XP Pro SP2

      Description

      Concurrent requests cause java.util.ConcurrentModificationException during session serialization in cluster environment.

      I've initially posted this issue to the RichFaces users forum, but then posted to the Clustering/JBoss, too:

      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=136590

      where I've got feedback I'm on the right track my problem is probably caused by the RichFaces (Ajax4Jsf) library. Basically the web session gets modified while it is been serialized when concurrent requests are made. bstansberry@jboss.com have written:

      "The session management layer does not prevent concurrent access to the session. The session's internal data structures can deal with concurrency (e.g. the attribute map is a ConcurrentHashMap) but if the objects you'll store in it are going to be accessed concurrently, they'll need to be thread safe or have access to them synchronized."

      I've prepared minimal test case (I'm about to attach) demonstrating the problem. I've tried it with both RichFaces 3.1.5.GA (part of Seam 2.0.2.SP1) and RichFaces 3.2.0.SR1 (which I'm using with my application).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ayanul Aleksej Yanul
                  Reporter:
                  stani0 Stanimir Stamenkov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: