我在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()方法抛出错误
发布评论