Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Persistence exception  RSS feed

 
Rajesh Santhanakrishnan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was trying to analyse a working code with some modifications for mybatis connection.



After modifcations, I was getting PersistenceException while trying to access the try block.
Could you please tell me what persistence exception is and why it occurs
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37381
531
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PersistenceException just means something went wrong. It could be a malformed query or the database being unavailable or anything. You'd need to print the full stack trace to find the actual problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!