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

NotSerializableException - org.apache.struts2.dispatcher.StrutsRequestWrapper

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.13
    • Fix Version/s: 2.5.16
    • Component/s: None
    • Labels:
      None

      Description

      We are attempting to test session replication on our websphere servers but run into the given error when websphere tries to serialize the session.

      [10/18/17 10:33:38:094 EDT] 00000335 WASSession    E MTMBuffWrapper getBytes write object exception. e= java.io.NotSerializableException: org.apache.struts2.dispatcher.StrutsRequestWrapper
      

      It appears the ActionInvocation stores the ActionContext which stores the offending property: com.opensymphony.xwork2.dispatcher.HttpServletRequest --> StrutsRequestWrapper

      After a little digging we narrowed it down to our use of the TokenSessionStoreInterceptor which stores the value in the session and uses it to redirect the failed request to the original one. Is this intended/expected? Or is there no requirement that the contents in the session be serializable - in which case we would have to look to our own solution.

        Attachments

          Activity

            People

            • Assignee:
              yasser.zamani Yasser Zamani
              Reporter:
              MichaelHum Michael Hum
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: