java.lang.IllegalArgumentException

Unknown ordinal value for enum class LevelEnum: 257

Solutions on the web11959

  • via Hibernate JIRA by hiberdude, 9 months ago
    Unknown ordinal value for enum class LevelEnum: 257
  • Unknown ordinal value for enum class LevelEnum: 257
  • Unknown ordinal value for enum class LevelEnum: 257
  • Stack trace

    • java.lang.IllegalArgumentException: Unknown ordinal value for enum class LevelEnum: 257 at org.hibernate.type.EnumType.nullSafeGet(EnumType.java:92) at org.hibernate.type.CustomType.nullSafeGet(CustomType.java:104) at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81) at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:1899) at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1372) at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1300) at org.hibernate.loader.Loader.getRow(Loader.java:1197) at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:569) at org.hibernate.loader.Loader.doQuery(Loader.java:689) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) at org.hibernate.loader.Loader.doList(Loader.java:2150) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029) at org.hibernate.loader.Loader.list(Loader.java:2024) at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:117) at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1672) at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:147) at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:169)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.