Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5467

Unexpected IllegalStateException error reappearing in the jserver.log after Struts 6.3 upgrade. Earlier with Struts 2.3 this issue got fixed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 6.3.0
    • 6.6.1
    • Core
    • None

    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

          Activity

            People

              lukaszlenart Lukasz Lenart
              attprepaid WEBAPP
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: