[
https://issues.apache.org/jira/browse/WW-5004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16772272#comment-16772272
]
Juan Santos commented on WW-5004:
---------------------------------
Hi, i'm having a trouble with static parameters, i'm migrating an Application
from Struts 2.3.35 to 2.5.18, i have this Struts configuration:
{code:java}
<action name="OperaCaptSoc" class="AGClsFinancieroAction" method="OperaCapt">
<param name="tipoCons">2</param>
<param name="tipoSoc">${tipoSoc}</param>
<param name="referrercaptura" >1</param>
<result name="success"
type="dispatcher">/WEB-INF/jsp/operacion/ag_operacion_cap.jsp</result>
</action>{code}
In the log i'm getting this stacktrace:
{code:java}
[ERROR] [com.opensymphony.xwork2.interceptor.StaticParametersInterceptor]:
Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'tipoSoc' on 'class
mx.ag.principal.AGClsFinancieroAction: Error setting expression 'tipoSoc' with
value '${tipoSoc}'
[ERROR] [com.opensymphony.xwork2.interceptor.StaticParametersInterceptor]:
Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'tipoSoc' on 'class
mx.ag.principal.AGClsFinancieroAction: Error setting expression 'tipoSoc' with
value '${tipoSoc}'
[ERROR] [com.opensymphony.xwork2.interceptor.StaticParametersInterceptor]:
Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'tipoSoc' on 'class
mx.ag.principal.AGClsFinancieroAction: Error setting expression 'tipoSoc' with
value '${tipoSoc}'
[WARN ] [com.opensymphony.xwork2.util.AbstractLocalizedTextProvider]: Missing
key [devmode.notification] in bundle [mx.ag.AGClsMensajeError]!
[ERROR] [com.opensymphony.xwork2.interceptor.ParametersInterceptor]: Developer
Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'tipoSoc' on 'class
mx.ag.principal.AGClsFinancieroAction: Error setting expression 'tipoSoc' with
value '${tipoSoc}'
[WARN ] [com.opensymphony.xwork2.util.AbstractLocalizedTextProvider]: Missing
key [invalid.fieldvalue.tipoSoc] in bundle [mx.ag.AGClsMensajeError]!
[WARN ] [com.opensymphony.xwork2.util.AbstractLocalizedTextProvider]: Missing
key [invalid.fieldvalue.tipoSoc] in bundles [[formatter, global,
org/apache/struts2/struts-messages, com/opensymphony/xwork2/xwork-messages]]!
[INFO ] [com.opensymphony.xwork2.config.ConfigurationManager]: Detected
container provider [Struts XML configuration provider (struts-default.xml)]
needs to be reloaded. Reloading all providers.
[ERROR] [com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor]: No
result defined for action mx.ag.principal.AGClsFinancieroAction and result input
com.opensymphony.xwork2.config.ConfigurationException: No result defined for
action mx.ag.principal.AGClsFinancieroAction and result input
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:377)
~[struts2-core-2.5.18.jar:2.5.18]{code}
The referrercaptura field doesn´t have a setter or getter in the
action(currently it's working fine with Struts 2.3.35), this field is validated
by a custom interceptor.
The tipoCons and tipoSoc fields have their setters and getters in the Action
class.
I have been trying with Struts 2.5.18 and 2.5.20 and OGNL 3.1.18 and 3.1.15 but
the problem is the same.
Thanks in advance
> No more calling of a static variable in Struts 2.8.20 available
> ---------------------------------------------------------------
>
> Key: WW-5004
> URL: https://issues.apache.org/jira/browse/WW-5004
> Project: Struts 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.5.20
> Environment: Java 7.1 and JSP Websites
> Reporter: Deniz Renkligül
> Priority: Critical
> Labels: build, features, patch, usability
> Fix For: 2.5.21, 2.6
>
>
> After the update from Struts 2.5.18 to 2.5.20 it is not more possible to call
> a java static variable in JSP like
> {code:java}
> <s:property value="@my.package.folder.my.staticClass@myStaticThemeVersion" />
> {code}
> Please see for more details the release notes of 2.5.20
> [link
> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.20|https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.20]
> and I tried without success the following description assigned above in the
> release version notes 2.5.20 with :
> {code:java}
> <constant name="struts.configuration.xml.reload" value="false"/>
> <constant name="struts.serve.static" value="true" />
> {code}
> https://issues.apache.org/jira/browse/WW-4984
>
> Thanks in advance for your support.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)