Hi Scott,

You can try to wrap settings the TCCL, but it seems more a driver issue.

Can I reproduce it easily (just installingg SAP driver for instance) ?

Regards
JB

> Le 29 déc. 2020 à 19:31, Leschke, Scott <[email protected]> a écrit :
> 
> I have a JDBC driver jar (SAP HANA), that is build both as a bundle and an 
> MRJar file supporting JDKs 1.8, 9, 11.  It works fine when I run Karaf using 
> JDK 1.8, but if I try to use a more recent JDK, the driver throws the 
> following
>  
> Caused by: java.lang.AssertionError: Unexpected Java class loaded under Java 
> version 11 (maximum supported version is 8)
>                 at 
> com.sap.db.jdbc.DriverSapDB._checkJavaVersion(DriverSapDB.java:2055) ~[?:?]
>                 at 
> com.sap.db.jdbc.DriverSapDB.checkJavaVersionMaximum8(DriverSapDB.java:2030) 
> ~[?:?]
>                 at com.sap.db.jdbc.Driver.<clinit>(Driver.java:17) ~[?:?]
>  
> An SAP person says they think the classloader isn’t MRJar aware and is 
> loading the incorrect class. I most recently tried this with OpenJDK 14.x.  
> Since OSGi involves lots of classloader magic, might that be the case or 
> might something else be going on here?
>  
> Thanks and regards,
>  
> Scott Leschke

Reply via email to