oracle版本:11.2.0.2
?连接方式:spring jdbctemplate连接数据库,通过ClassPathXmlApplicationContext("vodbossContext.xml")加载配置文件。
在做单元测试包如下错误:
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (违反协议)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:577)
at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:792)
at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:850)
at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:858)
at com.topdvte.vodsea.client.dao.VodCustDao.insert(VodCustDao.java:21)
at com.topdvte.vodsea.client.dao.VodCustDaoT