-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Collection is not associated with any session
PostPosted: Fri Mar 25, 2005 3:37 pm 
Regular
Regular

Joined: Thu Jul 01, 2004 12:13 am
Posts: 68
Location: San Diego, CA
I'm currently seeing the above error when I have a save() called followed by a read() operation. These operations exist as service calls that are exposed to a higher level business component, so the order is as follows:

1.) Business component (BC) starts a JTA transaction
2.) BC calls save() operation in my service object (SO)
3.) SO joins transaction and binds Hibernate session to transaction
4.) SO performs save and then flushes session to extract any SQLExceptions.
5.) SO returns PK
6.) BC does some additional business logic
7.) BC calls read() operation in SO
8.) SO grabs previous session and performs SELECT
9.) SO initializes collections and results in the error

Does the flush I'm calling in the save() cause the collection to become detached? I wouldn't think so...I'd assume it still to be on the session? I'm not sure why it wouldn't just pull from the session, since nothing has been committed yet. The session is still open and the transaction is not committed. Any help would be greatly appreciated.

Thanks,
Lou

Hibernate version:
2.1.6

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
Code:
12:25:41,745 DEBUG ServiceStackTrace:41 - Service Stack Trace: " MICommonException Type: 101012, ErrorDateTime: Thu Mar 24 12:25:41 PST 2005, ClassName: ClaimBean.ejb, MethodName: readClaimByClaimNumberCustomGraph, SeverName: dev11ux, Description: 101012,Claim Not Found, Exception: com.mitchell.services.technical.claim.exception.DaoException: com.mitchell.services.technical.claim.exception.DaoException: net.sf.hibernate.HibernateException: collection is not associated with any session at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:186) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244) at com.mitchell.services.technical.claim.ejb.ClaimBean_jpstj4_EOImpl_813_WLStub.readClaimByClaimNumberCustomGraph(Unknown Source) at com.mitchell.totalloss.common.control.ClaimControlImpl.readClaimByClaimNumberCustomGraph(ClaimControlImpl.jcs:259) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396) at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:381) at com.mitchell.totalloss.common.control.ClaimControl.readClaimByClaimNumberCustomGraph(Unknown Source) at com.mitchell.services.business.valuation.request.ValuationRequestProcess.claimEJBControlReadClaimByClaimNumberCustomGraph1(ValuationRequestProcess.jpd:1975) at com.mitchell.services.business.valuation.request.ValuationRequestProcess_wf$ImplControlSend313.invoke(ValuationRequestProcess_wf.java:2780) at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32) at com.bea.wli.bpm.runtime.Block.execute(Block.java:39) at com.bea.wli.bpm.runtime.SyncReceive.messageDelivery(SyncReceive.java:45) at com.bea.wli.bpm.runtime.Receive.messageDeliveryAction(Receive.java:71) at com.bea.wli.bpm.runtime.ProcessState.processMessage(ProcessState.java:166) at com.mitchell.services.business.valuation.request.ValuationRequestProcess_wf$_ProcessState.processMessage(ValuationRequestProcess_wf.java:6306) at com.mitchell.services.business.valuation.request.ValuationRequestProcess_wf.$__submitValuationRequest(ValuationRequestProcess_wf.jws:6215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:248) at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:198) at com.bea.wlw.runtime.core.bean.BMPContainerBean.invoke(BMPContainerBean.java:2033) at com.bea.wli.bpm.runtime.ProcessContainerBean.invoke(ProcessContainerBean.java:163) at com.bea.wlwgen.ValuationRequestProcessBMPContImpl.submitValuationRequest(ValuationRequestProcessBMPContImpl.java:255) at com.bea.wlwgen.PersistentContainer_qq383k_ELOImpl.submitValuationRequest(PersistentContainer_qq383k_ELOImpl.java:207) at com.bea.wlwgen.ValuationRequestProcessBMPContAdpt.invokeOnBean(ValuationRequestProcessBMPContAdpt.java:225) at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:153) at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54) at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:160) at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:46) at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:161) at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(ServiceHandleImpl.java:436) at com.bea.wlw.runtime.core.call.JavaCall.invoke(JavaCall.java:55) at com.bea.wli.bpm.runtime.SubFlowCall.invoke(SubFlowCall.java:108) at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1257) at com.bea.control.ProcessControlImpl.invoke(ProcessControlImpl.jcs:443) at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1123) at com.bea.control.ProcessControlImpl.invoke(ProcessControlImpl.jcs:379) at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:373) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396) at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388) at $Proxy64.submitValuationRequest(Unknown Source) at com.mitchell.services.business.valuation.importer.WorksheetImporter.valuationRequestSvcCtrlSubmitValuationRequest(WorksheetImporter.jpd:525) at com.mitchell.services.business.valuation.importer.WorksheetImporter_wf$ImplControlSend36.invoke(WorksheetImporter_wf.java:287) at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32) at com.bea.wli.bpm.runtime.Block.execute(Block.java:39) at com.bea.wli.bpm.runtime.SyncReceive.messageDelivery(SyncReceive.java:45) at com.bea.wli.bpm.runtime.Receive.messageDeliveryAction(Receive.java:71) at com.bea.wli.bpm.runtime.ProcessState.processMessage(ProcessState.java:166) at com.mitchell.services.business.valuation.importer.WorksheetImporter_wf$_ProcessState.processMessage(WorksheetImporter_wf.java:966) at com.mitchell.services.business.valuation.importer.WorksheetImporter_wf.$__importFile(WorksheetImporter_wf.java:945) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:248) at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:198) at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:103) at com.bea.wlwgen.WorksheetImporterSLSBContImpl.importFile(WorksheetImporterSLSBContImpl.java:35) at com.bea.wlwgen.StatelessContainer_uqzzr1_ELOImpl.importFile(StatelessContainer_uqzzr1_ELOImpl.java:261) at com.bea.wlwgen.WorksheetImporterSLSBContAdpt.invokeOnBean(WorksheetImporterSLSBContAdpt.java:65) at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:153) at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54) at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:160) at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:46) at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:161) at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(ServiceHandleImpl.java:436) at com.bea.wlw.runtime.core.call.JavaCall.invoke(JavaCall.java:55) at com.bea.wli.bpm.runtime.SubFlowCall.invoke(SubFlowCall.java:108) at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1257) at com.bea.control.ProcessControlImpl.invoke(ProcessControlImpl.jcs:443) at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1123) at com.bea.control.ProcessControlImpl.invoke(ProcessControlImpl.jcs:379) at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:373) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396) at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388) at $Proxy57.importFile(Unknown Source) at com.mitchell.services.business.valuation.importer.ValuationImporter.worksheetImporterCtrlImportFile(ValuationImporter.jpd:392) at com.mitchell.services.business.valuation.importer.ValuationImporter_wf$ImplControlSend13.invoke(ValuationImporter_wf.java:116) at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32) at com.bea.wli.bpm.runtime.Block.execute(Block.java:39) at com.bea.wli.bpm.runtime.Receive.messageDelivery(Receive.java:91) at com.bea.wli.bpm.runtime.Receive.messageDeliveryAction(Receive.java:71) at com.bea.wli.bpm.runtime.ProcessState.processMessage(ProcessState.java:166) at com.mitchell.services.business.valuation.importer.ValuationImporter_wf$_ProcessState.processMessage(ValuationImporter_wf.java:562) at com.mitchell.services.business.valuation.importer.ValuationImporter_wf.importData(ValuationImporter_wf.java:530) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:248) at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:198) at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:103) at com.bea.wlwgen.ValuationImporterSLSBContImpl.importData(ValuationImporterSLSBContImpl.java:50) at com.bea.wlwgen.StatelessContainer_s9qfxm_ELOImpl.importData(StatelessContainer_s9qfxm_ELOImpl.java:261) at com.bea.wlwgen.ValuationImporterSLSBContAdpt.invokeOnBean(ValuationImporterSLSBContAdpt.java:69) at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:153) at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54) at com.bea.wlw.runtime.core.bean.AsyncDispatcherBean.onMessage(AsyncDispatcherBean.java:248) at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370) at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262) at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678) at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
12:25:41,753 DEBUG Invocable:41 - Sending context event onException to ClaimEJBControl

Name and version of the database you are using:
Oracle 9.2.1

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Code:
Open Session:
12:24:09,556 DEBUG TransactionSynchronizationManager:147 - Bound value [org.springframework.orm.hibernate.SessionHolder@1f6a2cf] for key [net.sf.hibernate.impl.SessionFactoryImpl@15c5c66] to thread [ExecuteThread: '9' for queue: 'weblogic.kernel.Default']
12:24:09,565 DEBUG TransactionSynchronizationManager:122 - Retrieved value [org.springframework.orm.hibernate.SessionHolder@1f6a2cf] for key [net.sf.hibernate.impl.SessionFactoryImpl@15c5c66] bound to thread [ExecuteThread: '9' for queue: 'weblogic.kernel.Default']

SaveClaim:
12:24:14,435 DEBUG TransactionSynchronizationManager:122 - Retrieved value [org.springframework.orm.hibernate.SessionHolder@1f6a2cf] for key [net.sf.hibernate.impl.SessionFactoryImpl@15c5c66] bound to thread [ExecuteThread: '9' for queue: 'weblogic.kernel.Default']
12:24:14,444 DEBUG TransactionSynchronizationManager:122 - Retrieved value [org.springframework.orm.hibernate.SessionHolder@1f6a2cf] for key [net.sf.hibernate.impl.SessionFactoryImpl@15c5c66] bound to thread [ExecuteThread: '9' for queue: 'weblogic.kernel.Default']

Read Claim:
12:25:38,925 DEBUG Invocable:41 - Invoking readClaimByClaimNumberCustomGraph on target object: com.mitchell.totalloss.common.control.ClaimControlImpl@5f0e00
12:25:38,981 DEBUG TransactionSynchronizationManager:122 - Retrieved value [org.springframework.orm.hibernate.SessionHolder@1f6a2cf] for key [net.sf.hibernate.impl.SessionFactoryImpl@15c5c66] bound to thread [ExecuteThread: '9' for queue: 'weblogic.kernel.Default']
12:25:38,990 DEBUG TransactionSynchronizationManager:122 - Retrieved value [org.springframework.orm.hibernate.SessionHolder@1f6a2cf] for key [net.sf.hibernate.impl.SessionFactoryImpl@15c5c66] bound to thread [ExecuteThread: '9' for queue: 'weblogic.kernel.Default']

Initializing Lazy code:
12:25:39,832 DEBUG TransactionSynchronizationManager:122 - Retrieved value [org.springframework.orm.hibernate.SessionHolder@1f6a2cf] for key [net.sf.hibernate.impl.SessionFactoryImpl@15c5c66] bound to thread [ExecuteThread: '9' for queue: 'weblogic.kernel.Default']

Initializing ActLog:
12:25:40,084 DEBUG SessionImpl:3260 - initializing collection [com.mitchell.services.technical.claim.dao.vo.Claim.activityLogSet#49769]
12:25:40,093 DEBUG SessionImpl:3261 - checking second-level cache
12:25:40,101 DEBUG SessionImpl:3267 - collection not cached
12:25:40,111 DEBUG BatcherImpl:200 - about to open: 0 open PreparedStatements, 0 open ResultSets
12:25:40,120 DEBUG SQL:226 - select activitylo0_.CLAIM_ID as CLAIM_ID__, activitylo0_.ACTIVITY_LOG_ID as ACTIVITY1___, activitylo0_.ACTIVITY_LOG_ID as ACTIVITY1_0_, activitylo0_.TCN as TCN0_, activitylo0_.EPD_ORG_USER_ID as EPD_ORG_3_0_, activitylo0_.ENTRY_TIMESTAMP as ENTRY_TI4_0_, activitylo0_.UPDATED_BY as UPDATED_BY0_, activitylo0_.CO_CD as CO_CD0_, activitylo0_.ACTIVITY_REFERENCE_ID as ACTIVITY7_0_, activitylo0_.UPDATED_DT as UPDATED_DT0_, activitylo0_.LOG_ENTRY as LOG_ENTRY0_, activitylo0_.TABLE_NAME as TABLE_NAME0_, activitylo0_.ACTIVITY_TYPE as ACTIVIT11_0_, activitylo0_.CREATED_DT as CREATED_DT0_, activitylo0_.CREATED_BY as CREATED_BY0_, activitylo0_.FIRST_NAME as FIRST_NAME0_, activitylo0_.LAST_NAME as LAST_NAME0_, activitylo0_.CLAIM_ID as CLAIM_ID0_, activitylo0_.ACTIVITY_CLASS_ID as ACTIVIT17_0_ from ACTIVITY_LOG activitylo0_ where activitylo0_.CLAIM_ID=? order by activitylo0_.CREATED_DT desc
12:25:40,128 DEBUG BatcherImpl:249 - preparing statement
12:25:40,137 DEBUG LongType:46 - binding '49769' to parameter: 1
12:25:40,623 DEBUG Loader:402 - result set contains (possibly empty) collection: [com.mitchell.services.technical.claim.dao.vo.Claim.activityLogSet#49769]
12:25:40,633 DEBUG SessionImpl:3018 - uninitialized collection: initializing
12:25:40,641 DEBUG Loader:277 - processing result set
12:25:40,650 DEBUG LongType:68 - returning '53070' as column: ACTIVITY1_0_
12:25:40,659 DEBUG Loader:480 - result row: 53070
12:25:40,676 DEBUG LongType:68 - returning '49769' as column: CLAIM_ID__
12:25:40,686 DEBUG Loader:367 - found row of collection: [com.mitchell.services.technical.claim.dao.vo.Claim.activityLogSet#49769]
12:25:40,696 DEBUG SessionImpl:3041 - reading row
12:25:40,706 DEBUG LongType:68 - returning '53070' as column: ACTIVITY1___
12:25:40,715 DEBUG SessionImpl:1986 - loading [com.mitchell.services.technical.claim.dao.vo.ActivityLog#53070]
12:25:40,724 DEBUG SessionImpl:2083 - attempting to resolve [com.mitchell.services.technical.claim.dao.vo.ActivityLog#53070]
12:25:40,740 DEBUG SessionImpl:2099 - resolved object in session cache [com.mitchell.services.technical.claim.dao.vo.ActivityLog#53070]
12:25:40,750 DEBUG LongType:68 - returning '53069' as column: ACTIVITY1_0_
12:25:40,759 DEBUG Loader:480 - result row: 53069
12:25:40,768 DEBUG Loader:611 - Initializing object from ResultSet: 53069
12:25:40,776 DEBUG Loader:680 - Hydrating entity: com.mitchell.services.technical.claim.dao.vo.ActivityLog#53069
12:25:40,785 DEBUG LongType:68 - returning '0' as column: TCN0_
12:25:40,795 DEBUG IntegerType:68 - returning '213415' as column: EPD_ORG_3_0_
12:25:40,804 DEBUG TimestampType:68 - returning '2005-03-24 12:24:10' as column: ENTRY_TI4_0_
12:25:40,813 DEBUG StringType:68 - returning 'Y5 11111111' as column: UPDATED_BY0_
12:25:40,822 DEBUG StringType:68 - returning 'Y5' as column: CO_CD0_
12:25:40,831 DEBUG LongType:64 - returning null as column: ACTIVITY7_0_
12:25:40,840 DEBUG TimestampType:68 - returning '2005-03-24 12:24:49' as column: UPDATED_DT0_
12:25:40,852 DEBUG StringType:68 - returning 'Claim created and set to OPEN status' as column: LOG_ENTRY0_
12:25:40,861 DEBUG StringType:68 - returning 'CLM_CLAIM' as column: TABLE_NAME0_
12:25:40,871 DEBUG StringType:68 - returning 'OPEN' as column: ACTIVIT11_0_
12:25:40,880 DEBUG TimestampType:68 - returning '2005-03-24 12:24:49' as column: CREATED_DT0_
12:25:40,889 DEBUG StringType:68 - returning 'Y5 11111111' as column: CREATED_BY0_
12:25:40,902 DEBUG StringType:68 - returning 'ONLNUser1_First' as column: FIRST_NAME0_
12:25:40,911 DEBUG StringType:68 - returning 'ONLNUser1_Last' as column: LAST_NAME0_
12:25:40,920 DEBUG LongType:68 - returning '49769' as column: CLAIM_ID0_
12:25:40,929 DEBUG LongType:64 - returning null as column: ACTIVIT17_0_
12:25:40,938 DEBUG SessionImpl:1910 - Version: 0
12:25:40,947 DEBUG LongType:68 - returning '49769' as column: CLAIM_ID__
12:25:40,955 DEBUG Loader:367 - found row of collection: [com.mitchell.services.technical.claim.dao.vo.Claim.activityLogSet#49769]
12:25:40,964 DEBUG SessionImpl:3041 - reading row
12:25:40,973 DEBUG LongType:68 - returning '53069' as column: ACTIVITY1___
12:25:40,982 DEBUG SessionImpl:1986 - loading [com.mitchell.services.technical.claim.dao.vo.ActivityLog#53069]
12:25:40,992 DEBUG SessionImpl:2083 - attempting to resolve [com.mitchell.services.technical.claim.dao.vo.ActivityLog#53069]
12:25:41,001 DEBUG SessionImpl:2099 - resolved object in session cache [com.mitchell.services.technical.claim.dao.vo.ActivityLog#53069]
12:25:41,010 DEBUG Loader:294 - done processing result set (2 rows)
12:25:41,019 DEBUG BatcherImpl:207 - done closing: 0 open PreparedStatements, 0 open ResultSets
12:25:41,027 DEBUG BatcherImpl:269 - closing statement
12:25:41,036 DEBUG Loader:314 - total objects hydrated: 1
12:25:41,044 DEBUG SessionImpl:2202 - resolving associations for [com.mitchell.services.technical.claim.dao.vo.ActivityLog#53069]
12:25:41,055 DEBUG SessionImpl:1986 - loading [com.mitchell.services.technical.claim.dao.vo.Claim#49769]
12:25:41,072 DEBUG SessionImpl:2083 - attempting to resolve [com.mitchell.services.technical.claim.dao.vo.Claim#49769]
12:25:41,081 DEBUG SessionImpl:2099 - resolved object in session cache [com.mitchell.services.technical.claim.dao.vo.Claim#49769]
12:25:41,090 DEBUG SessionImpl:2226 - done materializing entity [com.mitchell.services.technical.claim.dao.vo.ActivityLog#53069]
12:25:41,098 DEBUG SessionImpl:3077 - 1 collections were found in result set
12:25:41,107 DEBUG SessionImpl:3095 - collection fully initialized: [com.mitchell.services.technical.claim.dao.vo.Claim.activityLogSet#49769]
12:25:41,115 DEBUG SessionImpl:3098 - 1 collections initialized

Error:
12:25:41,124 DEBUG SessionImpl:3116 - initializing non-lazy collections
12:25:41,139 DEBUG SessionImpl:3269 - collection initialized
12:25:41,364 DEBUG ServiceStackTrace:41 - Mapping $Proxy190 to com.mitchell.totalloss.common.control.ClaimControl
12:25:41,383 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlwgen.ValuationRequestProcessBMPContImpl
12:25:41,399 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlwgen.PersistentContainer_qq383k_ELOImpl
12:25:41,419 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlwgen.ValuationRequestProcessBMPContAdpt
12:25:41,436 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl
12:25:41,454 DEBUG ServiceStackTrace:41 - Could not load class $Proxy64
12:25:41,474 DEBUG ServiceStackTrace:41 - Could not load class com.mitchell.services.business.valuation.importer.WorksheetImporter
12:25:41,492 DEBUG ServiceStackTrace:41 - Could not load class com.mitchell.services.business.valuation.importer.WorksheetImporter_wf$ImplControlSend36
12:25:41,511 DEBUG ServiceStackTrace:41 - Could not load class com.mitchell.services.business.valuation.importer.WorksheetImporter_wf$_ProcessState
12:25:41,528 DEBUG ServiceStackTrace:41 - Could not load class com.mitchell.services.business.valuation.importer.WorksheetImporter_wf
12:25:41,546 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlwgen.WorksheetImporterSLSBContImpl
12:25:41,563 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlwgen.StatelessContainer_uqzzr1_ELOImpl
12:25:41,579 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlwgen.WorksheetImporterSLSBContAdpt
12:25:41,596 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl
12:25:41,612 DEBUG ServiceStackTrace:41 - Could not load class $Proxy57
12:25:41,629 DEBUG ServiceStackTrace:41 - Could not load class com.mitchell.services.business.valuation.importer.ValuationImporter
12:25:41,647 DEBUG ServiceStackTrace:41 - Could not load class com.mitchell.services.business.valuation.importer.ValuationImporter_wf$ImplControlSend13
12:25:41,664 DEBUG ServiceStackTrace:41 - Could not load class com.mitchell.services.business.valuation.importer.ValuationImporter_wf$_ProcessState
12:25:41,681 DEBUG ServiceStackTrace:41 - Could not load class com.mitchell.services.business.valuation.importer.ValuationImporter_wf
12:25:41,699 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlwgen.ValuationImporterSLSBContImpl
12:25:41,715 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlwgen.StatelessContainer_s9qfxm_ELOImpl
12:25:41,730 DEBUG ServiceStackTrace:41 - Could not load class com.bea.wlwgen.ValuationImporterSLSBContAdpt
12:25:41,745 DEBUG ServiceStackTrace:41 - Service Stack Trace: " MICommonException Type: 101012, ErrorDateTime: Thu Mar 24 12:25:41 PST 2005, ClassName: ClaimBean.ejb, MethodName: readClaimByClaimNumberCustomGraph, SeverName: dev11ux, Description: 101012,Claim Not Found, Exception: com.mitchell.services.technical.claim.exception.DaoException: com.mitchell.services.technical.claim.exception.DaoException: net.sf.hibernate.HibernateException: collection is not associated with any session at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:186) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 25, 2005 5:24 pm 
Regular
Regular

Joined: Thu Jul 01, 2004 12:13 am
Posts: 68
Location: San Diego, CA
Upon further investigation, the code was purposely evicting the objects from the session and two reads were being called subsequently in the same transaction from the business component. Bad workflow!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.