IntelliJ throws exception when installing FileMaker JDBC driver

Answered

When installing a new JDBC driver as a data source, IntelliJ throws an exception, logged as:

 

2018-02-28 22:14:55,804 [ 474025] WARN - ution.rmi.RemoteProcessSupport - Exception in thread "main" java.lang.InstantiationException: java.sql.Driver
2018-02-28 22:14:55,804 [ 474025] WARN - ution.rmi.RemoteProcessSupport - at java.lang.Class.newInstance(Class.java:427)
2018-02-28 22:14:55,804 [ 474025] WARN - ution.rmi.RemoteProcessSupport - at com.intellij.database.remote.RemoteJdbcServer.main(RemoteJdbcServer.java:14)
2018-02-28 22:14:55,804 [ 474025] WARN - ution.rmi.RemoteProcessSupport - Caused by: java.lang.NoSuchMethodException: java.sql.Driver.<init>()
2018-02-28 22:14:55,804 [ 474025] WARN - ution.rmi.RemoteProcessSupport - at java.lang.Class.getConstructor0(Class.java:3082)
2018-02-28 22:14:55,804 [ 474025] WARN - ution.rmi.RemoteProcessSupport - at java.lang.Class.newInstance(Class.java:412)
2018-02-28 22:14:55,804 [ 474025] WARN - ution.rmi.RemoteProcessSupport - ... 1 more

Using the driver in a Java project itself works fine, like:

Driver d = (Driver) Class.forName("com.filemaker.jdbc.Driver").newInstance();

Connection con = DriverManager.getConnection("jdbc:filemaker://localhost/mydb?user=me&password=1337-haxx0r");

 

0
2 comments

Check that you have specified the correct class name in Driver settings (when you set the appropriate jdbc driver jar, DataGrip will list the driver classes from this jar in the drop-down):

1
Avatar
Permanently deleted user

I managed to completely miss that. Thanks! I assumed since the driver implements that interface it would just autoload, but that is obviously not the case.

0

Please sign in to leave a comment.