commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (BEANUTILS-30) [beanutils] Improve message for "Unknown property"
Date Sat, 04 Nov 2006 08:07:17 GMT
     [ http://issues.apache.org/jira/browse/BEANUTILS-30?page=all ]

Henri Yandell resolved BEANUTILS-30.
------------------------------------

    Resolution: Fixed

svn ci -m "Applying improved messages for unknown properties in setSimpleProperty and getSimpleProperty
to resolve issue #BEANUTILS-30"

Sending        src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
Sending        src/test/org/apache/commons/beanutils/DynaPropertyUtilsTestCase.java
Sending        src/test/org/apache/commons/beanutils/PropertyUtilsTestCase.java
Transmitting file data ...
Committed revision 471138.

> [beanutils] Improve message for "Unknown property"
> --------------------------------------------------
>
>                 Key: BEANUTILS-30
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-30
>             Project: Commons BeanUtils
>          Issue Type: Bug
>    Affects Versions: 1.6
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Barry Kaplan
>             Fix For: 1.8.0
>
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message