当前位置: 技术问答>java相关
jsp中操作数据库出错!!
来源: 互联网 发布时间:2015-06-09
本文导语: javax.servlet.ServletException: select max(id) as id from ID_GENERATION where group_name = 'ADMIN_USER' **Before:** java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode. | ...
javax.servlet.ServletException: select max(id) as id from ID_GENERATION where group_name = 'ADMIN_USER'
**Before:**
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
**Before:**
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
|
Can't start a cloned connection while in manual transaction mode.
好像是说你在使用cloned connection,进行事务处理不能用clone的连接。可能是你将一个con.setAutoCommit(false),然后又将这个con的clone给别的程序用去了。new 一个con试试。
好像是说你在使用cloned connection,进行事务处理不能用clone的连接。可能是你将一个con.setAutoCommit(false),然后又将这个con的clone给别的程序用去了。new 一个con试试。
|
把你的操作数据库的代码贴出来看看咯!