禁用上下文LOB创建为createClob()方法抛出错误

编程入门 行业动态 更新时间:2024-10-24 03:22:53
本文介绍了禁用上下文LOB创建为createClob()方法抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在Oracle 10g中使用Hibernate 3.5.6。我在初始化过程中看到下面的异常,但应用程序本身工作正常。这种例外的原因是什么?以及如何修正它?

例外 禁用上下文LOB创建为 createClob( )方法抛出错误: java.lang.reflect.InvocationTargetException

Info Oracle版本:Oracle数据库10g企业版版本10.2.0.4.0 JDBC驱动程序:Oracle JDBC驱动程序,版本:11.1.0.7.0

解决方案

正如你注意到的,这个异常并不是真正的问题。它在启动过程中发生,当时Hibernate试图从数据库中检索一些元信息。如果这样做会让你感到厌烦,你可以禁用它:

hibernate.temp.use_jdbc_metadata_defaults false

I am using Hibernate 3.5.6 with Oracle 10g. I am seeing the below exception during initialization but the application itself is working fine. What is the cause for this exception? and how it can be corrected?

Exception Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException

Info Oracle version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 JDBC driver: Oracle JDBC driver, version: 11.1.0.7.0

解决方案

As you noticed, this exception isn't a real problem. It happens during the boot, when Hibernate tries to retrieve some meta information from the database. If this annoys you, you can disable it:

hibernate.temp.use_jdbc_metadata_defaults false

更多推荐

禁用上下文LOB创建为createClob()方法抛出错误

本文发布于:2023-10-28 23:33:06,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上下文   抛出   错误   方法   createClob

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!