net.sf.hibernate.LazyInitializationException

Failed to lazily initialize a collection

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web116

  • Failed to lazily initialize a collection
  • via Atlassian JIRA by Daniel Ponzio [Atlassian], 10 months ago
    Failed to lazily initialize a collection
  • via Atlassian JIRA by Jens Schumacher, 11 months ago
    Failed to lazily initialize a collection
  • Stack trace

    • net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:201) at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71) at net.sf.hibernate.collection.Map.values(Map.java:166) at net.sf.hibernate.type.MapType.getElementsIterator(MapType.java:28) at net.sf.hibernate.engine.Cascades.getAllElementsIterator(Cascades.java:570) at net.sf.hibernate.engine.Cascades.access$100(Cascades.java:28) at net.sf.hibernate.engine.Cascades$1.getCascadableChildrenIterator(Cascades.java:65) at net.sf.hibernate.engine.Cascades.cascadeCollection(Cascades.java:525) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:452) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:503) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:482) at net.sf.hibernate.impl.SessionImpl.doDelete(SessionImpl.java:1237) at net.sf.hibernate.impl.SessionImpl.delete(SessionImpl.java:1172) Caused by: net.sf.hibernate.JDBCException: could not initialize collection: [com.fullsix.newsletter.impl.SubscriberImpl.emailingProperties#00000005] at net.sf.hibernate.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:287) at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3264) at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:195) ... 13 more Caused by: org.postgresql.util.PSQLException: ERROR: column emailingpr0_.import_xls does not exist at org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139) at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101) at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43) at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:515) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statement.java:231) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:205) at net.sf.hibernate.impl.BatcherImpl.getResultSet(BatcherImpl.java:87) at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:800) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:189) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:915) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:890) at net.sf.hibernate.loader.OneToManyLoader.initialize(OneToManyLoader.java:93) at net.sf.hibernate.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:284) ... 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

    You’re the first here who have seen this exception.