Driver version
8.4.0
Problem description
Caused by: java.lang.ClassCastException: com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolProxy incompatible with com.microsoft.sqlserver.jdbc.SQLServerConnection
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.configureLobs(SQLServerResultSet.java:2085)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getClob(SQLServerResultSet.java:2825)
at com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getClob(WSJdbcResultSet.java:750)
at org.hibernate.type.descriptor.sql.ClobTypeDescriptor$1.doExtract(ClobTypeDescriptor.java:44)
at org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:47)
...
Analysis
54c6748#diff-e5880682be515f702f2a448d2dbcdedf introduced the new method "configureLobs".
configureLobs uses hardcoded SQLServerConnection. But in some usecases (java-applicationserver?) the connection is not an instance of SQLServerConnection but of SQLServerConnectionPoolProxy. --> ClassCastException

Driver version
8.4.0
Problem description
Caused by: java.lang.ClassCastException: com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolProxy incompatible with com.microsoft.sqlserver.jdbc.SQLServerConnection
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.configureLobs(SQLServerResultSet.java:2085)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getClob(SQLServerResultSet.java:2825)
at com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getClob(WSJdbcResultSet.java:750)
at org.hibernate.type.descriptor.sql.ClobTypeDescriptor$1.doExtract(ClobTypeDescriptor.java:44)
at org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:47)
...
Analysis
54c6748#diff-e5880682be515f702f2a448d2dbcdedf introduced the new method "configureLobs".
configureLobs uses hardcoded SQLServerConnection. But in some usecases (java-applicationserver?) the connection is not an instance of SQLServerConnection but of SQLServerConnectionPoolProxy. --> ClassCastException