Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-30

[beanutils] Improve message for "Unknown property"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.8.0
    • None
    • None
    • Operating System: other
      Platform: Other

    • 38683

    Description

      When PropertyUtilsBean attempts to set/get a property it throws an exception
      with the following message:

      Caused by: java.lang.NoSuchMethodException: Unknown property 'name'
      at
      org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1741)
      at
      org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:577)
      at
      com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:558)

      Its nice to know the name of the property, but it would be even nicer to know
      the class.

      (Yes, this is also a problem with the calling code, JSF FI in this case, which
      even knows instance and bean name, yet chooses to leave tha a secret.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            memelet Barry Kaplan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: