I checked and it was no same method name. Do you suggest I check other places
too ~Regards,
~~Alireza Fattahi
From: Lukasz Lenart <[email protected]>
To: Struts Users Mailing List <[email protected]>
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 <[email protected]>:
> 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: [email protected]
For additional commands, e-mail: [email protected]