org.hibernate.exception.GenericJDBCException

could not load an entity: [test1.data.Parent#186]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4

  • via Unknown by Unknown author,
  • via Unknown by Unknown author,
  • via Unknown by Alec Swan,
  • Stack trace

    • org.hibernate.exception.GenericJDBCException: could not load an entity: [test1.data.Parent#186] at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:82) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:70) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.loader.Loader.loadEntity(Loader.java:1160) 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.impl.SessionImpl.immediateLoad(SessionImpl.java:716) 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(<generated>) at java.lang.String.valueOf(Unknown Source) at java.lang.StringBuffer.append(Unknown Source) at test1.engine.Test.main(Test.java:59) Caused by: 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) ... 16 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.