• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ERROR PropertyAccessException IllegalArgumentException occurred calling getter of...

 
Angel J Gama
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm newby to Hibernate... I've read different tutorials and got up and running the examples but got problems when implementing on my own :S
I got an horrible:


Does any one have an idea what that means?
My db is about a "mini-forum":
- Tema: topic's class
- Mensaje: class for a topic's messages
- Alumno: class for author's data

Tema.java-----------------------------


Mensaje.java-------------------------


Alumno.java-----------------------------


Test.java-----------------------


Alumno.hbm.xml-----------------------


Tema.hbm.xml-------------------------


Mensaje.hbm.xml---------------------------
 
Angel J Gama
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also the error message says:

 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a really wild guess :

<property name="texto" column="TEXTO" type="text"/>



Try changing it to

 
Angel J Gama
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
type="text" is just working fine... when I disable everything related to the relationship between "Tema" and "Alumno" everything just works fine, but when I 'enable-it' I'm getting the error.
It says is something about the getter method for the id and foreign key but I can't get exactly what is going wrong
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Angel JGM",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.

Thanks

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic