DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9549>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9549

"No getter method for property xxx of bean yyyy" while the bean HAS the method





------- Additional Comments From [EMAIL PROTECTED]  2002-06-14 20:19 -------
I also got this bug recently.  I had an ActionForm bean with one set of 
setter's and getter's, one set for populating an array of strings with an array 
of strings.  I also had an extra setter for the situation where I only wanted 
to send one string.  It was this extra setter that turned out to be the culprit.

protected String[] chosenFiles;

/**
 * Set the chosen file array from an array of files
 */
public void setChosenFiles( String theFiles[] ) {
    chosenFiles = theFiles;
    numChosenFiles = theFiles.length;
}

/**
 * Get the chosen file array
 * @return String[] the array of files
 */
public String[] getChosenFiles() {
    return chosenFiles;
}

/**
 * Set the chosen file array from a single file
 */
public void setChosenFiles( String theFile ) {
    chosenFiles = new String[1];
    chosenFiles[0] = theFile;
}

By getting rid of the second setter the introspection started working again.  
Funny thing is that this code worked for a while; recent changes to the bean 
(elsewhere) seemed to have rendered this particular getChosenFiles() invisible 
but I couldn't pin it down.  Anyway the extra setter was not necessary so 
getting rid of it was not a problem.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to