netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Java DB drivers are not referencing correct Derby classes

Open DiskCrasher opened this issue 1 year ago • 7 comments

Apache NetBeans version

Apache NetBeans 17

What happened

The default Java DB drivers shown under NetBeans Services window point to incorrect/outdated Derby classes resulting in ClassNotFound exceptions when attempting to use them. The correct classes are:

org.apache.derby.jdbc.EmbeddedDriver - for Java DB (Embedded) located in derbytools.jar org.apache.derby.client.ClientAutoloadedDriver - for Java DB (Network) located in derbyclient.jar

Additionally, even after the drivers are updated to point to these new classes, attempting to create a new database results in a ClassNotFound exception for org.apache.derby.jdbc.ClientDriver. It doesn't appear to be using the modified driver settings. Even the "sample" database throws a "The Java DB (Network) driver was not found" error upon connect which doesn't make sense since that driver exists.

How to reproduce

Install the default Derby DB in NetBeans 17 and attempt to use the provided Java DB drivers or connect to the "sample" database.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 11

JDK

Microsoft build of OpenJDK with Hotspot 17.0.6+10 (x64)

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

Yes

DiskCrasher avatar Mar 18 '23 02:03 DiskCrasher