Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 82261 invoked from network); 15 Feb 2008 22:12:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2008 22:12:30 -0000 Received: (qmail 8255 invoked by uid 500); 15 Feb 2008 22:12:23 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 8177 invoked by uid 500); 15 Feb 2008 22:12:23 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 8168 invoked by uid 99); 15 Feb 2008 22:12:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 14:12:23 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 22:11:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 63508714074 for ; Fri, 15 Feb 2008 14:12:08 -0800 (PST) Message-ID: <30504944.1203113528404.JavaMail.jira@brutus> Date: Fri, 15 Feb 2008 14:12:08 -0800 (PST) From: "Niall Pemberton (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (BEANUTILS-294) BeanUtilsBean.setProperty() does not support nested map In-Reply-To: <16445712.1188835019322.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/BEANUTILS-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niall Pemberton updated BEANUTILS-294: -------------------------------------- Fix Version/s: 1.8.0 Yes you're right, I'll put this on the list for 1.8.0 > BeanUtilsBean.setProperty() does not support nested map > ------------------------------------------------------- > > Key: BEANUTILS-294 > URL: https://issues.apache.org/jira/browse/BEANUTILS-294 > Project: Commons BeanUtils > Issue Type: Bug > Components: Bean / Property Utils > Affects Versions: 1.8.0-BETA > Reporter: Stephen Leung > Priority: Critical > Fix For: 1.8.0 > > > I tried to call BeanUtilsBean.setProperty() with a DynaActionForm as the "bean" and "someMap(x)(y)" as the "name". In BeanUtilsBean.setProperty(), after the while loop at line 900, target became "null" and name became = "(y)". 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) > ...... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.