• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 686
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: 686
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.
 
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic