id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 1658,Batch importers fail to associate items with parent items,Jari Häkkinen,Nicklas Nordborg,"The batch importer fails when I try to connect sample sources of subtype 'Case' to biosource items of subtype 'No'. I run the importer in 'update' only mode. The stack trace: {{{ net.sf.basedb.core.BaseException: failed to lazily initialize a collection of role: net.sf.basedb.core.data.ItemSubtypeData.relatedSubtypes, no session or session was closed on line 2 in file 'CASE_ConsentNotAsked.csv': 14067 1106272 Not... at net.sf.basedb.plugins.AbstractFlatFileImporter.doImport(AbstractFlatFileImporter.java:708) at net.sf.basedb.plugins.AbstractFlatFileImporter.run(AbstractFlatFileImporter.java:445) at net.sf.basedb.core.PluginExecutionRequest.invoke(PluginExecutionRequest.java:116) at net.sf.basedb.core.InternalJobQueue$JobRunner.run(InternalJobQueue.java:510) at java.lang.Thread.run(Thread.java:619) Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: net.sf.basedb.core.data.ItemSubtypeData.relatedSubtypes, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383) at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375) at org.hibernate.collection.AbstractPersistentCollection.readElementByIndex(AbstractPersistentCollection.java:176) at org.hibernate.collection.PersistentMap.get(PersistentMap.java:169) at net.sf.basedb.core.ItemSubtype.getRelatedSubtype(ItemSubtype.java:497) at net.sf.basedb.core.ItemSubtype.getRelatedSubtype(ItemSubtype.java:175) at net.sf.basedb.plugins.batchimport.SampleImporter.updateItem(SampleImporter.java:338) at net.sf.basedb.plugins.batchimport.SampleImporter.updateItem(SampleImporter.java:52) at net.sf.basedb.plugins.batchimport.AbstractItemImporter.handleData(AbstractItemImporter.java:754) at net.sf.basedb.plugins.AbstractFlatFileImporter.doImport(AbstractFlatFileImporter.java:676) ... 4 more }}}",defect,closed,major,BASE 3.0.2,web,,fixed,,