• Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassCastException from Domain object to CGLIB??? Why is it trying to cast that way

Mark Spritzler
Posts: 17309
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone ever come across the scenario where you eager fetched some Domains so that they are the real domain object, that later when accessing them Hibernate tried to cast them to CGLib Proxies instead?

Our Domain objects are Groovy, so it is possible that Groovy is doing something weird accessing the class attribute.


What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!