java.lang.ClassCastException: [Lau.com.agrichem.addams.server.model.enums.SchedulingStatus; cannot be cast to java.lang.Enum

Stack Overflow | druiz | 3 months ago
  1. 0

    JPA Query: java.lang.ClassCastException: [Enum] cannot be cast to java.lang.Enum

    Stack Overflow | 3 months ago | druiz
    java.lang.ClassCastException: [Lau.com.agrichem.addams.server.model.enums.SchedulingStatus; cannot be cast to java.lang.Enum
  2. 0

    Hibernate criteria query throws an exception

    Stack Overflow | 2 years ago
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
  3. 0

    Getting ClassCastException while saving entity which has embeddable class with enumerated fields

    Stack Overflow | 5 years ago | LucianoWitt
    javax.transaction.RollbackException: ARJUNA-16053 Could not commit transaction.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JPA (Eclipselink) ElementCollection with Enum

    Stack Overflow | 3 years ago | Tim
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Enum
  6. 0

    ClassCastException when persisting enum via Hibernate

    Stack Overflow | 4 years ago | Zhedar
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Enum

  1. davidvanlaatum 2 times, last 2 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassCastException

    [Lau.com.agrichem.addams.server.model.enums.SchedulingStatus; cannot be cast to java.lang.Enum

    at org.hibernate.type.EnumType.nullSafeSet()
  2. Hibernate
    SessionImpl.list
    1. org.hibernate.type.EnumType.nullSafeSet(EnumType.java:239)
    2. org.hibernate.type.CustomType.nullSafeSet(CustomType.java:170)
    3. org.hibernate.param.NamedParameterSpecification.bind(NamedParameterSpecification.java:53)
    4. org.hibernate.loader.hql.QueryLoader.bindParameterValues(QueryLoader.java:628)
    5. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1956)
    6. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1909)
    7. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1887)
    8. org.hibernate.loader.Loader.doQuery(Loader.java:932)
    9. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:349)
    10. org.hibernate.loader.Loader.doList(Loader.java:2615)
    11. org.hibernate.loader.Loader.doList(Loader.java:2598)
    12. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2430)
    13. org.hibernate.loader.Loader.list(Loader.java:2425)
    14. org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:502)
    15. org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:371)
    16. org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:216)
    17. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1458)
    17 frames
  3. org.hibernate.query
    AbstractProducedQuery.list
    1. org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1426)
    2. org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1398)
    2 frames
  4. Hibernate
    Query.getResultList
    1. org.hibernate.Query.getResultList(Query.java:417)
    1 frame
  5. au.com.agrichem
    SchedulingsServiceImpl.getScheduling
    1. au.com.agrichem.addams.server.model.repositories.base.HibernateDaoImpl.getSingleResult(HibernateDaoImpl.java:100)
    2. au.com.agrichem.addams.server.model.repositories.impl.SchedulingsDaoImpl.getCurrentSchedulingByFarm(SchedulingsDaoImpl.java:126)
    3. au.com.agrichem.addams.server.services.impl.SchedulingsServiceImpl.getScheduling(SchedulingsServiceImpl.java:68)
    3 frames