rainerh  committed 751c0f2

CompoundRootAccessor hides exceptions thrown while setting Ognl properties and methods.
Issue number: XW-303
Obtained from:
Submitted by: Peter Molettiere
Reviewed by: Rainer Hermanns


  • Participants
  • Parent commits 986e5e5
  • Branches master

Comments (0)

Files changed (1)

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

                 if (e.getReason() != null) {
                     final String msg = "Caught an Ognl exception while setting property " + name;
                     log.error(msg, e);
-                    throw new RuntimeException(msg);
+                    throw new RuntimeException(msg, e.getReason());
             } catch (IntrospectionException e) {
                 // this is OK if this happens, we'll just keep trying the next