struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4729) ServletDispatcherResult can't handle parameters anymore
Date Thu, 22 Dec 2016 09:43:58 GMT

     [ https://issues.apache.org/jira/browse/WW-4729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-4729:
------------------------------
    Description: 
I have an action like this

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

which leads to an error in the ServletDispatcherResult

{noformat}
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)

{noformat}

  was:
I have an action like this

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

which leads to an error in the ServletDispatcherResult

{noformat}
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)

{noformat]


> ServletDispatcherResult can't handle parameters anymore
> -------------------------------------------------------
>
>                 Key: WW-4729
>                 URL: https://issues.apache.org/jira/browse/WW-4729
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Results
>    Affects Versions: 2.5.5, 2.5.8
>            Reporter: Michael Hintenaus
>             Fix For: 2.5.next
>
>
> I have an action like this
> {code:title=Bar.java|borderStyle=solid}
> @Action(value = "execute", results = @Result(name = SUCCESS, type = DISPATCHER, location
= "index.jsp?foo=bar"))
> public String execute() {
>     return super.execute();
> }
> {code}
> which leads to an error in the ServletDispatcherResult
> {noformat}
> 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)

> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message