2

I understand the below is not a show stopper and we can live with it.

Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException

Also, I am able to suppress it using this suggestion.

But why exactly we are getting that exception in the first place?

Kannan Ramamoorthy
  • 3,980
  • 9
  • 45
  • 63
  • See: https://stackoverflow.com/questions/4588755/disabling-contextual-lob-creation-as-createclob-method-threw-error - It suggests it is outdated JDBC driver – Jan Zyka Mar 06 '19 at 11:01

1 Answers1

1

For me this error came with Postgres DB. In this case add in your file application.properties this line:

spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true

Alessandro Mattiuzzi
  • 2,309
  • 2
  • 18
  • 24
  • This doesn't answer the question. The question wasn't how to fix the problem, which they already knew, but what was actually going on with it. I'd like to know that too. – jimboweb Oct 26 '19 at 15:53