Skip to content

Commit c2f93a3

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
1 parent 558245d commit c2f93a3

File tree

2 files changed

+3
-0
lines changed

2 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)

0 commit comments

Comments
 (0)