How to resolve org.postgresql.jdbc.PgConnection.createClob() is not yet implemented

caliari77 :

The exception

When starting spring-boot application I've received:

Caused by: java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.

I know this is related to some issue from Postgresql driver, which I am using now.

Unsucessful attempt

Many people resolved the problem just putting this following line in application.properties file:

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

I still have the same issue. Is there any other tip for It? In case thinking about see my project with current configuration: https://github.com/caliari77/hiRank

caliari77 :

After some tests I could resolve this. It seems Hibernate implementation was missing, so to resolve this I've added It in gradle.build file. I thought Spring-boot already took care of It when getting JPA, but I was wrong. Here It is my updated dependencies from gradle.build:

dependencies {

//Spring
//implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
//runtimeOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

//Hibernate
implementation 'org.hibernate:hibernate-core:5.4.2.Final'
implementation 'org.hibernate:hibernate-entitymanager:5.4.2.Final'

//Postgres
implementation 'org.postgresql:postgresql:42.2.5.jre7'

//Gson
implementation 'com.google.code.gson:gson:2.8.5'

//Logger
implementation 'log4j:log4j:1.2.17'

}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=116961&siteId=1