-
1. Re: Wildfly 9.2 + JRE1.8 + JSF 1.2 + RichFaces3.3 Never Destroy session with timeout session
claudio4j Jul 17, 2017 1:48 PM (in response to pepe.caballero.caballero)You need to make sure there is no client call polling (ajax) server side resource, if this happens the session will not expire.
You can activate access log on jboss to see if there is any client request.
/subsystem=undertow/server=default-server/host=default-host/setting=access-log:add(use-server-log=true)
or
-
2. Re: Wildfly 9.2 + JRE1.8 + JSF 1.2 + RichFaces3.3 Never Destroy session with timeout session
pepe.caballero.caballero Jul 18, 2017 7:05 AM (in response to claudio4j)I have been migrate from Weblogic 10.3.6 to WildFly 9.2 and it was perfect in Weblogic.
I will try to log it but i dont think that the problem was Call polling.
-
3. Re: Wildfly 9.2 + JRE1.8 + JSF 1.2 + RichFaces3.3 Never Destroy session with timeout session
pepe.caballero.caballero Jul 18, 2017 9:44 AM (in response to claudio4j)I try to change in web.xml
<session-config>
<session-timeout>1</session-timeout>
</session-config>
Now, i launch application and login it. So, i have 1 session with my session data.
After this i close the windows (navigator) and wait 2 minutes to expirte time.
In log i get
15:40:52,150 ERROR [stderr] (default task-28) Exception in thread "default task-28" java.lang.IllegalStateException: UT000021: Session already invalidated
15:40:52,151 ERROR [stderr] (default task-28) at io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:484)
15:40:52,151 ERROR [stderr] (default task-28) at io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:473)
15:40:52,151 ERROR [stderr] (default task-28) at io.undertow.servlet.spec.HttpSessionImpl.invalidate(HttpSessionImpl.java:196)
15:40:52,151 ERROR [stderr] (default task-28) at es.ahcae.enf.rrhh.view.comun.MySessionListener.sessionDestroyed(MySessionListener.java:55)
But it is still en Memory.
-
4. Re: Wildfly 9.2 + JRE1.8 + JSF 1.2 + RichFaces3.3 Never Destroy session with timeout session
jaikiran Jul 20, 2017 3:16 AM (in response to pepe.caballero.caballero)Pepe Caballero Caballero wrote:
But it is still en Memory.
When you say it's still in memory, what exact object are you referring to? How are you checking what objects are being held on to?
-
5. Re: Wildfly 9.2 + JRE1.8 + JSF 1.2 + RichFaces3.3 Never Destroy session with timeout session
pepe.caballero.caballero Jul 20, 2017 3:20 AM (in response to jaikiran)I use
Home · javamelody/javamelody Wiki · GitHub
to monitoring my app. In Sessions info i can see still .active sessions with "expiration time" in past.