Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030415Openbravo ERP09. Financial managementpublic2015-07-23 17:002015-07-23 19:02
dmiguelez 
Triage Omni OMS 
urgentmajoralways
closedfixed 
20Community Appliance
 
3.0PR15Q2.3 
dmiguelez
Core
No
0030415: While calculating Cost Adjustments the Process fails throwing a LazyInitializationException in Hibernate
While calculating Cost Adjustments the Process fails throwing a LazyInitializationException in Hibernate
This issue happened in a Client and we were not able to reproduce it locally.

But, there was a LazyInitializationException in Hibernate in the CostingServer.java file, in the process() method while trying to read a list that was related to the Transaction object. It is necessary to refresh this Object before accessing the list.
No tags attached.
blocks defect 0030413 closed Triage Omni OMS While calculating Cost Adjustments the Process fails throwing a LazyInitializationException in Hibernate 
Issue History
2015-07-23 17:02dmiguelezTypedefect => backport
2015-07-23 17:02dmiguelezTarget Version => 3.0PR15Q2.3
2015-07-23 17:19hgbotCheckin
2015-07-23 17:19hgbotNote Added: 0079049
2015-07-23 17:19hgbotStatusscheduled => resolved
2015-07-23 17:19hgbotResolutionopen => fixed
2015-07-23 17:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q2.3/rev/05e39d6804a7d37a60148b9b36c26bce7e02fc89 [^]
2015-07-23 19:02dmiguelezReview Assigned To => dmiguelez
2015-07-23 19:02dmiguelezNote Added: 0079061
2015-07-23 19:02dmiguelezStatusresolved => closed

Notes
(0079049)
hgbot   
2015-07-23 17:19   
Repository: erp/backports/3.0PR15Q2.3
Changeset: 05e39d6804a7d37a60148b9b36c26bce7e02fc89
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Jul 23 17:05:01 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2.3/rev/05e39d6804a7d37a60148b9b36c26bce7e02fc89 [^]

Fixes Issue 30415. Refreshes Transaction Object before accessing to it
again to fix a LazyInitializationException Hibernate exception.
Also removes unnecessary save, since flush is done afterwards.

---
M src/org/openbravo/costing/CostingServer.java
---
(0079061)
dmiguelez   
2015-07-23 19:02   
Code Reviewed + Tested in several Clients