You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/11/28 17:04:54 UTC

DO NOT REPLY [Bug 14938] New: - Inconsistent "No getter method found" error for bean object within ArrayList, but the property does exist

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=14938>.
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=14938

Inconsistent "No getter method found" error for bean object within ArrayList, but the property does exist

           Summary: Inconsistent "No getter method found" error for bean
                    object within ArrayList, but the property does exist
           Product: Struts
           Version: 1.1 Beta 2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Controller
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: david_allen-williams@slc.co.uk


I have an object with a property, which sits within an ArrayList belonging to 
the form bean.  This is only required for displaying, and not setting.  
On one machine, everything works fine - on the next, I get a "No getter method 
found" error. 

HOWEVER, if I change the name of that property in any way whatsoever from 
   getIsEnteredByLea / setIsEnteredByLea
to, for example:
   getIsEnteredByLea2 / setIsEnteredByLea2
then it doesn't complain.

It seems to randomly do this with various properties - and recompiling / 
redeploying doesn't help.

????

//--------------------------------------------------------------------
// Sample code snippet

public class LeaTotal implements java.io.Serializable
{
    private String isLea = "Y";
   
    // doesn't like this
    public String getIsEnteredByLea () {
        return isLea;
    }

    public void setIsEnteredByLea (String value) {
        isLea = value;
    }

    // finds this okay
    public String getIsEnteredByLea2 () {
        return isLea;
    }
}

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>