Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 74941 invoked from network); 18 Jun 2004 15:56:37 -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:56:37 -0000 Received: (qmail 11603 invoked by uid 500); 18 Jun 2004 15:56:20 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 11567 invoked by uid 500); 18 Jun 2004 15:56:19 -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 11434 invoked by uid 99); 18 Jun 2004 15:56:18 -0000 Received: from [63.115.132.34] (HELO mx1.compuware.com) (63.115.132.34) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 18 Jun 2004 08:56:18 -0700 Received: from bh1.compuware.com (bh1.compuware.com [10.10.1.31]) by mx1.compuware.com (Postfix) with ESMTP id BDE0852E5B for ; Fri, 18 Jun 2004 11:56:02 -0400 (EDT) Received: by compuware.com with Internet Mail Service (5.5.2657.72) id ; Fri, 18 Jun 2004 11:56:02 -0400 Message-ID: <8D81DA9D264CD311A60C0008C75D553B1518E24B@cwus-dtw-pri02.compuware.com> From: "Yu, John" To: 'Struts Users Mailing List' Subject: RE: property has no getter method Date: Fri, 18 Jun 2004 11:56:01 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks Nico. Does it happen consistently for you, or it's only on certain properties? - John > -----Original Message----- > From: Nicolas De Loof [mailto:nicolas.deloof@capgemini.com] > Sent: Friday, June 18, 2004 11:01 AM > To: Struts Users Mailing List > Subject: Re: property has no getter method > > > > 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 > 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