shineer / rapid-framework

Automatically exported from code.google.com/p/rapid-framework
0 stars 0 forks source link

org.dbunit.dataset.NoSuchTableException: Did not find table 'name' in schema 'null' #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
rapid版本:3.9.3

使用的dbunit版本:2.4.2

按如下步骤重现错误:
1.运行生成的测试出错。

期待的结果是:

java的error stack trace:
org.dbunit.dataset.NoSuchTableException: Did not find table 'name' in schema 
'null'
    at org.dbunit.database.DatabaseTableMetaData.<init>(DatabaseTableMetaData.java:126)
    at org.dbunit.database.DatabaseDataSet.getTableMetaData(DatabaseDataSet.java:267)
    at org.dbunit.operation.AbstractOperation.getOperationMetaData(AbstractOperation.java:80)
    at org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:98)
    at cn.org.rapid_framework.test.dbunit.DBUnitFlatXmlHelper.insertTestData(DBUnitFlatXmlHelper.java:94)
    at cn.org.rapid_framework.test.dbunit.DBUnitFlatXmlHelper.insertTestDatas(DBUnitFlatXmlHelper.java:65)
    at javacommon.base.BaseManagerTestCase.onSetUpInsertTestDatas(BaseManagerTestCase.java:46)
    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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

其它错误信息:

换用dbunit-2.4.8.jar,问题解决。

Original issue reported on code.google.com by v64...@gmail.com on 5 Aug 2011 at 6:39