Problem in creating connection while using JUnit in WSAD
Hi,
I am getting the following exception when the application interact with the oracle database while running JUnit test cases.
***************** Original Exception that the caught exception wrapped:
com.deere.u90.iaf.jdbc.connection.ConnectionException: not initialized
IAF JDBC Connection Management Framework error acquiring connection.
Source of configuration data = C:\starteam\JDPS - Software Delivery system\3123_CanDB\sds\WebContent\WEB-INF\classes\config\SDSLocal.properties
Property Name Suffix = SDS
Dynamic Properties= false
Connection Pooling Enabled= true
JNDI Provider URL= corbaloc:iiop:wpuds90700.jdnet.deere.com:2811
DataSource Name = jdbc/SDSDEVLDataSource
UserId= sdscan
DataSource.toString()= com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource@b6f2dab
Causes:
getConnection caught a ConnectionException.
Consequenses:
The unit of work being processed by this thread can not continue.
at com.deere.u90.iaf.persistence.sqldatabaseaccess.DatabaseAccess.getConnection(DatabaseAccess.java:135)
at com.deere.u90.iaf.persistence.sqldatabaseaccess.DatabaseAccess.<init>(DatabaseAccess.java:43)
at sds.persistence.brokers.DatabaseManager.GetDatabaseAccess(DatabaseManager.java:31)
at sds.programmedecu.persistence.brokers.ProgrammedECUAddComponentBroker.getControllersAssociatedToVehicleSystem(ProgrammedECUAddComponentBroker.java:504)
at junittest.ProgrammedECUAddComponentTest.testGetControllersAssociatedToVehicleSystem(ProgrammedECUAddComponentTest.java:95)
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 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)
***************** End of Original Exception.
ContextInfo: Could not get the Vehicle System information.
***************** End of Context Information.
at sds.programmedecu.persistence.brokers.ProgrammedECUAddComponentBroker.getControllersAssociatedToVehicleSystem(ProgrammedECUAddComponentBroker.java:551)
at junittest.ProgrammedECUAddComponentTest.testGetControllersAssociatedToVehicleSystem(ProgrammedECUAddComponentTest.java:95)
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 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)
Can anyone tell the way out .
Thanks in advance,
Dhir
Message was edited by:
Dhir

