本帖最后由 todaydiy 于 2009-12-21 15:47:15 编辑

解决方案 »

  1.   

    registered a statement as closed which wasn't known to be open. This could happen if you close a statement twice ?
    提示你关闭了一个已关闭的statement 。
    检查你的程序里面是否手动的关闭了ibatis使用的connection,在ibatis不要关闭connection,或者statement ,ibatis会自己管理的。
      

  2.   

    registered a statement as closed which wasn't known to be open. This could happen if you close a statement twice ? 
    看警告信息是
    statement已经是关闭了 你还去关闭了一个已经关闭的statement 
      

  3.   


    这句话的意思我知道,但是我并没有操作这个statement啊,难道是proxool的问题?
      

  4.   


    不是你的代码关的话,估计是哪个框架一用完就给你close了。
      

  5.   

    我也有這個問題
    我用的版本是ibatis-2.3.0.677和spring-2.5.6
      

  6.   

    剛才我又試了一下
    不用spring包裝ibatis
    直接用ibatis來執行SQL,不會有這個問題
    ibatis-2.3.0.677.jar
    spring-2.5.6.jar
    jar版本如上