You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when Qore methods wrapping native java are used from Java, dynamic dispatch needs to be used to create jdbc connections in order for the class loader context to be set correctly in Java
otherwise errors of the following type can occur even with valid URLs and a valid classpath:
java.sql.SQLException: No suitable driver found for jdbc:sqlserver://rippy;port=1433;encrypt=false
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:706)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:190)
at org.qore.jni.QoreObjectBase.create0(Native Method)
at org.qore.jni.QoreObjectBase.<init>(QoreObjectBase.java:19)
at org.qore.jni.QoreObject.<init>(QoreObject.java:22)
at org.qore.jni.QoreJavaClassBase.<init>(QoreJavaClassBase.java:10)
at QoreURLClassLoader//qore.Qore.SQL.AbstractDatasource.<init>(Unknown Source)
at QoreURLClassLoader//qore.Qore.SQL.DatasourcePool.<init>(Unknown Source)
at QoreURLClassLoader//DsTest.main(DsTest.java:19)
The text was updated successfully, but these errors were encountered:
…ctions to ensure that they do not fail when called from native Java -> Qore -> Java
re-use the module's classloader when the classloader is used as the initial class loader from native Java
davidnich
added a commit
to qorelanguage/module-jni
that referenced
this issue
Aug 3, 2023
…ctions to ensure that they do not fail when called from native Java -> Qore -> Java (#173)
re-use the module's classloader when the classloader is used as the initial class loader from native Java
when Qore methods wrapping native java are used from Java, dynamic dispatch needs to be used to create jdbc connections in order for the class loader context to be set correctly in Java
otherwise errors of the following type can occur even with valid URLs and a valid classpath:
The text was updated successfully, but these errors were encountered: