Das Notes Forum

Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: Toma Bogdan am 08.06.04 - 08:54:49

Titel: JDK incompatibility for DB2 jdbc driver
Beitrag von: Toma Bogdan am 08.06.04 - 08:54:49
Hi

I try to connect to db2 from a java agent using db2java.zip jdbc driver in notes 5 client.

the code is
Code
DriverManager.registerDriver((Driver)Class.forName("COM.ibm.db2.jdbc.net.DB2Driver").newInstance());
Connection connection = DriverManager.getConnection(url,username, password);
At runtime I get the error :
Code
java.lang.NoClassDefFoundError: java/security/PrivilegedExceptionAction  ???
I check the rt.jar and PrivilegedExceptionAction
is not there. The same code work fine in notes 6 with the same driver (for notes 6 rt.jar contains PrivilegedExceptionAction class)  :o

Can someone tell me if there is different versions for db2java.zip driver compatible with jdk 1.1 used in domino5?

Thanks
Titel: Re:JDK incompatibility for DB2 jdbc driver
Beitrag von: Hernan Cortez am 08.06.04 - 09:14:34
whats your db2 version ???
Db2 Vs.7 had java1.1 support enabled as default.
One had to run some batch file to change that.
Could be, that DB2 Vs.8 ships with Java1.2 support enabled and one has to switch back to Java1.1 support?
So it might be good idea to check your db2 documentation.

regards

Axel
Titel: Re:JDK incompatibility for DB2 jdbc driver
Beitrag von: Toma Bogdan am 08.06.04 - 09:23:24
the DB2 version is 8.1

how can I make a switch back in DB2 ?
Titel: Re:JDK incompatibility for DB2 jdbc driver
Beitrag von: Hernan Cortez am 08.06.04 - 10:52:40
I've checked on another box where I have istalled db2 v.8 and it looks different from 7.1.
Frankly, I have no idea. Try IBM db2 forums or Notes.net forums.
If you get some result, please post here. I am interested.

regards
no time Axel
Titel: Re:JDK incompatibility for DB2 jdbc driver
Beitrag von: Hernan Cortez am 08.06.04 - 18:43:29
I've did another 20 minutes check without getting a clue.
Maybe DB2 8 simply does not support Java1.1. Why should they support prehistoric versions  anyway? Java2 came out in 1999. 1.0 release in Java was in 1996. We are in 2006. Only because those brainies from Iris did not spend Domino5 Java2 support in some 5.xx release?  

What about downloading DB2 7.2. It has Java1.1 enabled and you can switch version with some batch files in Java directory.

I am about to visit Edbrill.com to see the website of an evil man. Then @home.

good night

Axel