This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Hibernate: org.hibernate.AssertionFailure: null id don't flush the Session after an exception occurs

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anybody know what the Hibernate stack trace below means (some details & fix tips)?
I found a few sources on the web but not too explanatory, I think.
Some references or links would also be appreciated about this issue and its cause.

I mean I just would like to understand and fix the issue below.

Also, seems to me the id field is annotated property in the ReportEntry entity class.



But if so - what is the problem then?

Any help would be appreciated.
Many thanks in advance.







 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From my understanding, this is just a side effect of the real exception that has occured some lines above this stacktrace. Do you see any additional stacktrace before this? If not, is your code catching some exception but not logging or rethrowing it back?
 
Ranch Hand
Posts: 691
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jaikiran,
I do have same problem and I see following error before the error show above. Any idea about the problem. This used to work till yesterday.
 
Jignesh Patel
Ranch Hand
Posts: 691
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are right Jaikiran,
The problem was not in id of hibernate entity.

I have following code in my hibernate entity


Following code in my seam facelet


Somehow my front was sending phoneNum ="" so whenever hibernate validation fails and drove me crazy, by showing

null id error

.
Unfortunately hibernate never sent appropriate error message. I figured out problem only when I went into debug mode.
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic