For others with the same error (does not answer this exact question)
I experienced this error with hibernate 4.3 and 5.0.5 due to fields of type java.time.LocalDateTime
, I have several entities using LocalDateTime, but only one of them caused the issue, I don’t know why.
It was fixed by adding the following dependency:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-java8</artifactId>
<version>${hibernate.version}</version>
</dependency>