Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030413Openbravo ERP09. Financial managementpublic2015-07-23 17:002015-08-20 23:16
dmiguelez 
Triage Omni OMS 
urgentmajoralways
closedfixed 
20Community Appliance
 
 
dmiguelez
Core
No
0030413: 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.
depends on backport 00304143.0PR15Q3 closed Triage Omni OMS While calculating Cost Adjustments the Process fails throwing a LazyInitializationException in Hibernate 
depends on backport 00304153.0PR15Q2.3 closed Triage Omni OMS While calculating Cost Adjustments the Process fails throwing a LazyInitializationException in Hibernate 
Issue History
2015-07-23 17:00dmiguelezNew Issue
2015-07-23 17:00dmiguelezAssigned To => Triage Finance
2015-07-23 17:00dmiguelezModules => Core
2015-07-23 17:00dmiguelezTriggers an Emergency Pack => No
2015-07-23 17:02dmiguelezStatusnew => scheduled
2015-07-23 17:05hgbotCheckin
2015-07-23 17:05hgbotNote Added: 0079045
2015-07-23 17:05hgbotStatusscheduled => resolved
2015-07-23 17:05hgbotResolutionopen => fixed
2015-07-23 17:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/1fa4c3218118fff2dfaf7c0958da14ffb934c1b7 [^]
2015-07-23 19:01dmiguelezReview Assigned To => dmiguelez
2015-07-23 19:01dmiguelezNote Added: 0079060
2015-07-23 19:01dmiguelezStatusresolved => closed
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079506

Notes
(0079045)
hgbot   
2015-07-23 17:05   
Repository: erp/devel/pi
Changeset: 1fa4c3218118fff2dfaf7c0958da14ffb934c1b7
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Jul 23 17:05:01 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1fa4c3218118fff2dfaf7c0958da14ffb934c1b7 [^]

Fixes Issue 30413. 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
---
(0079060)
dmiguelez   
2015-07-23 19:01   
Code Reviewed + Tested in several Clients
(0079506)
hudsonbot   
2015-08-20 23:16   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/8c91718397a5 [^]
Maturity status: Test