ICEpush
  1. ICEpush
  2. PUSH-152

BrowserDispatcher throws java.util.ConcurrentModificationException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha3
    • Fix Version/s: EE-3.2.0.BETA, EE-3.2.0.GA, 3.3
    • Component/s: Integrations
    • Labels:
      None
    • Environment:
      Vaadin 6.6.8, Vaadin IcePush addon 0.2.1, Tomcat 6.0.33, JRockit JRE 1.6.0_24-b07

      Description

      Occasionally IcePush throws following exceptions:

      Caused by: java.util.ConcurrentModificationException
               at java.util.HashMap$HashIterator.nextEntry(HashMap.java:977)
               at java.util.HashMap$ValueIterator.next(HashMap.java:1006)
               at java.util.AbstractCollection.toArray(AbstractCollection.java:124)
               at java.util.ArrayList.<init>(ArrayList.java:131)
               at org.icepush.servlet.BrowserDispatcher.discardUnusedServlets(BrowserDispatcher.java:89)
               at org.icepush.servlet.BrowserDispatcher.service(BrowserDispatcher.java:47)
               at org.icepush.servlet.PathDispatcher.service(PathDispatcher.java:45)
               at org.icepush.servlet.MainServlet.service(MainServlet.java:71)

      Discarding unused servlets should be thread-safe. This looks to be tightly linked to issue PUSH-151. This exception is thrown from exactly the same line as exception described in issue PUSH-151.

        Activity

        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ken Fyten made changes -
        Fix Version/s EE-3.2.0.BETA [ 10574 ]
        Jack Van Ooststroom made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Jack Van Ooststroom added a comment -

        Synchronization is in place and iteration in both places happens similarly now with new ArrayList being created. Marking this one as FIXED.

        Show
        Jack Van Ooststroom added a comment - Synchronization is in place and iteration in both places happens similarly now with new ArrayList being created. Marking this one as FIXED.
        Hide
        Jack Van Ooststroom added a comment -

        Sending icepush-ee/core/src/main/java/org/icepush/servlet/BrowserDispatcher.java
        Transmitting file data .
        Committed revision 32858.

        Show
        Jack Van Ooststroom added a comment - Sending icepush-ee/core/src/main/java/org/icepush/servlet/BrowserDispatcher.java Transmitting file data . Committed revision 32858.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #32858 Tue Dec 18 14:37:05 MST 2012 jack.van.ooststroom Fixed JIRA PUSH-152 : BrowserDispatcher throws java.util.ConcurrentModificationException
        Files Changed
        Commit graph MODIFY /icepush/trunk/icepush/core/src/main/java/org/icepush/servlet/BrowserDispatcher.java
        Jack Van Ooststroom made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Ken Fyten made changes -
        Fix Version/s 3.3 [ 10374 ]
        Ken Fyten made changes -
        Fix Version/s EE-3.2.0.GA [ 10323 ]
        Jack Van Ooststroom made changes -
        Field Original Value New Value
        Assignee Jack Van Ooststroom [ jack.van.ooststroom ]
        Gaz Limebranch created issue -

          People

          • Assignee:
            Jack Van Ooststroom
            Reporter:
            Gaz Limebranch
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: