Skip to content

Commit 2d78b25

Browse files
committed
- Fix null pointer java error when connecting to jdbc:drill driver.
By setting the context class loader. modified: storage/connect/JavaWrappers.jar modified: storage/connect/JdbcInterface.java modified: storage/connect/mysql-test/connect/std_data/JdbcMariaDB.jar
1 parent aae6753 commit 2d78b25

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

storage/connect/JavaWrappers.jar

81 Bytes
Binary file not shown.

storage/connect/JdbcInterface.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public int JdbcConnect(String[] parms, int fsize, boolean scrollable) {
8282
System.out.println("URL=" + parms[1]);
8383

8484
CheckURL(parms[1], null);
85+
86+
// This is required for drivers using context class loaders
87+
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
8588

8689
if (parms[2] != null && !parms[2].isEmpty()) {
8790
if (DEBUG)
Binary file not shown.

0 commit comments

Comments
 (0)