java.lang.IllegalArgumentException: Parameter value [de.mtf.DBObject@7bf9b098] did not match expected type [java.lang.String (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

Solutions on the web

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 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 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 Stack Overflow by Ammar Samater
, 9 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 [de.mtf.DBObject@7bf9b098] did not match expected type [java.lang.String (n/a)]
at org.hibernate.jpa.spi.BaseQueryImpl.validateBinding(BaseQueryImpl.java:897)
at org.hibernate.jpa.internal.QueryImpl.access$000(QueryImpl.java:61)
at org.hibernate.jpa.internal.QueryImpl$ParameterRegistrationImpl.bindValue(QueryImpl.java:235)
at org.hibernate.jpa.spi.BaseQueryImpl.setParameter(BaseQueryImpl.java:638)
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)
at de.mtf.TreatTest.testTreat(TreatTest.java:98)

Users with the same issue

6 times, 2 weeks ago
3 times, 5 months ago
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
3 times, 1 year ago
14 more bugmates

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