简体   繁体   English

Weblogic 12.2.1.4 - java.sql.SQLException / CLOB 兼容性问题

[英]Weblogic 12.2.1.4 - java.sql.SQLException / CLOB Compatibility Issue

After upgrading to Weblogic 12.2.1.4, we're seeing that certain functions (for example length() and getCharacterStream()) that read CLOB data are throwing java.sql.SQLException: Connection has already been closed errors.升级到 Weblogic 12.2.1.4 后,我们看到某些读取 CLOB 数据的函数(例如 length() 和 getCharacterStream())抛出 java.sql.SQLException: Connection has already been closed 错误。 Is there some kind of compatibility issue with WL 12.2.1.4? WL 12.2.1.4 是否存在某种兼容性问题? Is there an alternative way of processing CLOBs?是否有另一种处理 CLOB 的方法?

I have solved this error by changing the settings in Weblogic connection pool used.我通过更改使用的 Weblogic 连接池中的设置解决了这个错误。 https://docs.oracle.com/middleware/1212/wls/WLACH/taskhelp/jdbc/jdbc_datasources/DisableWrapping.html Advanced setting: In Wrap Data Types, deselect the checkbox todisable wrapping https://docs.oracle.com/middleware/1212/wls/WLACH/taskhelp/jdbc/jdbc_datasources/DisableWrapping.html Advanced setting: In Wrap Data Types, deselect the checkbox todisable wrapping

It's an oracle Bug.这是一个 oracle 错误。 However oracle say that is correct behavior to close the connection.但是oracle说关闭连接是正确的行为。

Work around is to disable "wrap data type" option in data source advance settings .解决方法是禁用数据源高级设置中的"wrap data type"选项。

Fix: Change the app so reading and absorbing LOB is completed within a single transaction.修复:更改应用程序,以便在单个事务中完成读取和吸收 LOB。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 获取JDBC驱动程序兼容性问题。 java.sql.SQLException:ORA-06413:连接未打开 - Getting JDBC drivers compatibility issue. java.sql.SQLException: ORA-06413: Connection not open 使用getCharacterStream API读取Clob对象会导致“ java.sql.SQLException:无法重置读取器” - Reading Clob object using getCharacterStream API causes “java.sql.SQLException: could not reset reader” java.sql.SQLException:无法为SELECTs发出executeUpdate()或executeLargeUpdate() - java.sql.SQLException: Can not issue executeUpdate() or executeLargeUpdate() for SELECTs java.sql.SQLException: 月 - java.sql.SQLException: MONTH java.sql.SQLException:没有这样的列 - java.sql.SQLException: no such column java.sql.SQLException:无法在设置自动提交的情况下回滚(JDBC with OracleConnection,Weblogic 12c) - java.sql.SQLException:Could not rollback with auto commit set on (JDBC with OracleConnection ,Weblogic 12c) Clob列java.sql.SQLException:ORA-01461:可以绑定LONG值,仅用于插入到LONG列中 - Clob column java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column SQL错误(java.sql.SQLException) - SQL Errors (java.sql.SQLException) 找不到java.sql.sqlexception列 - java.sql.sqlexception column not found java.sql.SQLException 无效的对象名称 - java.sql.SQLException Invalid object name
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM