Commits

tm_jee  committed cfc9760

XW-534 (Updgrate Ognl dependency to 2.7 for XWork 1.2.3 release)
- added log when ognl expression compilation failed, falling back to expression parsing

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/xwork_1-2@1685e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 8a81328
  • Branches xwork_1-2

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/util/OgnlUtil.java

                                 catch(Exception e) {
                                     // let's try parsing ognl expression instead
                                     tryExpressionParsing = true;
+                                    log.warn("unable to get value using OGNL expression compilation mode, falling back to expression parsing", e);
                                 }
                             }
                             if (tryExpressionParsing) {
                                 catch(Exception e) {
                                     // let's try parsing ognl expression instead
                                     tryExpressionParsing = true;
+                                    log.warn("unable to set value using OGNL expression compilation mode, falling back to expression parsing", e);
                                 }
                             }
                             if (tryExpressionParsing) {
                     catch(Exception e) {
                         // let's try expression parsing
                         tryExpressionParsing = true;
+                        log.warn("unable to get value using OGNL expression compilation mode, falling back to expression parsing", e);
                     }
                 }
                 if (tryExpressionParsing) {