追隨Java
          簡單的事情重復做,就會產生累積效應!
          posts - 260,  comments - 338,  trackbacks - 0
          com.ibatis.common.jdbc.exception.NestedSQLException:
          --- The error occurred in conf/User.xml.
          --- The error occurred while applying a parameter map.
          --- Check the updateUser-InlineParameterMap.
          --- Check the parameter mapping for the 'id' property.
          --- Cause: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]The specified SQL type is not supported by this driver.
          Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]The specified SQL type is not supported by this driver.
          at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(GeneralStatement.java:91)
          at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.update(SqlMapExecutorDelegate.java:504)
          at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.update(SqlMapSessionImpl.java:90)
          at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.update(SqlMapClientImpl.java:68)
          at ibatis.dao.UserTestCase.testUpdateUser(UserTestCase.java:136)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at junit.framework.TestCase.runTest(TestCase.java:154)
          at junit.framework.TestCase.runBare(TestCase.java:127)
          at junit.framework.TestResult$1.protect(TestResult.java:106)
          at junit.framework.TestResult.runProtected(TestResult.java:124)
          at junit.framework.TestResult.run(TestResult.java:109)
          at junit.framework.TestCase.run(TestCase.java:118)
          at junit.framework.TestSuite.runTest(TestSuite.java:208)
          at junit.framework.TestSuite.run(TestSuite.java:203)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
          Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]The specified SQL type is not supported by this driver.
          at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
          at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)?
          ??????這個問題就非常的奇怪,因為我在做DAO單元測試的時候沒有問題,可一集成測試的時候就出現了上面的問題.
          然后,我在網上一找,就發現了一篇(http://www.javaeye.com/post/134608)中間提到了,換一個driver來試試.
          當然,我試了,真的可以.我看到日志,原來那個id的值是NULL,所以出問題了.最終的問題也就出現在這.開發還是得小心,認真.
          posted on 2006-10-07 17:23 Harryson 閱讀(2365) 評論(0)  編輯  收藏 所屬分類: iBatis

          <2006年10月>
          24252627282930
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          常用鏈接

          留言簿(10)

          隨筆分類(319)

          AJAX

          Coffee House

          CSS

          Java

          JavaScript

          Open Source

          ProjectManagement

          友情Blog

          最新隨筆

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 博客| 玛多县| 大渡口区| 三明市| 女性| 报价| 永年县| 通城县| 雷波县| 嘉禾县| 建阳市| 朔州市| 临沧市| 安庆市| 同心县| 姜堰市| 贵阳市| 南投市| 肇州县| 大荔县| 星子县| 黔江区| 呼图壁县| 兴城市| 全南县| 新乡市| 桂东县| 扎囊县| 金川县| 绥阳县| 阳东县| 蓬溪县| 平塘县| 织金县| 汝南县| 平泉县| 福泉市| 万载县| 土默特右旗| 富阳市| 托里县|