[英]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.