-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: org.hibernate.TransactionException: JDBC rollback failed
PostPosted: Thu Jun 18, 2009 3:30 am 
Newbie

Joined: Thu Jun 18, 2009 3:24 am
Posts: 3
I'm using Tomcat server, I started the tomcat server at yesterday morning it continuously runs till today morning, when i try to login in my application it shows org.hibernate.TransactionException: JDBC rollback failed exception, the following is the exception show




HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.hibernate.TransactionException: JDBC rollback failed
org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:204)
dao.LoginDAO.getUser(LoginDAO.java:72)
servlets.LoginServlet.doLogin(LoginServlet.java:400)
servlets.LoginServlet.doPost(LoginServlet.java:83)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Connection.close() has already been called. Invalid operation in this state.
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:888)
com.mysql.jdbc.Connection.getMutex(Connection.java:3755)
com.mysql.jdbc.Connection.rollback(Connection.java:5251)
org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:217)
org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:196)
dao.LoginDAO.getUser(LoginDAO.java:72)
servlets.LoginServlet.doLogin(LoginServlet.java:400)
servlets.LoginServlet.doPost(LoginServlet.java:83)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
Apache Tomcat/6.0.18



please give any solution for this problem

thanks in advance......

regards,
ram


Top
 Profile  
 
 Post subject: Re: org.hibernate.TransactionException: JDBC rollback failed
PostPosted: Thu Jun 18, 2009 8:10 am 
Beginner
Beginner

Joined: Fri Feb 13, 2009 5:27 am
Posts: 36
Location: India
HI ram



read this post..
https://forum.hibernate.org/viewtopic.php?f=1&t=997637


bye.tc.

_________________
parag


Top
 Profile  
 
 Post subject: Re: org.hibernate.TransactionException: JDBC rollback failed
PostPosted: Thu Jun 18, 2009 10:09 am 
Newbie

Joined: Thu Jun 18, 2009 3:24 am
Posts: 3
Actually we r using Annotations for the beans, is it possible to solve using the hibenate.cfg.xml???


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.