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

ServletDispatcherResult can't handle parameters anymore

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.5, 2.5.8
    • Fix Version/s: 2.5.10
    • Component/s: Core Results
    • Labels:
      None

      Description

      I have an action like this

      Bar.java
      @Action(value = "execute", results = @Result(name = SUCCESS, type = DISPATCHER, location = "index.jsp?foo=bar"))
      public String execute() {
          return super.execute();
      }
      

      which leads to an error in the ServletDispatcherResult

      java.lang.IllegalAccessError: HttpParameters are immutable, you cannot put values directly!
              at org.apache.struts2.dispatcher.HttpParameters.putAll(HttpParameters.java:132)
              at org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:148)
              at org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208)
             at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:366)
              at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:270) 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                Michael Hintenaus Michael Hintenaus
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: