File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Peter Petrov
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • 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.







 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • 0
  • Mark post as helpful
  • send pies
  • 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: 626
Mac
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic