java.lang.IllegalArgumentException: Unknown ordinal value for enum class LevelEnum: 257

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 hiberdude, 1 year ago
Unknown ordinal value for enum class LevelEnum: 257
via hibernate.org by Unknown author, 2 years ago
Unknown ordinal value for enum class LevelEnum: 257
via Hibernate JIRA by hiberdude, 1 year ago
Unknown ordinal value for enum class LevelEnum: 257
via atlassian.net by Unknown author, 2 years ago
via Coderanch by Sverre Moe, 1 year ago
Unknown name value for enum class no.bbs.bkad.domain.bankkunde.KundeAutomatiskOppdatering: 0
via hibernate.org by Unknown author, 2 years ago
Unknown name value for enum class auction.model.CreditCardType: String
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.impl.SessionImpl.listCustomQuery(SessionImpl.java:1672)
at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:147)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:169)

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.