• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

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

 
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.

 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • 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
 
Creativity is allowing yourself to make mistakes; art is knowing which ones to keep. Keep this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!