IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes ERROR PropertyAccessException IllegalArgumentException occurred calling getter of... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "ERROR PropertyAccessException IllegalArgumentException occurred calling getter of..." Watch "ERROR PropertyAccessException IllegalArgumentException occurred calling getter of..." New topic
Author

ERROR PropertyAccessException IllegalArgumentException occurred calling getter of...

Angel J Gama
Ranch Hand

Joined: Jun 28, 2007
Posts: 36
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

Joined: Jun 28, 2007
Posts: 36
Also the error message says:

Jaikiran Pai
Saloon Keeper

Joined: Jul 20, 2005
Posts: 6718

Just a really wild guess :

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



Try changing it to



[My Blog] [JavaRanch Journal]
Angel J Gama
Ranch Hand

Joined: Jun 28, 2007
Posts: 36
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

Joined: Feb 05, 2001
Posts: 16622

"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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: ERROR PropertyAccessException IllegalArgumentException occurred calling getter of...
 
Threads others viewed
Null Pointer Exception
Not able to get mapped object Set in hibernate
Simple requirement .. but I don't know how!
Batch Delete Problem
One to many Relation
developer file tools