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 sourceforge.net by Unknown author, 2 years ago
java.lang.ClassCastException: Location	at org.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:693)	at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:282)	at org.hibernate.loader.Loader.doQuery(Loader.java:389)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:208)	at org.hibernate.loader.Loader.doList(Loader.java:1522)	at org.hibernate.loader.Loader.list(Loader.java:1505)	at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:103)	at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1343)	at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:151)	at org.hibernate.persister.collection.NamedQueryCollectionInitializer.initialize(NamedQueryCollectionInitializer.java:49)	at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:488)	at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)	at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1356)	at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:171)	at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:48)	at org.hibernate.collection.PersistentBag.size(PersistentBag.java:218)	at ReportTest.main(ReportTest.java:35)