Hibernate : Disabling contextual LOB creation as createClob() method threw error

本文探讨了使用Hibernate 3.5.6与Oracle 10g时遇到的初始化异常问题,该异常虽然不影响应用程序正常运行,但可能带来不必要的困扰。文章提供了两种解决方案:一是禁用Hibernate尝试从数据库检索元信息的功能;二是通过配置文件调整属性来消除异常。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I am using 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?

First Way:

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


Second Way:


To get rid of the exception

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

In hibernate.cfg.xml file add below property

<property name="hibernate.temp.use_jdbc_metadata_defaults">false</property>
 

转载于:https://www.cnblogs.com/Morus-alba/p/6109886.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值