org.hibernate.exception.GenericJDBCException: could not load an entity: [test1.data.Parent#186]

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, 1 year ago
could not load an entity: [test1.data.Parent#186]
via Hibernate JIRA by Alec Swan, 1 year ago
could not load an entity: [test1.data.Parent#186]
via Hibernate JIRA by Alec Swan, 1 year ago
could not load an entity: [test1.data.Parent#186]
via sourceforge.net by Unknown author, 2 years ago
could not load an entity: [test1.data.Parent#186]
via Coderanch by Lars Andr�n, 1 year ago
could not load an entity: [shoppingpackage.ShoppingDetails#1]
via jboss.org by Unknown author, 2 years ago
Could not execute JDBC batch update
org.postgresql.util.PSQLException: Result set not positioned properly, perhaps you need to call next().
at org.postgresql.jdbc1.AbstractJdbc1ResultSet.checkResultSet(AbstractJdbc1ResultSet.java:823)
at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1ResultSet.java:200)
at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getFixedString(AbstractJdbc1ResultSet.java:792)
at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getLong(AbstractJdbc1ResultSet.java:292)
at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getLong(AbstractJdbc1ResultSet.java:506)
at org.hibernate.type.LongType.get(LongType.java:26)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:62)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:53)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:70)
at org.hibernate.persister.BasicEntityPersister.hydrate(BasicEntityPersister.java:1519)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:815)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:773)
at org.hibernate.loader.Loader.getRow(Loader.java:685)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:278)
at org.hibernate.loader.Loader.doQuery(Loader.java:366)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:193)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1151)
at org.hibernate.loader.EntityLoader.load(EntityLoader.java:111)
at org.hibernate.loader.EntityLoader.load(EntityLoader.java:97)
at org.hibernate.persister.BasicEntityPersister.load(BasicEntityPersister.java:2304)
at org.hibernate.event.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:352)
at org.hibernate.event.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:333)
at org.hibernate.event.DefaultLoadEventListener.load(DefaultLoadEventListener.java:158)
at org.hibernate.event.DefaultLoadEventListener.load(DefaultLoadEventListener.java:131)
at org.hibernate.event.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:110)
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:117)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:159)
at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:115)
at test1.data.Parent$$EnhancerByCGLIB$$e1d1b98f.toString()
at java.lang.String.valueOf(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at test1.engine.Test.main(Test.java:59)

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.