java.lang.ClassCastException: Location

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 Jeroen van Vianen, 1 year ago
via by Unknown author, 2 years ago
via Hibernate JIRA by Jeroen van Vianen, 1 year ago
java.lang.ClassCastException: Location
at org.hibernate.loader.Loader.getKeyFromResultSet(
at org.hibernate.loader.Loader.getRowFromResultSet(
at org.hibernate.loader.Loader.doQuery(
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(
at org.hibernate.loader.Loader.doList(
at org.hibernate.loader.Loader.list(
at org.hibernate.impl.SessionImpl.listCustomQuery(
at org.hibernate.impl.SQLQueryImpl.list(
at org.hibernate.persister.collection.NamedQueryCollectionInitializer.initialize(
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(
at org.hibernate.impl.SessionImpl.initializeCollection(
at org.hibernate.collection.AbstractPersistentCollection.initialize(
at undefined.ReportTest.main(

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.