java.lang.IllegalArgumentException: Parameter value [ROLE_2] was not matching type [java.util.Set]

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 Koen Molkenboer, 1 year ago
Parameter value [ROLE_2] was not matching type [java.util.Set]
via Hibernate JIRA by Koen Molkenboer, 1 year ago
Parameter value [ROLE_2] was not matching type [java.util.Set]
via Google Groups by Chris Seidel, 7 months ago
Parameter value [Test] was not matching type [java.util.Set]
via Stack Overflow by Eernie
, 2 years ago
Parameter value [shared.models.Restaurant@f59fc] was not matching type [java.util.Map]
via Oracle Community by 802104, 1 year ago
Parameter value [List.Name 20003[20003]] was not matching type [java.util.ArrayList]
via Stack Overflow by Stephan
, 2 years ago
Parameter value [604800000] was not matching type [java.lang.Double]
java.lang.IllegalArgumentException: Parameter value [ROLE_2] was not matching type [java.util.Set]
at org.hibernate.ejb.AbstractQueryImpl.registerParameterBinding(AbstractQueryImpl.java:360)
at org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:359)
at org.hibernate.ejb.criteria.CriteriaQueryCompiler$1$1.bind(CriteriaQueryCompiler.java:194)
at org.hibernate.ejb.criteria.CriteriaQueryCompiler.compile(CriteriaQueryCompiler.java:247)
at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:437)

Users with the same issue

You are the first who have seen this exception.

Write tip

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