java.lang.IllegalArgumentException: Parameter value [LARGE] did not match expected type [java.lang.Integer (n/a)]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Hibernate JIRA by Thomas Rauner, 1 year ago
Parameter value [LARGE] did not match expected type [java.lang.Integer (n/a)]
via Hibernate JIRA by Thomas Rauner, 1 year ago
Parameter value [LARGE] did not match expected type [java.lang.Integer (n/a)]
via Hibernate JIRA by M F, 1 year ago
Parameter value [test] did not match expected type [de.mtf.DBObject (n/a)]
via Hibernate JIRA by M F, 1 year ago
Parameter value [de.mtf.DBObject@7bf9b098] did not match expected type [java.lang.String (n/a)]
via Stack Overflow by Ammar Samater
, 10 months ago
Parameter value [0] did not match expected type [entity.Lang (n/a)]
via Stack Overflow by bilak
, 10 months ago
Parameter value [ENUM1] did not match expected type [com.github.bilak.persistence.jpa.model.SimpleEnum (n/a)]
java.lang.IllegalArgumentException: Parameter value [LARGE] did not match expected type [java.lang.Integer (n/a)]
at org.hibernate.jpa.spi.BaseQueryImpl.validateBinding(BaseQueryImpl.java:858)
at org.hibernate.jpa.internal.QueryImpl.access$000(QueryImpl.java:62)
at org.hibernate.jpa.internal.QueryImpl$ParameterRegistrationImpl.bindValue(QueryImpl.java:235)
at org.hibernate.jpa.spi.BaseQueryImpl.setParameter(BaseQueryImpl.java:603)
at org.hibernate.jpa.spi.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:163)
at org.hibernate.jpa.spi.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:32)
at org.hibernate.jpa.criteria.compile.CriteriaCompiler$1$1.bind(CriteriaCompiler.java:109)
at org.hibernate.jpa.criteria.CriteriaQueryImpl$1.buildCompiledQuery(CriteriaQueryImpl.java:369)
at org.hibernate.jpa.criteria.compile.CriteriaCompiler.compile(CriteriaCompiler.java:130)
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:699)

Users with the same issue

Once, 5 months ago
6 times, 2 weeks ago
3 times, 5 months ago
Once, 5 months ago
3 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.