当createClob()方法引发错误时,禁用上下文LOB创建:java.lang.reflect.InvocationTargetException [英] Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException

查看:248
本文介绍了当createClob()方法引发错误时,禁用上下文LOB创建:java.lang.reflect.InvocationTargetException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将休眠配置为使用Posgresql

I configured hibernate to use Posgresql

<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQL92Dialect</property>
        <property name="hibernate.connection.driver_class">org.postgresql.Driver</property>

但是当我启动tomcat时出现异常:

But I get exception when I start tomcat:

23-Jul-2017 21:22:25.544 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 7529 ms
23-Jul-2017 21:26:47.901 INFO [http-nio-8081-exec-9] org.hibernate.Version.logVersion HHH000412: Hibernate Core {5.2.10.Final}
23-Jul-2017 21:26:47.912 INFO [http-nio-8081-exec-9] org.hibernate.cfg.Environment.<clinit> HHH000206: hibernate.properties not found
23-Jul-2017 21:26:48.546 INFO [http-nio-8081-exec-9] org.hibernate.annotations.common.reflection.java.JavaReflectionManager.<clinit> HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
23-Jul-2017 21:26:49.840 INFO [http-nio-8081-exec-9] org.hibernate.dialect.Dialect.<init> HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL92Dialect
23-Jul-2017 21:26:50.021 INFO [http-nio-8081-exec-9] org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl.useContextualLobCreation HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
23-Jul-2017 21:26:50.024 INFO [http-nio-8081-exec-9] org.hibernate.type.BasicTypeRegistry.register HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType@4bbde374
Hibernate: 

当我在Postgresql表中插入记录时,行为空。
如何正确配置Hibernate?

When I insert record in Postgresql table rows are empty. How I can configure properly Hibernate?

推荐答案

此异常由Hibernate引发,与Spring Boot无关。或您的实现。可以通过按照链接

This exception is thrown by Hibernate and has nothing to do with Spring Boot or your implementation. This error can be suppressed by modifying your application.properties as per the instructions in this link.

这篇关于当createClob()方法引发错误时,禁用上下文LOB创建:java.lang.reflect.InvocationTargetException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆