• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error on Hibernate session.lock

 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using hibernate3 session to obtain lock on a object with this code:


which throws this exception:


Any ideas where to look to solve this issue?

Thanks,
 
Emmanuel Bernard
author
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like a database specific problem. What's your DB, JDBC driver version, are you using a datasource?
 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Emmanuel Bernard:
Looks like a database specific problem. What's your DB, JDBC driver version, are you using a datasource?


Yes. Its a database problem. I got it solved by droping all the tables and recreating them.

Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic