当前位置:编程学习 > JAVA >>

JDBC commit failed / Connection reset

HTTP Status 500 - JDBC commit failed

项目在tomcat运行一两天后,打开页面就报错

我session是关了的

我测试的时候没有发现什么地方会报错 感觉很奇怪 
请教一下 我该从哪方面入手去检查错误呢  



type Exception report

message JDBC commit failed

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

exception

org.hibernate.TransactionException: JDBC commit failed
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:130)
com.webrage.filters.HibernateFilter.doFilter(HibernateFilter.java:53)

root cause

java.sql.SQLException: Io exception: Connection reset
oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:197)
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:261)
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:566)
oracle.jdbc.driver.T4CConnection.doCommit(T4CConnection.java:595)
oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3432)
oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3438)
com.mchange.v2.c3p0.impl.NewProxyConnection.commit(NewProxyConnection.java:678)
org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:139)
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:115)
com.webrage.filters.HibernateFilter.doFilter(HibernateFilter.java:53)

root cause

java.net.SocketException: Connection reset
java.net.SocketInputStream.read(SocketInputStream.java:189)
java.net.SocketInputStream.read(SocketInputStream.java:121)
oracle.net.ns.Packet.receive(Packet.java:240)
oracle.net.ns.DataPacket.receive(DataPacket.java:92)
oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:172)
oracle.net.ns.NetInputStream.read(NetInputStream.java:117)
oracle.net.ns.NetInputStream.read(NetInputStream.java:92)
oracle.net.ns.NetInputStream.read(NetInputStream.java:77)
oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1034)
oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1010)
oracle.jdbc.driver.T4C7Ocommoncall.receive(T4C7Ocommoncall.java:97)
oracle.jdbc.driver.T4CConnection.doCommit(T4CConnection.java:539)
oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3432)
oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3438)
com.mchange.v2.c3p0.impl.NewProxyConnection.commit(NewProxyConnection.java:678)
org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:139)
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:115)
com.webrage.filters.HibernateFilter.doFilter(HibernateFilter.java:53)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.30 logs. JDBC commit failed Connection reset --------------------编程问答-------------------- 你看下,感觉应该是这个错误
http://www.cnblogs.com/younes/archive/2012/06/01/2529483.html --------------------编程问答-------------------- 在你做commit之前,数据库连接被你关了。检查下
补充:Java ,  Java EE
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,