Code:
18:39:10,928 DEBUG SessionFactoryUtils:183 - Opening Hibernate session
18:39:10,990 DEBUG SessionImpl:555 - opened session
18:39:10,990 DEBUG HibernateInterceptor:92 - Using new session for Hibernate interceptor
18:39:10,990 DEBUG TransactionSynchronizationManager:141 - Bound value [org.springframework.orm.hibernate.SessionHolder@8698fa] for key [net.sf.hibernate.impl.SessionFactoryImpl@9dd6e2] to thread [main]
18:39:11,037 DEBUG TransactionSynchronizationManager:117 - Retrieved value [org.springframework.orm.hibernate.SessionHolder@8698fa] for key [net.sf.hibernate.impl.SessionFactoryImpl@9dd6e2] bound to thread [main]
18:39:11,037 DEBUG SessionImpl:1982 - loading [com.mitchell.services.technical.claim.dao.vo.ClmClaim#1096]
18:39:11,037 DEBUG SessionImpl:2079 - attempting to resolve [com.mitchell.services.technical.claim.dao.vo.ClmClaim#1096]
18:39:11,037 DEBUG SessionImpl:2112 - object not resolved in any cache [com.mitchell.services.technical.claim.dao.vo.ClmClaim#1096]
18:39:11,037 DEBUG EntityPersister:416 - Materializing entity: [com.mitchell.services.technical.claim.dao.vo.ClmClaim#1096]
18:39:11,037 DEBUG BatcherImpl:196 - about to open: 0 open PreparedStatements, 0 open ResultSets
18:39:11,037 INFO DriverManagerDataSource:152 - Creating new JDBC connection to [jdbc:oracle:thin:@nmad.mitchell.com:1521:nmad]
18:39:11,412 DEBUG SessionImpl:1906 - Version: 0
18:39:11,412 DEBUG Loader:226 - done processing result set (1 rows)
18:39:11,412 DEBUG BatcherImpl:203 - done closing: 0 open PreparedStatements, 0 open ResultSets
18:39:11,412 DEBUG BatcherImpl:261 - closing statement
18:39:11,412 DEBUG Loader:239 - total objects hydrated: 1
18:39:11,444 DEBUG SessionImpl:2198 - resolving associations for [com.mitchell.services.technical.claim.dao.vo.ClmClaim#1096]
18:39:11,444 DEBUG SessionImpl:3929 - creating collection wrapper:[com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmPolicySet#1096]
18:39:11,444 DEBUG SessionImpl:3929 - creating collection wrapper:[com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmPartySet#1096]
18:39:11,444 DEBUG SessionImpl:3929 - creating collection wrapper:[com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmLossObjectSet#1096]
18:39:11,444 DEBUG SessionImpl:3929 - creating collection wrapper:[com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmActivityLogSet#1096]
18:39:11,444 DEBUG SessionImpl:3929 - creating collection wrapper:[com.mitchell.services.technical.claim.dao.vo.ClmClaim.exposureSet#1096]
18:39:11,444 DEBUG SessionImpl:3929 - creating collection wrapper:[com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmDiarySet#1096]
18:39:11,444 DEBUG SessionImpl:3929 - creating collection wrapper:[com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmAlertSet#1096]
18:39:11,459 DEBUG SessionImpl:3929 - creating collection wrapper:[com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmAttachmentSet#1096]
18:39:11,459 DEBUG SessionImpl:2222 - done materializing entity [com.mitchell.services.technical.claim.dao.vo.ClmClaim#1096]
18:39:11,459 DEBUG SessionImpl:3112 - initializing non-lazy collections
18:39:11,459 DEBUG HibernateInterceptor:201 - Eagerly flushing Hibernate session
18:39:11,459 DEBUG SessionImpl:2242 - flushing session
18:39:11,459 DEBUG Cascades:497 - processing cascades for: com.mitchell.services.technical.claim.dao.vo.ClmClaim
18:39:11,459 DEBUG Cascades:524 - cascading to collection: com.mitchell.services.technical.claim.dao.vo.ClmClaim.exposureSet
18:39:11,459 DEBUG Cascades:506 - done processing cascades for: com.mitchell.services.technical.claim.dao.vo.ClmClaim
18:39:11,459 DEBUG SessionImpl:2435 - Flushing entities and processing referenced collections
18:39:11,475 DEBUG SessionImpl:2880 - Collection found: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmPolicySet#1096], was: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmPolicySet#1096]
18:39:11,475 DEBUG SessionImpl:2880 - Collection found: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmPartySet#1096], was: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmPartySet#1096]
18:39:11,475 DEBUG SessionImpl:2880 - Collection found: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmLossObjectSet#1096], was: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmLossObjectSet#1096]
18:39:11,475 DEBUG SessionImpl:2880 - Collection found: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmActivityLogSet#1096], was: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmActivityLogSet#1096]
18:39:11,475 DEBUG SessionImpl:2880 - Collection found: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.exposureSet#1096], was: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.exposureSet#1096]
18:39:11,475 DEBUG SessionImpl:2880 - Collection found: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmDiarySet#1096], was: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmDiarySet#1096]
18:39:11,475 DEBUG SessionImpl:2880 - Collection found: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmAlertSet#1096], was: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmAlertSet#1096]
18:39:11,475 DEBUG SessionImpl:2880 - Collection found: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmAttachmentSet#1096], was: [com.mitchell.services.technical.claim.dao.vo.ClmClaim.clmAttachmentSet#1096]
18:39:11,475 DEBUG SessionImpl:2776 - Processing unreferenced collections
18:39:11,475 DEBUG SessionImpl:2790 - Scheduling collection removes/(re)creates/updates
18:39:11,475 DEBUG SessionImpl:2266 - Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
18:39:11,475 DEBUG SessionImpl:2271 - Flushed: 0 (re)creations, 0 updates, 0 removals to 8 collections
18:39:11,475 DEBUG Printer:75 - listing entities:
18:39:11,475 DEBUG Printer:82 - com.mitchell.services.technical.claim.dao.vo.ClmClaim{//all the stuff to insert}
18:39:11,475 DEBUG SessionImpl:2355 - executing flush
18:39:11,475 DEBUG SessionImpl:2820 - post flush
18:39:11,491 DEBUG TransactionSynchronizationManager:163 - Removed value [org.springframework.orm.hibernate.SessionHolder@8698fa] for key [net.sf.hibernate.impl.SessionFactoryImpl@9dd6e2] from thread [main]
18:39:11,491 DEBUG SessionFactoryUtils:348 - Closing Hibernate session
18:39:11,491 DEBUG SessionImpl:573 - closing session
18:39:11,491 DEBUG SessionImpl:3332 - disconnecting session
18:39:11,491 DEBUG SessionImpl:585 - transaction completion
18:39:11,491 ERROR LazyInitializationException:25 - Failed to lazily initialize a collection - no session or session was closed
net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed
at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:209)
at net.sf.hibernate.collection.PersistentCollection.write(PersistentCollection.java:84)
at net.sf.hibernate.collection.Set.add(Set.java:154)
at com.mitchell.services.technical.claim.dao.vo.ClmClaim.addToExposureSet(ClmClaim.java:46)
at com.mitchell.services.technical.claim.dao.junit.ClaimDaoSpringTester.testUpdateClaim(ClaimDaoSpringTester.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)