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

Hibernate JIRA | Alec Swan | 1 decade ago
  1. 0

    Hibernate / Mailing Lists

    sourceforge.net | 1 year ago
    org.hibernate.exception.GenericJDBCException: could not load an entity: [test1.data.Parent#186]
  2. 0

    Hibernate / Mailing Lists

    sourceforge.net | 8 months ago
    org.hibernate.exception.GenericJDBCException: could not load an entity: [test1.data.Parent#186]
  3. 0

    I am providing 3 configuration files: Parent.cfg, Child1.cfg, and Child2.cfg. Child1 and Child2 extend Parent and are mapped using <subclass> elements. Parent contains an "id" ant "type" properties. The "type" property is a discriminator. Child1 discriminator-value is "child1" and Child2 discriminator-value is "child2" 1) Description: I tried inserting a row in Child1, then a row in Child2 and then retrieving the Child1 row based on its id, and the retrieve the Child2 based on its id. 2) Problem: 2.1) Child1.cfg contains a "name" property. If the namesake property "name" is commented out in Child2.cfg, then everything works fine. In this case, Hibernate looks up the Parent table given an id, checks discriminator value and correcly loads Child2. The trace is shown below in 4.1) 3.2) If Child2.cfg "name" property is uncommented, then Hibernate gets "confused" and tries to join Child1 and Child2 tables when looking up Child2. The stack trace is shown below in 4.2) 3) How to reproduce: 3.1) Run the following to create your database: drop table parent cascade; create table parent (type varchar(8), id int primary key); drop table child1; create table child1 (id int references parent(id), name varchar(32)); drop table child2; create table child2 (id int references parent(id), age int, name varchar(32)); create sequence hibernate_sequence start 1 increment 1; 3.2) Use the three .cfg files shown below to establish the mapping: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package="test1.data"> <class name="Parent" table="parent"> <id column="id" name="Id" type="java.lang.Long" > <generator class="native" > <param name="schema">public</param> </generator> </id> <discriminator column="type" type="string" insert="false" /> <property column="type" length="8" name="Type" not-null="false" type="string" /> </class> </hibernate-mapping> <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package="test1.data"> <subclass name="Child1" extends="Parent" discriminator-value="child1" > <join table="child1" fetch="select" > <key column="id" /> <property column="name" length="32" name="Name" not-null="false" type="string" /> </join> </subclass> </hibernate-mapping> <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package="test1.data"> <subclass name="Child2" extends="Parent" discriminator-value="child2" > <join table="child2" fetch="select" > <key column="id" /> <property column="age" length="4" name="Age" not-null="false" type="java.lang.Long" /> <!--<property column="name" length="32" name="Name" not-null="false" type="string" />--> </join> </subclass> </hibernate-mapping> 3.3) Try inserting a Child1 and a Child2 row and then retrieve each of them. 4) Stack trace: 4.1) Stack trace for 2.1) Hibernate: select nextval ('public.hibernate_sequence') Hibernate: insert into public.parent (type, id) values (?, ?) Hibernate: insert into public.child1 (name, id) values (?, ?) Hibernate: select nextval ('public.hibernate_sequence') Hibernate: insert into public.parent (type, id) values (?, ?) Hibernate: insert into public.child2 (age, id) values (?, ?) Hibernate: select parent0_.id as id0_, parent0_.type as type0_0_, parent0_.type as type0_ from public.parent parent0_ where parent0_.id=? Hibernate: select parent_1_.name as name1_0_ from public.child1 parent_1_ where parent_1_.id=? Found child1 parent test1.data.Child1@b9008360 Hibernate: select parent0_.id as id0_, parent0_.type as type0_0_, parent0_.type as type0_ from public.parent parent0_ where parent0_.id=? Hibernate: select parent_2_.age as age2_0_ from public.child2 parent_2_ where parent_2_.id=? Found child2 parent test1.data.Child2@b90e9ae2 4.2) Stack trace for 2.2) Hibernate: select nextval ('public.hibernate_sequence') Hibernate: insert into public.parent (type, id) values (?, ?) Hibernate: insert into public.child1 (name, id) values (?, ?) Hibernate: select nextval ('public.hibernate_sequence') Hibernate: insert into public.parent (type, id) values (?, ?) Hibernate: insert into public.child2 (age, name, id) values (?, ?, ?) Hibernate: select parent0_.id as id0_, parent0_.type as type0_0_, parent0_.type as type0_ from public.parent parent0_ where parent0_.id=? Hibernate: select parent_1_.name as name1_0_ from public.child1 parent_1_ where parent_1_.id=? Found child1 parent test1.data.Child1@b900835e Hibernate: select parent0_.id as id0_, parent0_.type as type0_0_, parent0_.type as type0_ from public.parent parent0_ where parent0_.id=? Hibernate: select parent_1_.name as name1_0_, parent_2_.age as age2_0_, parent_2_.name as name2_0_ from public.child1 parent_1_ inner join public.child2 parent_2_ on parent_1_.id=parent_2_.id where parent_1_.id=? 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

    Hibernate JIRA | 1 decade ago | Alec Swan
    org.hibernate.exception.GenericJDBCException: could not load an entity: [test1.data.Parent#186]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am providing 3 configuration files: Parent.cfg, Child1.cfg, and Child2.cfg. Child1 and Child2 extend Parent and are mapped using <subclass> elements. Parent contains an "id" ant "type" properties. The "type" property is a discriminator. Child1 discriminator-value is "child1" and Child2 discriminator-value is "child2" 1) Description: I tried inserting a row in Child1, then a row in Child2 and then retrieving the Child1 row based on its id, and the retrieve the Child2 based on its id. 2) Problem: 2.1) Child1.cfg contains a "name" property. If the namesake property "name" is commented out in Child2.cfg, then everything works fine. In this case, Hibernate looks up the Parent table given an id, checks discriminator value and correcly loads Child2. The trace is shown below in 4.1) 3.2) If Child2.cfg "name" property is uncommented, then Hibernate gets "confused" and tries to join Child1 and Child2 tables when looking up Child2. The stack trace is shown below in 4.2) 3) How to reproduce: 3.1) Run the following to create your database: drop table parent cascade; create table parent (type varchar(8), id int primary key); drop table child1; create table child1 (id int references parent(id), name varchar(32)); drop table child2; create table child2 (id int references parent(id), age int, name varchar(32)); create sequence hibernate_sequence start 1 increment 1; 3.2) Use the three .cfg files shown below to establish the mapping: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package="test1.data"> <class name="Parent" table="parent"> <id column="id" name="Id" type="java.lang.Long" > <generator class="native" > <param name="schema">public</param> </generator> </id> <discriminator column="type" type="string" insert="false" /> <property column="type" length="8" name="Type" not-null="false" type="string" /> </class> </hibernate-mapping> <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package="test1.data"> <subclass name="Child1" extends="Parent" discriminator-value="child1" > <join table="child1" fetch="select" > <key column="id" /> <property column="name" length="32" name="Name" not-null="false" type="string" /> </join> </subclass> </hibernate-mapping> <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package="test1.data"> <subclass name="Child2" extends="Parent" discriminator-value="child2" > <join table="child2" fetch="select" > <key column="id" /> <property column="age" length="4" name="Age" not-null="false" type="java.lang.Long" /> <!--<property column="name" length="32" name="Name" not-null="false" type="string" />--> </join> </subclass> </hibernate-mapping> 3.3) Try inserting a Child1 and a Child2 row and then retrieve each of them. 4) Stack trace: 4.1) Stack trace for 2.1) Hibernate: select nextval ('public.hibernate_sequence') Hibernate: insert into public.parent (type, id) values (?, ?) Hibernate: insert into public.child1 (name, id) values (?, ?) Hibernate: select nextval ('public.hibernate_sequence') Hibernate: insert into public.parent (type, id) values (?, ?) Hibernate: insert into public.child2 (age, id) values (?, ?) Hibernate: select parent0_.id as id0_, parent0_.type as type0_0_, parent0_.type as type0_ from public.parent parent0_ where parent0_.id=? Hibernate: select parent_1_.name as name1_0_ from public.child1 parent_1_ where parent_1_.id=? Found child1 parent test1.data.Child1@b9008360 Hibernate: select parent0_.id as id0_, parent0_.type as type0_0_, parent0_.type as type0_ from public.parent parent0_ where parent0_.id=? Hibernate: select parent_2_.age as age2_0_ from public.child2 parent_2_ where parent_2_.id=? Found child2 parent test1.data.Child2@b90e9ae2 4.2) Stack trace for 2.2) Hibernate: select nextval ('public.hibernate_sequence') Hibernate: insert into public.parent (type, id) values (?, ?) Hibernate: insert into public.child1 (name, id) values (?, ?) Hibernate: select nextval ('public.hibernate_sequence') Hibernate: insert into public.parent (type, id) values (?, ?) Hibernate: insert into public.child2 (age, name, id) values (?, ?, ?) Hibernate: select parent0_.id as id0_, parent0_.type as type0_0_, parent0_.type as type0_ from public.parent parent0_ where parent0_.id=? Hibernate: select parent_1_.name as name1_0_ from public.child1 parent_1_ where parent_1_.id=? Found child1 parent test1.data.Child1@b900835e Hibernate: select parent0_.id as id0_, parent0_.type as type0_0_, parent0_.type as type0_ from public.parent parent0_ where parent0_.id=? Hibernate: select parent_1_.name as name1_0_, parent_2_.age as age2_0_, parent_2_.name as name2_0_ from public.child1 parent_1_ inner join public.child2 parent_2_ on parent_1_.id=parent_2_.id where parent_1_.id=? 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

    Hibernate JIRA | 1 decade ago | Alec Swan
    org.hibernate.exception.GenericJDBCException: could not load an entity: [test1.data.Parent#186]
  6. 0

    Attempting to use the "revert to default layout" feature in the DLM preferences channel does nothing. As the admin user, it produces the following stack trace, then refuses to ever let you log in as that user again: org.jasig.portal.GeneralRenderingException: org.postgresql.util.PSQLException: ResultSet not positioned properly, perhaps you need to call next. at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.setRuntimeData(TabColumnPrefsState.java:189) at org.jasig.portal.channels.DLMUserPreferences.CUserPreferences.setRuntimeData(CUserPreferences.java:196) at org.jasig.portal.ChannelRenderer$Worker.execute(ChannelRenderer.java:445) at org.jasig.portal.utils.threading.BaseTask.run(BaseTask.java:27) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) Caused by: org.postgresql.util.PSQLException: ResultSet not positioned properly, perhaps you need to call next. at org.postgresql.jdbc2.AbstractJdbc2ResultSet.checkResultSet(AbstractJdbc2ResultSet.java:2590) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getFastInt(AbstractJdbc2ResultSet.java:2073) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getInt(AbstractJdbc2ResultSet.java:1979) at org.apache.commons.dbcp.DelegatingResultSet.getInt(DelegatingResultSet.java:186) at org.jasig.portal.layout.simple.RDBMUserLayoutStore.getUserLayout(RDBMUserLayoutStore.java:1610) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore._safeGetUserLayout(RDBMDistributedLayoutStore.java:529) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.getCompositeLayout(RDBMDistributedLayoutStore.java:759) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore._getUserLayout(RDBMDistributedLayoutStore.java:596) at org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.getUserLayout(RDBMDistributedLayoutStore.java:503) at org.jasig.portal.channels.DLMUserPreferences.CUserPreferences.getUserPreferencesFromStore(CUserPreferences.java:213) at org.jasig.portal.channels.DLMUserPreferences.TabColumnPrefsState.setRuntimeData(TabColumnPrefsState.java:185) ... 9 more

    Apereo Issues | 9 years ago | Jennifer Bourey
    org.jasig.portal.GeneralRenderingException: org.postgresql.util.PSQLException: ResultSet not positioned properly, perhaps you need to call next.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.postgresql.util.PSQLException

      Result set not positioned properly, perhaps you need to call next().

      at org.postgresql.jdbc1.AbstractJdbc1ResultSet.checkResultSet()
    2. org.postgresql.jdbc1
      AbstractJdbc1ResultSet.getLong
      1. org.postgresql.jdbc1.AbstractJdbc1ResultSet.checkResultSet(AbstractJdbc1ResultSet.java:823)
      2. org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1ResultSet.java:200)
      3. org.postgresql.jdbc1.AbstractJdbc1ResultSet.getFixedString(AbstractJdbc1ResultSet.java:792)
      4. org.postgresql.jdbc1.AbstractJdbc1ResultSet.getLong(AbstractJdbc1ResultSet.java:292)
      5. org.postgresql.jdbc1.AbstractJdbc1ResultSet.getLong(AbstractJdbc1ResultSet.java:506)
      5 frames
    3. Hibernate
      AbstractType.hydrate
      1. org.hibernate.type.LongType.get(LongType.java:26)
      2. org.hibernate.type.NullableType.nullSafeGet(NullableType.java:62)
      3. org.hibernate.type.NullableType.nullSafeGet(NullableType.java:53)
      4. org.hibernate.type.AbstractType.hydrate(AbstractType.java:70)
      4 frames
    4. Hibernate
      BasicEntityPersister.hydrate
      1. org.hibernate.persister.BasicEntityPersister.hydrate(BasicEntityPersister.java:1519)
      1 frame
    5. Hibernate
      EntityLoader.load
      1. org.hibernate.loader.Loader.loadFromResultSet(Loader.java:815)
      2. org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:773)
      3. org.hibernate.loader.Loader.getRow(Loader.java:685)
      4. org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:278)
      5. org.hibernate.loader.Loader.doQuery(Loader.java:366)
      6. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:193)
      7. org.hibernate.loader.Loader.loadEntity(Loader.java:1151)
      8. org.hibernate.loader.EntityLoader.load(EntityLoader.java:111)
      9. org.hibernate.loader.EntityLoader.load(EntityLoader.java:97)
      9 frames
    6. Hibernate
      SessionImpl.immediateLoad
      1. org.hibernate.persister.BasicEntityPersister.load(BasicEntityPersister.java:2304)
      2. org.hibernate.event.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:352)
      3. org.hibernate.event.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:333)
      4. org.hibernate.event.DefaultLoadEventListener.load(DefaultLoadEventListener.java:158)
      5. org.hibernate.event.DefaultLoadEventListener.load(DefaultLoadEventListener.java:131)
      6. org.hibernate.event.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:110)
      7. org.hibernate.impl.SessionImpl.immediateLoad(SessionImpl.java:716)
      7 frames
    7. Hibernate
      CGLIBLazyInitializer.intercept
      1. org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:117)
      2. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:159)
      3. org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:115)
      3 frames
    8. test1.data
      Parent$$EnhancerByCGLIB$$e1d1b98f.toString
      1. test1.data.Parent$$EnhancerByCGLIB$$e1d1b98f.toString(<generated>)
      1 frame
    9. Java RT
      StringBuffer.append
      1. java.lang.String.valueOf(Unknown Source)
      2. java.lang.StringBuffer.append(Unknown Source)
      2 frames
    10. test1.engine
      Test.main
      1. test1.engine.Test.main(Test.java:59)
      1 frame