java.lang.ClassCastException: [; cannot be cast to java.lang.Enum

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 Stack Overflow by druiz
, 1 year ago
[; cannot be cast to java.lang.Enum
via Stack Overflow by Zhedar
, 2 years ago
java.lang.String cannot be cast to java.lang.Enum
via Stack Overflow by LucianoWitt
, 2 years ago
java.lang.ClassCastException: [; cannot be cast to java.lang.Enum
at org.hibernate.type.EnumType.nullSafeSet(
at org.hibernate.type.CustomType.nullSafeSet(
at org.hibernate.param.NamedParameterSpecification.bind(
at org.hibernate.loader.hql.QueryLoader.bindParameterValues(
at org.hibernate.loader.Loader.prepareQueryStatement(
at org.hibernate.loader.Loader.executeQueryStatement(
at org.hibernate.loader.Loader.executeQueryStatement(
at org.hibernate.loader.Loader.doQuery(
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(
at org.hibernate.loader.Loader.doList(
at org.hibernate.loader.Loader.doList(
at org.hibernate.loader.Loader.listIgnoreQueryCache(
at org.hibernate.loader.Loader.list(
at org.hibernate.loader.hql.QueryLoader.list(
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(
at org.hibernate.engine.query.spi.HQLQueryPlan.performList(
at org.hibernate.internal.SessionImpl.list(
at org.hibernate.query.internal.AbstractProducedQuery.doList(
at org.hibernate.query.internal.AbstractProducedQuery.list(

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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