Brendan Le Ny created WW-4318:
---------------------------------

             Summary: Logging message when OgnlValueStack fail to set 
expression is cryptic most of the time
                 Key: WW-4318
                 URL: https://issues.apache.org/jira/browse/WW-4318
             Project: Struts 2
          Issue Type: Bug
          Components: Value Stack
    Affects Versions: 2.3.16.1
            Reporter: Brendan Le Ny
            Priority: Trivial


Most of the time, the logging message printed by OgnlValueStack class is 
useless because it doesn't show the value that cause de problem.

Exemple log:

{quote}
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: 
[email protected]([Ljava.lang.String;)]
{quote}

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.




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to