Hi,
I am getting below exception when running AllTestsDB2. I have DB2 UDB 8.1.x
and have db2jcc.jar from my DB2Home\java in the classpath for the
project. Any clue?

com.ibm.db2.jcc.b.SQLException: Unable to load T2 native library.
Type 2 JDBC architecture is not yet supported by the IBM DB2 JDBC
Universal Driver Architecture
        at com.ibm.db2.jcc.t2.T2Configuration.a(T2Configuration.java:62)
        at com.ibm.db2.jcc.t2.T2Configuration.<clinit>(T2Configuration.java:39)
        at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:261)
        at java.sql.DriverManager.getConnection(DriverManager.java:525)
        at java.sql.DriverManager.getConnection(DriverManager.java:193)
        at 
org.apache.tuscany.das.rdb.test.framework.DatabaseSetup.initConnection(DatabaseSetup.java:75)
        at 
org.apache.tuscany.das.rdb.test.framework.DatabaseSetup.<init>(DatabaseSetup.java:59)
        at 
org.apache.tuscany.das.rdb.test.framework.DB2Setup.<init>(DB2Setup.java:26)
        at 
org.apache.tuscany.das.rdb.test.suites.AllTestsDB2.suite(AllTestsDB2.java:40)
        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:585)
        at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:106)
        at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
        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)
Failed to invoke suite(): java.lang.RuntimeException:
com.ibm.db2.jcc.b.SQLException: Unable to load T2 native library.
Type 2 JDBC architecture is not yet supported by the IBM DB2 JDBC
Universal Driver Architecture
java.lang.reflect.InvocationTargetException
        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:585)
        at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:106)
        at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
        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.RuntimeException: com.ibm.db2.jcc.b.SQLException:
Unable to load T2 native library.  Type 2 JDBC architecture is not yet
supported by the IBM DB2 JDBC Universal Driver Architecture
        at 
org.apache.tuscany.das.rdb.test.framework.DatabaseSetup.initConnection(DatabaseSetup.java:87)
        at 
org.apache.tuscany.das.rdb.test.framework.DatabaseSetup.<init>(DatabaseSetup.java:59)
        at 
org.apache.tuscany.das.rdb.test.framework.DB2Setup.<init>(DB2Setup.java:26)
        at 
org.apache.tuscany.das.rdb.test.suites.AllTestsDB2.suite(AllTestsDB2.java:40)
        ... 10 more
Caused by: com.ibm.db2.jcc.b.SQLException: Unable to load T2 native
library.  Type 2 JDBC architecture is not yet supported by the IBM DB2
JDBC Universal Driver Architecture
        at com.ibm.db2.jcc.t2.T2Configuration.a(T2Configuration.java:62)
        at com.ibm.db2.jcc.t2.T2Configuration.<clinit>(T2Configuration.java:39)
        at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:261)
        at java.sql.DriverManager.getConnection(DriverManager.java:525)
        at java.sql.DriverManager.getConnection(DriverManager.java:193)
        at 
org.apache.tuscany.das.rdb.test.framework.DatabaseSetup.initConnection(DatabaseSetup.java:75)
        ... 13 more
java.lang.NullPointerException
        at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.<init>(JUnit3TestReference.java:57)
        at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:61)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
        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)

Regards,
Amita

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to