找不到Liferay 7会话

找不到Liferay 7会话,liferay,liferay-7,Liferay,Liferay 7,我使用了liferay-session-overrid.js,当用户未处于活动状态时,我会执行AuthenticatedSessionManagerUtil.logout(httpRequest,httpResponse) 但是,有时会复制这种未找到会话的错误 我可以解决这个问题吗? 这很少做到,但仍然是一个问题。 尝试对筛选器请求执行操作时出现错误。getSession() 你无法控制。服务器上始终可能不存在会话。这可能是因为您的脚本太晚了,或者是因为会话以其他方式被删除,而您没有检测到。您必

我使用了liferay-session-overrid.js,当用户未处于活动状态时,我会执行
AuthenticatedSessionManagerUtil.logout(httpRequest,httpResponse)
但是,有时会复制这种未找到会话的错误 我可以解决这个问题吗?
这很少做到,但仍然是一个问题。
尝试对筛选器请求执行操作时出现错误。getSession()


你无法控制。服务器上始终可能不存在会话。这可能是因为您的脚本太晚了,或者是因为会话以其他方式被删除,而您没有检测到。您必须考虑这种可能性,并在前端处理错误

    2019-12-11 20:29:32.704 INFO  [default task-7][PreLogoutAction:19] PreLogoutAction was executed!
    2019-12-11 20:29:32.705 INFO  [default task-7][PreLogoutAction:20] User is empty
    2019-12-11 20:29:32.773 INFO  [default task-23][PreLogoutAction:19] PreLogoutAction was executed!
    2019-12-11 20:29:32.779 INFO  [default task-23][PreLogoutAction:20] User is empty
    2019-12-11 20:29:32.840 ERROR [default task-14][VirtualHostFilter:375] javax.servlet.ServletException: Unable to execute request
    javax.servlet.ServletException: Unable to execute request
            at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:204)
 2019-12-11 20:29:32.844 ERROR [default task-14][RestoringCartFilter:62] java.lang.IllegalStateException: UT000010: Session not found ojlT9glxtyQEXskve3QxttVXcsVbrkI86VojtnBc
    java.lang.IllegalStateException: UT000010: Session not found ojlT9glxtyQEXskve3QxttVXcsVbrkI86VojtnBc
            at io.undertow.server.session.InMemorySessionManager$SessionImpl.getAttribute(InMem