Application throws exception java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented during hibernation initialization.
This exception not interrupting application work but it very annoying.
As I see hibernate trying to guess is driver support such function or not.
And this driver say that it not supporting this by throwing SQLFeatureNotSupportedException exception. And this is correct answer
I think it will be good to teach hibernate to handle such answer from driver.
In attach Spring Boot Application that illustrate this situation.
Need to change application.properties befor compile and run
spring.datasource.url = jdbcostgresql://localhost:5434/<database>
Application ends with NPE. This sample is used as test case for HHH-12332
Postgresql JDBC Driver 42.1.4
, IIUC, the exception just gets logged as INFO and Hibernate deals with it properly, doesn't it?
Yes, it does. But why such exception is logged? I mean what useful information I got when I see SQLFeatureNotSupportedException in my log, while hibernate trying to understand is driver support feature or not
I think that hibernate should handle SQLFeatureNotSupportedException exception, somthing like that:
I would say this is very low priority, especially since, as you mentioned, you can set hibernate.jdbc.lob.non_contextual_creation=true
This error is mostly harmless but is creating a lot of confusion to users upgrading to Spring Boot 2.0 which has gone GA, suddenly seeing exceptions in the log which weren't there before.