Maybe you have a similar issue of [1].

Say you have X that extends ActionSupport. Please make sure if every X 
has been instantiated not manually (e.g. X = new X() inside your java 
files). They should be instantiated via Strut's object factory ( e.g. 
<action class="X").

[1] 
https://issues.apache.org/jira/browse/WW-4813?focusedCommentId=16085291&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16085291

On 9/13/2017 7:31 PM, LAW Andy wrote:
> 
>> On 13 Sep 2017, at 14:17, Lukasz Lenart <lukaszlen...@apache.org> wrote:
>>
>> 2017-09-13 11:02 GMT+02:00 LAW Andy <andy....@roslin.ed.ac.uk>:
>>> Using version 2.5.13 on Tomcat 8.0.21.
>>>
>>> I’ve attached it to this message as a text file.
>>
>> How do you fetch action in
>> "my.domain.controller.ActionOption.getAction(ActionOption.java:138)" ?
>> Do you construct those actions manually?
>>
>> at 
>> my.domain.controller.ActionOptionBase.getTextFromProperties(ActionOptionBase.java:122)
>> ~[mydomain-struts2-controller-4.0-SNAPSHOT.jar:?]
>> at my.domain.controller.ActionOption.getAction(ActionOption.java:138)
>> ~[mydomain-struts2-controller-4.0-SNAPSHOT.jar:?]
>>
> 
> 
> 
> That function is badly named. It actually should be called getActionName();
> 
> The Action contains one or more ActionOption objects. These are built in the 
> constructor.
> 
> Later,
> 
> Andy
> 
>   
> 

Reply via email to