学习日记

正在关注 Linux 、开源的个人博客。

首页 | 留言本 | 标签云 | 网站地图 | 美味书签 | Learning Diary | 登录 |

在我本地添加目标的时候会报错

2004年12月1日 上午 10:33 | 作者:zhl

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can’t start a

cloned connection while in manual transaction mode.

        at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source

)

        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)

        at com.microsoft.jdbc.base.BaseConnection.getImplConnection(Unknown Sour

ce)

        at com.microsoft.jdbc.base.BaseStatement.setupImplConnection(Unknown Sou

rce)

        at com.microsoft.jdbc.base.BaseStatement.<init>(Unknown Source)

        at com.microsoft.jdbc.base.BasePreparedStatement.<init>(Unknown Source)

        at com.microsoft.jdbc.base.BaseConnection.prepareStatement(Unknown Sourc

e)

        at com.microsoft.jdbc.base.BaseConnection.prepareStatement(Unknown Sourc

e)

        at com.learndiary.website.dao.LearnDiaryDB.postArticle(LearnDiaryDB.java

:792)

        at com.learndiary.website.action.disgoal.PostAdvice0Action.execute(PostA

dvice0Action.java:89)

版权所有。转载时必须以链接形式注明作者和原始出处及本声明。

相关日记

随机日记

添加到网摘

[del.icio.us]  [新浪 VIVI]  [365key]  [YouNote]  [博采中心]  [Poco]  [SOHU狐摘]  [天极网摘]  [和讯网摘] 

评论(3条评论)

  1. 没有在其它数据库上用过

  2.   你的数据库服务在连接时就出错了,看看你的数据源是否配置争确,

    private String dbUrl =  “jdbc:mysql://localhost:3306/learndiarydb?useUnicode=true&characterEncoding=GB2312″;

      修改这行代码

       如果你的用户名,和密码一不同,也应该修改!

  3. 我用的是sql server 做的数据库,报这个错的问题解决了,是因为在一个事务里面创建了多个ResultSet 或者 Statement 或者PrepareStatment. 大家看看自己的是不是这样的问题。

发表评论

*必填

*必填 (不会被公开)


Copyright © 2004-2008 www.learndiary.com(学习日记)
Powered by WordPress with theme by UCDCHINA for Blogool come from JunChen Wu, nowa
联系版主:mdx-xx at tom dot com。2004.7.25