Uploaded image for project: 'Hibernate ORM'
  1. HHH-12368

java.sql.SQLFeatureNotSupportedException in LobCreatorBuilderImpl

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.1.12, 5.2.14
    • Fix Version/s: 5.4.0.CR1
    • Component/s: hibernate-core
    • Labels:
      None
    • Environment:
      Postgresql JDBC Driver 42.1.4
    • Last commented by a user?:
      true
    • Sprint:

      Description

      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 = jdbc:postgresql://localhost:5434/<database>
      spring.datasource.username=username
      spring.datasource.password=secret

      Application ends with NPE. This sample is used as test case for HHH-12332

      hibernate-sandbox.zip

        Attachments

          Activity

            People

            • Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: