From: SourceForge.net <no...@so...> - 2004-03-29 19:58:20
|
Bugs item #925394, was opened at 2004-03-29 17:18 Message generated for change (Comment added) made by kal_ahmed You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=925394&group_id=27895 Category: Hibernate Impl Group: TM4J 0.9.0 final >Status: Pending >Resolution: Fixed 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(). ---------------------------------------------------------------------- >Comment By: Kal Ahmed (kal_ahmed) Date: 2004-03-29 20:58 Message: Logged In: YES user_id=176992 The problem is that getAssociationsOfType() should not be returning AssociationDataObject instances. This is now fixed in CVS. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=925394&group_id=27895 |