aspose file tools*
The moose likes Spring and the fly likes Bean property 'xxxxx' is not readable or has an invalid getter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Bean property Watch "Bean property New topic
Author

Bean property 'xxxxx' is not readable or has an invalid getter

Gil Carvalho
Ranch Hand

Joined: Dec 10, 2013
Posts: 55
Hello

I'mt trying to put 2 objects in my jsp view but one works the other one no giving me the error mentioned,

This is my controller


And this is my jsp view


The error is here at line 88:



org.springframework.beans.NotReadablePropertyException: Invalid property 'tipoEmpredado' of bean class [gmc.gestaxi.domain.Empregado]: Bean property 'tipoEmpredado' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
What's wrong please?

Thank you
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Xil Car wrote:Invalid property 'tipoEmpredado' of bean class [gmc.gestaxi.domain.Empregado]: Bean property 'tipoEmpredado' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?


The error message is asking a question about your Empregado class. Apparently your code needs to have a getTipoEmpredado method. And does it? You haven't posted the code of that class so you would have to look at the code yourself.

(I don't know the language of your code -- Portuguese? -- but it looks to me like either "Empregado" or "tipoEmpredado" is misspelled.)
Gil Carvalho
Ranch Hand

Joined: Dec 10, 2013
Posts: 55
Hi

Thank you for your answer. Yes it is Portuguese

This is my Empregado Class. (Employee)



This error happens when i'm trying to use another object


If i don't use, there is no error

The other class is TipoEmregado (Employee Type)

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Okay. So in one place you have "tipoEmpredado" and in another place you have "tipoEmpregado".
Gil Carvalho
Ranch Hand

Joined: Dec 10, 2013
Posts: 55
Hi

Thank you.
That was the mistake. Ican't believe i was looking for that error for hours.

Thank you Paul
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bean property 'xxxxx' is not readable or has an invalid getter