Com. ibatis. common. jdbc. exception. NestedSQLException: --- theerroccurredinconfuser. xml. --- Contents. --- ChecktheupdateUser-InlineParameterMap. --- Checktheparametermappingfortheid
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'
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.exe cuteUpdate (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 )?
?????? This problem is very strange, because I have no problem in DAO unit testing, but the above problem occurs during integration testing.
Then, I find in the network, I found a (http://www.iteye.com/post/134608) mentioned in the middle, for a driver to try.
Of course, I tried it. I can see the log. The original id value is NULL, so there is a problem. The final problem also occurs. Be careful in development and be careful.