• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HHH000327 org.hibernate.property.access.spi.PropertyAccessException

 
Leo Neo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I have two simple joined entities and next exception when I try to get their property:



Master entity:



Child entity:



Test module:



Pom.xml:




hibernate.cfg:



What cause this exception, I can't manage to find out.
Please help me. Any help will be appreciated.

 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Leo Neo,

First of all, a warm welcome to CodeRanch!

Leo Neo wrote:What cause this exception, I can't manage to find out.

Have you already figured out your issue? Based on the exception message it seems you are experiencing a class loader issue. The first java.lang.Integer class might be loaded with a different class loader than the second one, and that's why you might get this exception (because both classes are loaded by different class loaders, these classes are not assignable to each other).
This SO question seems to cover a similar issue. And it seems a bug is filed against Hibernate 5.0 here.

Hope it helps!
Kind regards,
Roel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic