[seam-commits] Seam SVN: r10352 - trunk/examples/wiki/src/main/org/jboss/seam/wiki/admin.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Apr 8 13:38:22 EDT 2009


Author: christian.bauer at jboss.com
Date: 2009-04-08 13:38:22 -0400 (Wed, 08 Apr 2009)
New Revision: 10352

Modified:
   trunk/examples/wiki/src/main/org/jboss/seam/wiki/admin/WikiHttpSessionManager.java
Log:
Swallow exception on member display

Modified: trunk/examples/wiki/src/main/org/jboss/seam/wiki/admin/WikiHttpSessionManager.java
===================================================================
--- trunk/examples/wiki/src/main/org/jboss/seam/wiki/admin/WikiHttpSessionManager.java	2009-04-08 16:02:35 UTC (rev 10351)
+++ trunk/examples/wiki/src/main/org/jboss/seam/wiki/admin/WikiHttpSessionManager.java	2009-04-08 17:38:22 UTC (rev 10352)
@@ -181,8 +181,17 @@
 
                 // Try to get the session with the smallest idle time
                 if (onlineUsernames.containsKey(username)) {
-                    if (session.getLastAccessedTime() > onlineUsernames.get(username).getLastAccessedTime()) {
-                        onlineUsernames.put(username, session);
+                    try {
+                        if (session.getLastAccessedTime() > onlineUsernames.get(username).getLastAccessedTime()) {
+                            onlineUsernames.put(username, session);
+                        }
+                    } catch (IllegalStateException ex) {
+                        // Just ignore that:
+                        /*
+                        Caused by: java.lang.IllegalStateException: getLastAccessedTime: Session already invalidated
+                        at org.apache.catalina.session.StandardSession.getLastAccessedTime(StandardSession.java:439)
+                        at org.apache.catalina.session.StandardSessionFacade.getLastAccessedTime(StandardSessionFacade.java:84)
+                         */
                     }
                 } else {
                     onlineUsernames.put(username, session);




More information about the seam-commits mailing list