Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling contextual LOB creation as createClob() method threw error

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

like image 597
GiriByaks Avatar asked Jan 03 '11 22:01

GiriByaks


People also ask

What is contextual lob creation?

"Contextual LOB creation" is probably using createClob (or similar) within a contextual session.

What is Hibernate JDBC lob Non_contextual_creation?

hibernate. jdbc. lob. non_contextual_creation=true This entry is put just to avoid a warning message in the logs when you start the spring-boot application. This bug is from hibernate which tries to retrieve some metadata from postgresql db and failed to find that and logs as a warning.

What is hibernate temp Use_jdbc_metadata_defaults?

hibernate.temp.use_jdbc_metadata_defaults (e.g. true (default value) or false ) This setting is used to control whether we should consult the JDBC metadata to determine certain Settings default values when the database may not be available (mainly in tools usage).


1 Answers

Disable this warning by adding property below.

For Spring application:

spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false 

Normal JPA:

hibernate.temp.use_jdbc_metadata_defaults=false 
like image 63
Narayan Yerrabachu Avatar answered Oct 10 '22 10:10

Narayan Yerrabachu