32yg6599o0 发表于 2016-7-5 08:10:45

weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB incompatible with oracle.sql.CLOB 解决方

Object ocontent =resMap.get("CONTENTS");
//weblogic 驱动问题
if("weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB".equals(ocontent.getClass().getName())){
         Method   method = ocontent.getClass().getMethod("getVendorObj",new Class[]{});
         resContents = (oracle.sql.CLOB)method.invoke(ocontent);
    } else{
    resContents = (CLOB) resMap.get("CONTENTS");
    }
页: [1]
查看完整版本: weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB incompatible with oracle.sql.CLOB 解决方