Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 40019 invoked from network); 18 Jun 2004 15:02:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Jun 2004 15:02:22 -0000 Received: (qmail 25126 invoked by uid 500); 18 Jun 2004 15:01:38 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 24973 invoked by uid 500); 18 Jun 2004 15:01:37 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 24885 invoked by uid 99); 18 Jun 2004 15:01:36 -0000 Received: from [194.3.247.82] (HELO mxepar01.capgemini.com) (194.3.247.82) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 18 Jun 2004 08:01:36 -0700 Received: from mxepar01.capgemini.com (localhost [127.0.0.1]) by mxepar01.capgemini.com (8.12.11/8.12.11) with ESMTP id i5IF1Vit017107 for ; Fri, 18 Jun 2004 17:01:31 +0200 (MEST) Received: from mxipar01.capgemini.com (prvmta2 [194.3.224.82])by mxepar01.capgemini.com (8.12.11/8.12.11) with ESMTP id i5IF1V6C017096for ; Fri, 18 Jun 2004 17:01:31 +0200 (MEST) Received: from pasteur2.capgemini.fr (smtp.capgemini.fr [10.67.1.90])by mxipar01.capgemini.com (8.12.11/8.12.11) with ESMTP id i5IF1JqI028103for ; Fri, 18 Jun 2004 17:01:19 +0200 (MEST) Received: from pasteur.capgemini.fr (localhost [127.0.0.1])by pasteur2.capgemini.fr (8.12.10/8.12.10) with ESMTP id i5IF1IHU023618for ; Fri, 18 Jun 2004 17:01:18 +0200 (MEST) Received: from vasnmail.telecom.capgemini.fr ([10.67.188.21])by pasteur.capgemini.fr (8.12.10/8.12.10) with SMTP id i5IF1H9O023592for ; Fri, 18 Jun 2004 17:01:17 +0200 (MEST) Received: from I20025205 by vasnmail.telecom.capgemini.fr (SMI-8.6/SMI-SVR4)id RAA20316; Fri, 18 Jun 2004 17:02:45 +0200 Message-ID: <02da01c45545$1bbb4a60$2fbf430a@tmn.capgemini.fr> From: "Nicolas De Loof" To: "Struts Users Mailing List" References: <8D81DA9D264CD311A60C0008C75D553B1518E24A@cwus-dtw-pri02.compuwa re.com> Subject: Re: property has no getter method Date: Fri, 18 Jun 2004 17:01:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-imss-version: 2.5 X-imss-result: Passed X-imss-approveListMatch: *@capgemini.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I've had such troubles. I don't know if it comes from struts (common-beanutils) way to introspect object to discover accessor methods, or if javaBeans spec describes it so. I've notice you will get such errors when you define getter return type != setter param type or have multiple setters with various parameter type. I've also noticed this seems to work better under jdk 1.4. To solve this, I'd suggest to rename incompatible setters to setAgeAsInt(int), so that javabean 'Age' property is strictly defined as beeing of type int. Nico. > Hi, > > I ran into "Property has no getter method" > errors when running my application under JDK 1.3.1. > > Here's some background information: > - Happens on . > - I'm using nested property, and the last property on the chain has one > getter and two setter (e.g. getAge:Integer, setAge(int), setAge(Integer)) > - Error seems to only happen on certain properties; while other properties > are ok. > - The application is compiled under JDK 1.4.1, and run well there. > - Windows 2000, and I'm testing on WLS 8.1 and 7.0sp2. > > I think this might have something to do with how Struts is using > introspection or maybe there's a difference between the two JDK versions. > > Does anyone know the possible reason here? > > Thanks, > John > > > > > The contents of this e-mail are intended for the named addressee only. It > contains information that may be confidential. Unless you are the named > addressee or an authorized designee, you may not copy or use it, or disclose > it to anyone else. If you received it in error please notify us immediately > and then destroy it. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org Our name has changed. Please update your address book to the following format: "recipient@capgemini.com". This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org