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.
Version: NetBeans IDE Dev (Build 200409220845) JDK (1.5.0) Java HotSpot(TM) Client VM 1.5.0-b64; NullPointerException in GUI. To reproduce: 1. Go to "Runtime" tab in IDE 2. Expand "Databases" 3. Right-click on "Drivers" and select "Add Driver..." 4. Tried to add jt400.jar (IBM jtOpen 4.5) for OS400 5. It doesn't find the driver class and name 6. clicking on find (to find the driver(s) in the jar) produces a NullPointerException
Created attachment 18353 [details] Resulting messages.log with stack trace
Attempt to reproduce the same exception with MSSQL and MySQL drivers didn't succeed. My guess is the exception is due to the IBM OS400 DB2 driver. Even if the problem is due to the driver, it shouldn't produce a NullPointerException. At the end of the message.log you can see that some value is being labeled as "undefined": "ERROR: 'jar:file:/E:/jlib_as400/jt400.jar!/com/ibm/as400/util/gencmd doc.xsl: line 126: Variable or parameter '_WHERE_ALLOWED_TO_RUN' is undefined.' FATAL ERROR: 'Could not compile stylesheet'" Will extract and attach the stylesheet. jtopen 4.5 can be downloaded from IBM: http://www-1.ibm.com/servers/eserver/iseries/toolbox/index.html
Created attachment 18354 [details] The xsl stylesheet causing the error
A few things i forgot to mention (first time here :-) After getting the NullPointerException the "Driver Class" combo box contains the correct class name, but it is not selected automatically. Probably due to the unexpected exception... The name of the driver is not found at all. Select the class (com.ibm.as400.access.AS400JDBCDriver) and enter some descriptive name (f.e. as400), click on OK. Now when trying to connect to some system, you'll also note that the jdbc url is not filled in... Should be "jdbc:as400://<host>:<port>"
NPE seems like a duplicate of issue #38380.
Calls on progress bar are now done in EventDispatchThread. Checking in src/org/netbeans/modules/db/explorer/dlg/AddDriverDialog.java; /cvs/db/src/org/netbeans/modules/db/explorer/dlg/AddDriverDialog.java,v <-- AddDriverDialog.java new revision: 1.25; previous revision: 1.24 done
VERIFIED