Hide
See report by Sarah Haskins:
"ClassCastException on line 51 of OracleJDBCTypeFactory.
java.lang.ClassCastException: org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
at oracle.sql.STRUCT.<init>(STRUCT.java:138)
at org.hibernatespatial.oracle.OracleJDBCTypeFactory.createStruct(OracleJDBCTypeFactory.java:51)
at org.hibernatespatial.oracle.SDOGeometry.store(SDOGeometry.java:154)
at org.hibernatespatial.oracle.SDOGeometryType.conv2DBGeometry(SDOGeometryType.java:82)
...
I have a custom ConnectionFinder which is being called to return the "oracleConnection" in OracleJDBCTypeFactory.createStruct, but since the oracleConnection is not used to create the STRUCT (the initial method argument conn is used instead), I am getting this ClassCastException."
Show
See report by Sarah Haskins:
"ClassCastException on line 51 of OracleJDBCTypeFactory.
java.lang.ClassCastException: org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
at oracle.sql.STRUCT.<init>(STRUCT.java:138)
at org.hibernatespatial.oracle.OracleJDBCTypeFactory.createStruct(OracleJDBCTypeFactory.java:51)
at org.hibernatespatial.oracle.SDOGeometry.store(SDOGeometry.java:154)
at org.hibernatespatial.oracle.SDOGeometryType.conv2DBGeometry(SDOGeometryType.java:82)
...
I have a custom ConnectionFinder which is being called to return the "oracleConnection" in OracleJDBCTypeFactory.createStruct, but since the oracleConnection is not used to create the STRUCT (the initial method argument conn is used instead), I am getting this ClassCastException."