Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.8.0-BETA
-
None
Description
I tried to call BeanUtilsBean.setProperty() with a DynaActionForm as the "bean" and "someMap" as the "name". In BeanUtilsBean.setProperty(), after the while loop at line 900, target became "null" and name became = "". And consequently IllegalArgumentException is thrown at line 930 when setProperty() tried to getPropertyDescriptor() of a null bean. Specifically, the following is the stack trace. Could somebody look into it?
Thanks.
java.lang.IllegalArgumentException: No bean specified
at org.apache.common.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:871)
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:930)
at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:829)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtilsBean.java:433)
at org.apache.struts.util.RequestUtils.pouplate(RequestUtils.java:467)
......