Search code examples
spring-data-jpahibernate-criteria

Parameter value [\] did not match expected type [java.lang.String (n/a)]


Getting below exception for 2nd call onwards.We are using hibernate 5.6.6.Final

"message": "Parameter value [\] did not match expected type [java.lang.String (n/a)]; nested exception is java.lang.IllegalArgumentException: Parameter value [\] did not match expected type [java.lang.String (n/a)]",


Solution

  • You are facing a bug introduced in Hibernate 5.6.6.Final and fixed in 5.6.9.Final: https://hibernate.atlassian.net/browse/HHH-15142

    Just upgrade your Hibernate version.