Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2611

Cite the form name in validation exception message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Nightly Build
    • 1.4.0
    • Core
    • None
    • Operating System: other
      Platform: Other
    • 37047

    Description

      java.lang.NoSuchMethodException: Unknown property 'from'
      at
      org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1122)
      at
      org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)
      at
      org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
      at
      org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290)
      at
      org.apache.commons.validator.util.ValidatorUtils.getValueAsString(ValidatorUtils.java:105)
      at
      org.apache.struts.validator.FieldChecks.validateMinLength(FieldChecks.java:859)
      at sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at
      org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:567)
      at org.apache.commons.validator.Field.validateForRule(Field.java:827)
      at org.apache.commons.validator.Field.validate(Field.java:906)
      at org.apache.commons.validator.Form.validate(Form.java:174)
      at org.apache.commons.validator.Validator.validate(Validator.java:367)
      at
      org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:110)
      ...
      it appears that my form is validated against the rules of another form. However,
      I cannot see an config error neither in my struts-config.xml nor in the
      validation.xml

      It would be helpful if in the case of an error also the form name from which the
      field-rules are taken are cited!

      Attachments

        Issue Links

          Activity

            People

              pbenedict Paul Benedict
              hauser@acm.org Ralf Hauser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: