This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 158567 - [65cat] org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: model.Category.subcategoryCollection, no session or session was closed
Summary: [65cat] org.hibernate.LazyInitializationException: failed to lazily initializ...
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sergey Petrov
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-14 13:55 UTC by chronosmark
Modified: 2012-05-21 09:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 146316


Attachments
stacktrace (1.08 KB, text/plain)
2009-02-14 13:55 UTC, chronosmark
Details
stacktrace (1.08 KB, text/plain)
2009-02-14 14:07 UTC, chronosmark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chronosmark 2009-02-14 13:55:16 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105, Java(TM) SE Runtime Environment, 1.6.0-b105
OS: Windows XP, 5.1, x86

User Comments:
chronosmark: When attemting to run query joinning tables in HQL.		c



Stacktrace: 
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: model.Category.subcategoryCollection, no session or session was closed
        at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
        at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
        at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343)
        at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
        at org.hibernate.collection.PersistentBag.toString(PersistentBag.java:483)
        at org.netbeans.modules.hibernate.hqleditor.ui.HQLEditorTopComponent.createTableData(HQLEditorTopComponent.java:544)
Comment 1 chronosmark 2009-02-14 13:55:28 UTC
Created attachment 76991 [details]
stacktrace
Comment 2 chronosmark 2009-02-14 14:07:24 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105, Java(TM) SE Runtime Environment, 1.6.0-b105
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: model.Category.subcategoryCollection, no session or session was closed
        at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
        at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
        at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343)
        at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
        at org.hibernate.collection.PersistentBag.toString(PersistentBag.java:483)
        at org.netbeans.modules.hibernate.hqleditor.ui.HQLEditorTopComponent.createTableData(HQLEditorTopComponent.java:544)
Comment 3 chronosmark 2009-02-14 14:07:33 UTC
Created attachment 76992 [details]
stacktrace
Comment 4 Sergey Petrov 2011-11-16 12:18:10 UTC
it's thrown from within hibernate code, may be hibernate issue.
Comment 5 Sergey Petrov 2012-05-21 09:36:45 UTC
please provide your db schema or sql script to create schema and sample query and reopen the issue, thanks.