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
[Lau.com.agrichem.addams.server.model.enums.SchedulingStatus; 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: [Lau.com.agrichem.addams.server.model.enums.SchedulingStatus; cannot be cast to java.lang.Enum	at org.hibernate.type.EnumType.nullSafeSet(EnumType.java:239)	at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:170)	at org.hibernate.param.NamedParameterSpecification.bind(NamedParameterSpecification.java:53)	at org.hibernate.loader.hql.QueryLoader.bindParameterValues(QueryLoader.java:628)	at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1956)	at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1909)	at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1887)	at org.hibernate.loader.Loader.doQuery(Loader.java:932)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:349)	at org.hibernate.loader.Loader.doList(Loader.java:2615)	at org.hibernate.loader.Loader.doList(Loader.java:2598)	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2430)	at org.hibernate.loader.Loader.list(Loader.java:2425)	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:502)	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:371)	at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:216)	at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1458)	at org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1426)	at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1398)	at org.hibernate.Query.getResultList(Query.java:417)	at au.com.agrichem.addams.server.model.repositories.base.HibernateDaoImpl.getSingleResult(HibernateDaoImpl.java:100)	at au.com.agrichem.addams.server.model.repositories.impl.SchedulingsDaoImpl.getCurrentSchedulingByFarm(SchedulingsDaoImpl.java:126)	at au.com.agrichem.addams.server.services.impl.SchedulingsServiceImpl.getScheduling(SchedulingsServiceImpl.java:68)