Commons BeanUtils
  1. Commons BeanUtils
  2. BEANUTILS-30

[beanutils] Improve message for "Unknown property"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.8.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      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.)

        Activity

        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Henri Yandell made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Henri Yandell made changes -
        Bugzilla Id 38683
        Fix Version/s 1.8.0 [ 12311949 ]
        Henri Yandell made changes -
        Bugzilla Id 38683
        Henri Yandell made changes -
        Affects Version/s 1.6 Final [ 12311696 ]
        Henri Yandell made changes -
        Project Commons [ 12310458 ] Commons BeanUtils [ 12310460 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Component/s BeanUtils [ 12311101 ]
        Key COM-2772 BEANUTILS-30
        Affects Version/s 1.6 Final [ 12311666 ]
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 38683 12342924
        Barry Kaplan created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Barry Kaplan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development