I checked and it was no same method name. Do you suggest I check other places 
too ~Regards,
~~Alireza Fattahi
      From: Lukasz Lenart <lukaszlen...@apache.org>
 To: Struts Users Mailing List <user@struts.apache.org> 
 Sent: Monday, 15 December 2014, 15:51
 Subject: Re: OGNL is used to call action's methods
   
2014-12-15 13:17 GMT+01:00 Alireza Fattahi <afatt...@yahoo.com.invalid>:
> I used below strategy for error manager:
> All actions can throw exception.There is a Error Manager Interceptor which 
> catch all exceptions and convert them to a json message and return it.        
> try {            return invocation.invoke();        } catch (Exception ex) {  
>               //Make some json result            
> response.getWriter().write(String.format("{ \"%s\":\"%s\"}", 
> DEFAULT_GLOBAL_ERROR_KEY, ex));
>        return Action.NONE;    }
>
> This was working in Struts 2.3.16.
> After switching to 2.3.20 this is not working. When an action throws an 
> exception, I got below warning
> DEBUG accessor.XWorkMethodAccessor  Error calling method through OGNL: 
> object: [foo.LoginProcess@61d18d46] method: [result] args: [[]]
> I think it is because OGNL is used to call action's methods.  ~Regards,
> ~~Alireza Fattahi

It's probably because you're using similar names, have you read that [1]?

[1] 
http://struts.apache.org/docs/security.html#Security-OGNLisusedtocallaction'smethods




Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


  

Reply via email to