[redhat-ccm-list] how can I solve db-related problem when I run DataQueryImplTest.java using eclipse?

Dennis Gregorovic dgregor at redhat.com
Wed Mar 24 04:56:26 UTC 2004


It could be a number of things, but the first make sure that the
test.initscript property in your ant.properties is set correctly.

-- Dennis

On Tue, 2004-03-23 at 21:22, Mary Wang wrote:
> Hi,
> I am a WAF newbie and I noticed that there are many JUNIT test code
> which can be used the test the WAF java class,so I want to run them
> using eclipse. 
>  
> My os is windows 2000,database is Oracle9.0.1,my WAF version is 5.0.3.
>  
> I can successfully run ModelTest.java.But when I run
> DataQueryImplTest.java ,the test failed.And the Failure Trace is:
> java.lang.NullPointerException
>  at
> com.arsdigita.db.ConnectionManager.getConnection(ConnectionManager.java:195)
>  at
> com.arsdigita.persistence.TransactionContext.getConnection(TransactionContext.java:96)
>  at
> com.arsdigita.persistence.DataStore.getConnection(DataStore.java:104)
>  at
> com.arsdigita.persistence.DataStore.fireOperation(DataStore.java:309)
>  at
> com.arsdigita.persistence.DataStore.fireOperation(DataStore.java:179)
>  at
> com.arsdigita.persistence.DataQueryImpl.executeQuery(DataQueryImpl.java:902)
>  at
> com.arsdigita.persistence.DataQueryImpl.checkResultSet(DataQueryImpl.java:879)
>  at
> com.arsdigita.persistence.DataQueryImpl.next(DataQueryImpl.java:416)
>  at
> com.arsdigita.persistence.DataQueryImplTest.testSetOrder(DataQueryImplTest.java:84)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at junit.framework.TestCase.runTest(TestCase.java:154)
>  at junit.framework.TestCase.runBare(TestCase.java:127)
>  at
> com.arsdigita.persistence.PersistenceTestCase.runBare(PersistenceTestCase.java:70)
>  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:392)
>  at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
>  at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
>  
> I know that I should solve some db-related problems,but where and how
> should I modify some source code to make the test pass?
>  
> Thank you!
>  
> Wanghu
>  
> 
> 
> 
> ______________________________________________________________________
> Do You Yahoo!?
> 完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间
> 
> ______________________________________________________________________
> -- 
> Redhat-ccm-list mailing list
> Redhat-ccm-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-ccm-list
> Archives: https://www.redhat.com/pipermail/redhat-ccm-list/





More information about the Redhat-ccm-list mailing list