Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030414Openbravo ERP09. Financial managementpublic2015-07-23 17:002015-07-23 19:02
dmiguelez 
Triage Omni OMS 
urgentmajoralways
closedfixed 
20Community Appliance
 
3.0PR15Q3 
dmiguelez
Core
No
0030414: 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.0PR15Q3
2015-07-23 17:08hgbotCheckin
2015-07-23 17:08hgbotNote Added: 0079046
2015-07-23 17:08hgbotStatusscheduled => resolved
2015-07-23 17:08hgbotResolutionopen => fixed
2015-07-23 17:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q3/rev/7ea341ccbf45f7e30a9b64f3448c2bae07079afa [^]
2015-07-23 19:02dmiguelezReview Assigned To => dmiguelez
2015-07-23 19:02dmiguelezNote Added: 0079062
2015-07-23 19:02dmiguelezStatusresolved => closed

Notes
(0079046)
hgbot   
2015-07-23 17:08   
Repository: erp/backports/3.0PR15Q3
Changeset: 7ea341ccbf45f7e30a9b64f3448c2bae07079afa
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.0PR15Q3/rev/7ea341ccbf45f7e30a9b64f3448c2bae07079afa [^]

Fixes Issue 30414. 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
---
(0079062)
dmiguelez   
2015-07-23 19:02   
Code Reviewed + Tested in several Clients