From: SourceForge.net <no...@so...> - 2004-03-29 21:02:22
|
Bugs item #925491, was opened at 2004-03-29 10:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=925491&group_id=27895 Category: Hibernate Impl Group: TM4J 0.9.0 final Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Hibernate exception when called getMembers() Initial Comment: I've received the following exception when I called AssociationDataObject.getMembers() ------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no Session net.sf.hibernate.collection.PersistentCollection.initialize (PersistentCollection.java:213) net.sf.hibernate.collection.PersistentCollection.read (PersistentCollection.java:69) net.sf.hibernate.collection.Set.size(Set.java:107) .... -------------------------------------- I've also tried TopicMapProvider.openTransaction() to wrap around my method call, but I got the same error. The reason why I need to call AssociationDataObject.getMembers() is because I need to call TopicMapUtils.getAssociationsOfType(topic, collection) and it returns a AssociationDataObject (instead of AssociationImpl). Also, I am able to get the base name of the topic because when I call getType() on AssociationDataObject, it returns me a TopicDataObject. TopicDataObject doesn't understand getNames(). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=925491&group_id=27895 |