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

BeanUtilsBean.setProperty() does not support nested map

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.8.0-BETA
    • 1.8.0
    • Bean / Property Utils
    • 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)
      ......

      Attachments

        Activity

          People

            niallp Niall Pemberton
            sleung1 Stephen Leung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: