Author: christian.bauer(a)jboss.com
Date: 2009-04-15 11:21:57 -0400 (Wed, 15 Apr 2009)
New Revision: 10426
Modified:
trunk/examples/wiki/src/main/org/jboss/seam/wiki/admin/WikiHttpSessionManager.java
Log:
Minor bugfixes
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-15
14:07:40 UTC (rev 10425)
+++
trunk/examples/wiki/src/main/org/jboss/seam/wiki/admin/WikiHttpSessionManager.java 2009-04-15
15:21:57 UTC (rev 10426)
@@ -204,12 +204,21 @@
for (User userInstance : userInstances) {
// Now fill the OnlineUser DTO which is needed by the UI
- onlineMembers.add(
- new OnlineUser(
- userInstance,
-
onlineUsernames.get(userInstance.getUsername()).getLastAccessedTime()
- )
- );
+ try {
+ onlineMembers.add(
+ new OnlineUser(
+ userInstance,
+
onlineUsernames.get(userInstance.getUsername()).getLastAccessedTime()
+ )
+ );
+ } 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)
+ */
+ }
}
Collections.sort(onlineMembers);
Show replies by date