'Exceptions in criteria API after changed hibernate.criteria.literal_handling_mode
I have a software which used java, ejb, hibernate and wicket. After I changed hibernate.criteria.literal_handling_mode on "bind" I get some exceptions in criteria api query
Query
TypedQuery<Long> typed = getEntityManager().createQuery(query);
Exceptions
Caused by: java.lang.IllegalArgumentException: Parameter value [0] did not match expected type [java.lang.Long (n/a)]
And
2022-04-21 15:38:27,683 ERROR [org.apache.wicket.DefaultExceptionMapper] (default task-1) Unexpected error occurred: org.apache.wicket.WicketRuntimeException:
Can't instantiate page using constructor 'public com.application.ui.wicket.pages.AllRestrictionPage()'.
Might be it doesn't exist, may be it is not visible (public).
If I removing hibernate.criteria.literal_handling_mode (AUTO by default) all works properly.
How handling mode can affected on wicket?
P.S. More information: exception occurred in -> QueryParameterBindingValidator.validate() on 54 row. Version of hibernate - 5.3.7.Final (provided by jboss)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
