IntelliJ throws exception when installing FileMaker JDBC driver
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");
Please sign in to leave a comment.
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):
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.