oracle connection cast exception

hi, I am getting an error when pass the connection to a jpub. The connection is from datasource.

the code which throws out the exception:

java.sql.Struct struct = (java.sql.Struct)object;


Error msg:

java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast to java.sql.Struct

OriginalPostID-232177

  Discussion posts and replies are publicly visible