google-code-export / nutz

Automatically exported from code.google.com/p/nutz
Apache License 2.0
1 stars 1 forks source link

使用Oracle数据库测试TableNameTest时产生问题 zhang_wan_cheng@hotmail.com #424

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
问题产生的条件:
数据库:oracle 10g

发生问题的调用代码:
运行测试类:TableNameTest

问题的详细说明:

异常堆栈:
java.lang.RuntimeException: java.lang.AbstractMethodError: 
oracle.jdbc.driver.T4CConnection.setSavepoint()Ljava/sql/Savepoint;
    at org.nutz.lang.Lang.wrapThrow(Lang.java:126)
    at org.nutz.dao.impl.DefaultDaoRunner.run(DefaultDaoRunner.java:32)
    at org.nutz.dao.impl.DefaultDaoExecutor.execute(DefaultDaoExecutor.java:20)
    at org.nutz.dao.impl.NutDao.execute(NutDao.java:233)
    at org.nutz.dao.impl.NutDao$7.run(NutDao.java:622)
    at org.nutz.trans.Trans.exec(Trans.java:123)
    at org.nutz.trans.Trans.exec(Trans.java:81)
    at org.nutz.dao.impl.NutDao._insertSelf(NutDao.java:617)
    at org.nutz.dao.impl.NutDao.access$4(NutDao.java:615)
    at org.nutz.dao.impl.NutDao$9.invoke(NutDao.java:649)
    at org.nutz.lang.Lang.each(Lang.java:1224)
    at org.nutz.dao.impl.NutDao.insert(NutDao.java:647)
    at org.nutz.dao.test.smoke.TableNameTest.test_insert_DPet(TableNameTest.java:26)
    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 org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
    at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
    at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
    at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.AbstractMethodError: 
oracle.jdbc.driver.T4CConnection.setSavepoint()Ljava/sql/Savepoint;
    at com.mchange.v2.c3p0.impl.NewProxyConnection.setSavepoint(NewProxyConnection.java:1115)
    at org.nutz.dao.ConnectionHolder.invoke(ConnectionHolder.java:42)
    at org.nutz.dao.impl.DefaultDaoRunner.run(DefaultDaoRunner.java:22)
    ... 31 more

相关日志:

Original issue reported on code.google.com by wczhang....@gmail.com on 31 Mar 2011 at 8:52

GoogleCodeExporter commented 9 years ago
你的驱动的版本太低.

Original comment by wendal1985@gmail.com on 31 Mar 2011 at 11:21

GoogleCodeExporter commented 9 years ago
对使用的是class12.jar,使用ojdbc6.jar后正常

Original comment by wczhang....@gmail.com on 1 Apr 2011 at 1:21

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 1 Apr 2011 at 1:24