Description
Issue: Unexpected IllegalStateException error reappearing in the jserver.log after Struts 6.3 upgrade.
Exception:
2024-07-27 00:00:45,304 ERROR [io.undertow.request] (default task-3749) UT005023: Exception handling request to xxxx.jsp: javax.servlet.ServletException: java.lang.IllegalStateException: UT000010: Session is invalid zrSElT9n3wtMWDS6sfTD7dL4F1p-S-JZlQPHv17B
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:589)
at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at com.ericsson.eus.pps.scare.filter.security.DeepLinkingFilter.doFilter(DeepLinkingFilter.java:124)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
NOTE: RedHat recommended following configuration to fix the "Unexpected IllegalStateException error" in server logs.
In struts.xml
<constant name="struts.handle.exception" value="false" />
We applied this configuration in Struts 2.3, and it was resolved. But now it's appearing in Struts 6.3 (post 2.3 to 6.3 migration). It seems this configuration is not working in Struts 6.3. Could you please help us in resolving this issue in Struts 6.3.
Attachments
Issue Links
- is duplicated by
-
WW-5487 Memory leak observed in struts 6.3.0.2 when IllegalStateException thrown from UIBean (Struts2-core class) while accessing nonce session variable
- Closed