C3P0连接DB2数据库报错,请大仙们指点
连接oracle没有任何问题,换成DB2就报错。。。
org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation;
uncategorized SQLException for SQL []; SQL state [null]; error code [-99999];
--- The error occurred in com/feng/biz/emissions/ibatis/Emissions.xml.
--- The error occurred while applying a result map.
--- Check the Emissions.queryEmissionsCounts-AutoResultMap.
--- Check the result mapping for the '1' property.
--- Cause: com.ibm.db2.jcc.b.SqlException: DatabaseMetaData information is not known for server DB2/NTSQL09070 by this version of JDBC driver;
nested exception is com.ibatis.common.jdbc.exception.Nested
SQLException:
--- The error occurred in com/feng/biz/emissions/ibatis/Emissions.xml.
--- The error occurred while applying a result map.
--- Check the Emissions.queryEmissionsCounts-AutoResultMap.
--- Check the result mapping for the '1' property.
--- Cause: com.ibm.db2.jcc.b.SqlException: DatabaseMetaData information is not known for server DB2/NTSQL09070 by this version of JDBC driver
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/feng/biz/emissions/ibatis/Emissions.xml.
--- The error occurred while applying a result map.
--- Check the Emissions.queryEmissionsCounts-AutoResultMap.
--- Check the result mapping for the '1' property.
--- Cause: com.ibm.db2.jcc.b.SqlException: DatabaseMetaData information is not known for server DB2/NTSQL09070 by this version of JDBC driver
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201)
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForObject(MappedStatement.java:120)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:518)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:493)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:106)
at org.springframework.orm.ibatis.SqlMapClientTemplate$1.doInSqlMapClient(SqlMapClientTemplate.java:238)
at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:188)
at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForObject(SqlMapClientTemplate.java:236)
at com.feng.base.dao.impl.DaoImpl.getObjectCounts(DaoImpl.java:33)
at com.feng.biz.emissions.service.impl.EmissionsServiceImpl.queryEmissionsIndexs(EmissionsServiceImpl.java:20)
at com.feng.biz.emissions.action.EmissionsAction.queryEmissionsIndex(EmissionsAction.java:23)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)