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 Tree 'Huggy Bear' Hugger, 2 years ago
via Hibernate JIRA by Tree 'Huggy Bear' Hugger, 1 year ago
java.lang.ClassCastException: com.nomadsoft.cortex.domain.country.basic.BasicCountry	at org.hibernate.type.StringType.toString(StringType.java:44)	at org.hibernate.type.NullableType.toLoggableString(NullableType.java:168)	at org.hibernate.pretty.MessageHelper.collectionInfoString(MessageHelper.java:284)	at org.hibernate.loader.Loader.readCollectionElement(Loader.java:972)	at org.hibernate.loader.Loader.readCollectionElements(Loader.java:635)	at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)	at org.hibernate.loader.Loader.doQuery(Loader.java:689)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)	at org.hibernate.loader.Loader.loadEntity(Loader.java:1785)	at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:47)	at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:41)	at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2730)	at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:365)	at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:346)	at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123)	at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)	at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)	at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:862)	at org.hibernate.impl.SessionImpl.get(SessionImpl.java:799)	at org.hibernate.impl.SessionImpl.get(SessionImpl.java:792)	at org.springframework.orm.hibernate3.HibernateTemplate$1.doInHibernate(HibernateTemplate.java:452)	at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:366)	at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:446)	at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:440)	at com.nomadsoft.cortex.infrastructure.hibernate.HibernateCountryRepository.getById(HibernateCountryRepository.java:26)	at com.nomadsoft.cortex.domain.country.basic.BasicCountryService.getCountry(BasicCountryService.java:34)