java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer: socket write error我的程序跑了2天了没事 第三天就出现了这样的异常我找了很多地方都没有给出解决的办法啊 哪位大大知道啊 请不舍赐教 谢谢了

解决方案 »

  1.   

    客户端或浏览器非正常关闭可能会产生这种错误。
    是不是你没有close connection造成的,例如没有在 finally 当中close. 
      

  2.   

    怎么会收来到,我以以下关键字
    Connection reset by peer SQLServer 2000 Driver for JDBC
    =========================================================
    约有872项符合Connection reset by peer SQLServer 2000 Driver for JDBC的查询结果
    以下是头上几个
    http://www.eggheadcafe.com/ng/microsoft.public.sqlserver.jdbcdriver/post692709.asp
    http://jira.atlassian.com/browse/JRA-5760
    http://dev2dev.bea.com.cn/bbsdoc/20050971.html
    http://cephas.net/blog/2004/07/14/sql_server_2000_driver_for_jdbc_connection_reset_by_peer.html
    ...
      

  3.   

    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer: socket write error断网造成的,如网线断了等,
    在connection里加上:  
    jdbc:mysql://192.168.0.252:3306/Uland_Mall?useUnicode=true&characterEncoding=UTF-8&autoconnect=true