我一直在阅读和搜索有关我的问题的信息,我尝试了所陈述的答案,但对此没有任何运气。我已经尝试过解包方法,但是还是没有运气。
我曾尝试在战争构建/工作区中删除ojdbc14.jar并将其放置在JBoss服务器中,但是却遇到未找到类的错误,并且在我的Eclipse工作区中出现红色下划线。
我在此来源中遇到投放错误。
conn = setDBConnection();
cstmt = conn.prepareCall("{ CALL DB.CRM_GET_DTLS_PKG.INFORMATION(?, ?, ?, ?) }");
StructDescriptor sd = new StructDescriptor(OBJ_TYPE, conn);
ArrayDescriptor ad = new ArrayDescriptor(COL_TYPE, conn);
尝试:
conn = setDBConnection();
OracleConnection oracleConnection = (OracleConnection)
((WrappedConnectionJDK8) conn).getUnderlyingConnection();
cstmt = conn.prepareCall("{ CALL DB.CRM_GET_DTLS_PKG.INFORMATION(?, ?, ?, ?) }");
StructDescriptor sd = new StructDescriptor(OBJ_TYPE, oracleConnection);
ArrayDescriptor ad = new ArrayDescriptor(COL_TYPE, oracleConnection);
但收到此错误
org.jboss.jca.adapters.jdbc.jdk8.WrappedConnectionJDK8 cannot be cast to org.jboss.jca.adapters.jdbc.jdk8.WrappedConnectionJDK8
也尝试过:
conn = (OracleConnection)
setDBConnectionCRM().getClass().getMethod("getUnderlyingConnection").invoke(setDBConnectionCRM());
cstmt = conn.prepareCall("{ CALL DB.CRM_GET_DTLS_PKG.INFORMATION(?, ?, ?, ?) }");
StructDescriptor sd = new StructDescriptor(OBJ_TYPE, conn);
ArrayDescriptor ad = new ArrayDescriptor(COL_TYPE, conn);
但出现此错误:
oracle.jdbc.driver.T4CConnection cannot be cast to oracle.jdbc.driver.OracleConnection
感谢任何想法或启发!