cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34998] New: - ConcurrentModificationException calling session.invalidate()
Date Sat, 21 May 2005 01:51:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34998>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34998

           Summary: ConcurrentModificationException calling
                    session.invalidate()
           Product: Cocoon 2
           Version: Current SVN 2.1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: core
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: peter.brant@wicourts.gov


I'm surprised nobody has reported this yet, but I can't find an existing bug.

If the continuation manager is set to invalidate continuations when the user's 
session expires, a ConcurrentModificationException is thrown when the session 
is explicitly invalidated via session.invalidate().

One line fix is pasted in below.

Index: 
C:/eclipseWorkspace/RELEASE_2_1_7/src/java/org/apache/cocoon/components/flow/Con
tinuationsManagerImpl.java
===================================================================
--- 
C:/eclipseWorkspace/RELEASE_2_1_7/src/java/org/apache/cocoon/components/flow/Con
tinuationsManagerImpl.java	(revision 170978)
+++ 
C:/eclipseWorkspace/RELEASE_2_1_7/src/java/org/apache/cocoon/components/flow/Con
tinuationsManagerImpl.java	(working copy)
@@ -38,6 +38,7 @@
 import org.apache.excalibur.instrument.ValueInstrument;
 
 import java.security.SecureRandom;
+import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -481,7 +482,7 @@
      */
     private void invalidateContinuations(
             WebContinuationsHolder continuationsHolder) {
-        Set continuationIds = continuationsHolder.getContinuationIds();
+        List continuationIds = new ArrayList
(continuationsHolder.getContinuationIds());
         Iterator idsIter = continuationIds.iterator();
         while (idsIter.hasNext()) {
             WebContinuation wk = continuationsHolder.get(idsIter.next());

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message