This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 43073 - database driver db2 connect doesn't work - classloader issue
Summary: database driver db2 connect doesn't work - classloader issue
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
: 41937 41942 42496 52568 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-11 13:11 UTC by hgkruse
Modified: 2005-11-18 16:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log (108.08 KB, text/plain)
2004-05-11 13:17 UTC, hgkruse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hgkruse 2004-05-11 13:11:52 UTC
STEPS TO REPRODUCE:
1. Install Netbeans on a window system
2. Install DB2 (we have it on an IBM mainframe)
3. Install DB2 Connect (we have Version 7.2 
FixPack4 with JDBC 2 enabled)
4. Establish Connection between the PC and DB2 
with the datbase name DB2ENTW (or what you want)
5. Start Netbeans IDE and add the database driver
5. From Runtime tab > expand to database node > 
right-click at the Drivers > select Add Driver
6. From the Add JDBC Driver dialog, click Add 
button > select the db2java.zip from the SQLLIB 
directory (D:/Programme/ibm/SQLLIB/java/)
   Driver Class:COM.ibm.db2.jdbc.app.DB2Driver 
should be selected
   > click Add - A new driver should have been 
created:"IBM DB2 (local)"
7. Now add a connection:Select the IBM DB2 
driver > right click > Connect Using > complete 
Database URL:jdbc:db2:DB2ENTW > enter DB 
username and password > click OK
8. NullPointerException occurs - but the 
connection could be established.
9. The tab changes from Basic setting to 
Advanced and a schema read from the db has to be 
selected. Select one and click OK.
10. Then the error message box appears 
with:Unable to add connection, cannot not 
establish a connection to jdbc:db2:db2entw using 
COM.ibm.db2.jdbc.app.DB2Driver 
(java.lang.UnsatisfiedLinkError: Native Library 
D:\Programme\ibm\SQLLIB\bin\db2jdbc.dll already 
loaded in another classloader)
Note: DB2 Connect only provides a JDBC Type 2 
driver.
This is maybe related with issue 42062.
Comment 1 hgkruse 2004-05-11 13:17:45 UTC
Created attachment 14807 [details]
ide.log
Comment 2 hgkruse 2004-05-11 13:28:37 UTC
ok - after adding this : issue 42496 reports the a problem with the 
same error message
Comment 3 Radko Najman 2004-07-14 17:52:43 UTC
*** Issue 42496 has been marked as a duplicate of this issue. ***
Comment 4 Radko Najman 2004-07-14 17:57:53 UTC
*** Issue 41942 has been marked as a duplicate of this issue. ***
Comment 5 Radko Najman 2004-07-14 18:00:02 UTC
Decreasing the priority, not supported driver.
Comment 6 dmladek 2004-07-16 13:48:35 UTC
Radko, isn't it duplicate of this issue #45385 ?
Comment 7 Radko Najman 2004-09-30 08:28:35 UTC
*** Issue 41937 has been marked as a duplicate of this issue. ***
Comment 8 Radko Najman 2005-01-04 17:06:53 UTC
*** Issue 52568 has been marked as a duplicate of this issue. ***
Comment 9 Pavel Flaska 2005-02-27 17:18:54 UTC
Checking in src/org/netbeans/modules/db/explorer/dlg/ConnectPanel.java;
/cvs/db/src/org/netbeans/modules/db/explorer/dlg/ConnectPanel.java,v 
<--  ConnectPanel.java
new revision: 1.12; previous revision: 1.11
done
Comment 10 Martin Schovanek 2005-11-18 16:13:04 UTC
Verified