Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 22963 invoked from network); 31 May 2004 12:31:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 31 May 2004 12:31:12 -0000 Received: (qmail 5731 invoked by uid 500); 31 May 2004 12:31:05 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 5705 invoked by uid 500); 31 May 2004 12:31:04 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 5690 invoked by uid 99); 31 May 2004 12:31:04 -0000 Received: from [212.247.154.97] (HELO mailfe04.swip.net) (212.247.154.97) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 31 May 2004 05:31:04 -0700 X-T2-Posting-ID: dXOijhTq0SrW8Daw/JHjA5Yv9uDLOBU12emphIN0NZw= Received: from [213.101.218.11] ([213.101.218.11] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 4.2b4a) with ESMTP id 54074351 for commons-user@jakarta.apache.org; Mon, 31 May 2004 14:30:54 +0200 Message-ID: <40BB24F1.1050102@laposte.net> Date: Mon, 31 May 2004 14:28:33 +0200 From: sebty User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: commons-user@jakarta.apache.org Subject: [BeanUtils] LocaleBeanUtils for Date conversion Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi I would like to use the class LocaleBeanUtils to set a Date property. I don t understand how it works exactly and i don t find any examples in the documentation. With this code (birthDate is a Date property of the customer object) : LocaleBeanUtils.setProperty(customer,"birthDate","12/10/1974","dd/mm/yyyy"); I obtain the following error : java.lang.IllegalArgumentException: argument type mismatch at java.lang.reflect.Method.invoke(Native Method) at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789) at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684) at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713) at org.apache.commons.beanutils.locale.LocaleBeanUtils.invokeSetter(LocaleBeanUtils.java:758) at org.apache.commons.beanutils.locale.LocaleBeanUtils.setProperty(LocaleBeanUtils.java:567) Can somebody explain this behaviour? Much thanks in advance! Seb --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org