Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
2.3.16.1
-
Patch
Description
Most of the time, the logging message printed by OgnlValueStack class is useless because it doesn't show the value that causes the problem.
Exemple log:
2014/03/20 02:23:28 WARN (CommonsLogger.java:64) warn Error setting expression 'myIntField' with value '[Ljava.lang.String;@55227e4a'
ognl.MethodFailedException: Method "setMyIntField" failed for object fr.my.company.MyAction@df39b8b4 [java.lang.NoSuchMethodException: fr.my.company.MyAction@df39b8b4.setMyIntField([Ljava.lang.String;)]
I can't find the reason because toString() is on a array show '[Ljava.lang.String;@55227e4a' but i would like to see the actual value in the array.
The exact same problem is fixed right in the method above the buggy one: the trivial patch is included.