That was it.
On 10/16/07, Michael Horwitz <[EMAIL PROTECTED]> wrote:
>
> The property name should probably be ANamedAFile - if the first two
> characters of your getter are capitalised, then the property normally keeps
> them that way.
>
> Mike.
>
> On 10/15/07, John Kwon <[EMAIL PROTECTED]> wrote:
> >
> > I'm getting this error with one of my pojos. I can't see where the
> > getters and setters are incorrect.
> >
> > quality] ERROR [http-8080-1] ErrorsTag.doStartTag(84) | Invalid property
> > 'aNamedAFile' of bean class [com.csc.digitization.quality.LotAFile]:
> > Bean property 'aNamedAFile' is not readable or has an invalid getter method:
> > Does the return type of the getter match the parameter type of the setter?
> > org.springframework.beans.NotReadablePropertyException: Invalid property
> > 'aNamedAFile' of bean class [com.csc.digitization.quality.LotAFile]:
> > Bean property 'aNamedAFile' is not readable or has an invalid getter method:
> > Does the return type of the getter match the parameter type of the setter?
> > at org.springframework.beans.BeanWrapperImpl.getPropertyValue(
> > BeanWrapperImpl.java:534)
> > at org.springframework.beans.BeanWrapperImpl.getPropertyValue(
> > BeanWrapperImpl.java:526)
> > at
> > org.springframework.validation.AbstractPropertyBindingResult.getActualFieldValue(
> > AbstractPropertyBindingResult.java:77)
> >
> > The getters and setters are below:
> >
> >
> > *private* String lotId;
> >
> > *private* String aNamedAFile;
> >
> > *private* Long id;
> >
> > *public* String getLotId() {
> >
> > *return* lotId;
> >
> > }
> >
> > *public* *void* setLotId(String lotId) {
> >
> > *this*.lotId = lotId;
> >
> > }
> >
> > *public* String getANamedAFile() {
> >
> > *return* aNamedAFile;
> >
> > }
> >
> > *public* *void* setANamedAFile(String namedAFile) {
> >
> > aNamedAFile = namedAFile;
> >
> > }
> >
> > *public* Long getId() {
> >
> > *return* id;
> >
> > }
> >
> > *public* *void* setId(Long id) {
> >
> > *this*.id = id;
> >
> > }
> >
> >
>