Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032858
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorsometimes2016-05-04 14:062016-06-17 19:37
ReportergorkaionView Statuspublic 
Assigned Togorkaion 
PrioritynormalResolutionfixedFixed in Version3.0PR16Q3
StatusclosedFix in branchFixed in SCM revisiona6cbad47ab80
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version1.5.0_15
OS VersionGentooDatabase version11gAnt version1.7.0
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0032858: in some scenarios if a entity is updated after a commit and close a LazyInitialization is get on OBInterceptor

DescriptionOBInterceptor is loading the organization structure by doing "org.getClient().getId()" if the client was cleared from the session without touching the getId() method a LazyInitialization exception is thrown.
Steps To Reproducereproduced in a custom module process.

- create a new entity in * organization.
- do a commitAndClose
- load an existing entity and update some fields.
- do a flush. -> OBInterceptor is executed to check organizations and the mentioned exception is thrown.
Proposed SolutionUse DalUtil.getId() to get the client id.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0086184)
hgbot (developer)
2016-05-04 16:42

Repository: erp/devel/pi
Changeset: a6cbad47ab80b521388ac1d3a211fe5213fe72bd
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Wed May 04 16:40:02 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a6cbad47ab80b521388ac1d3a211fe5213fe72bd [^]

Fixed issue 32858.Use DalUtil.getId() to load id of client.

Using DalUtil.getId() we improve the performance and we avoid to load the
Client object in memory. As we don't load it we also skip the potential
LazyInitialization exception if the client is detached from the hibernate
session.

---
M src/org/openbravo/dal/core/OBInterceptor.java
---
(0086236)
alostale (manager)
2016-05-06 09:17

reviewed
(0087515)
hudsonbot (developer)
2016-06-17 19:37

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/0dc7be081b1c [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2016-05-04 14:06 gorkaion New Issue
2016-05-04 14:06 gorkaion Assigned To => gorkaion
2016-05-04 14:06 gorkaion Modules => Core
2016-05-04 14:06 gorkaion Triggers an Emergency Pack => No
2016-05-04 16:42 hgbot Checkin
2016-05-04 16:42 hgbot Note Added: 0086184
2016-05-04 16:42 hgbot Status new => resolved
2016-05-04 16:42 hgbot Resolution open => fixed
2016-05-04 16:42 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a6cbad47ab80b521388ac1d3a211fe5213fe72bd [^]
2016-05-04 16:43 gorkaion Review Assigned To => alostale
2016-05-06 09:17 alostale Note Added: 0086236
2016-05-06 09:17 alostale Status resolved => closed
2016-05-06 09:17 alostale Fixed in Version => 3.0PR16Q3
2016-06-17 19:37 hudsonbot Checkin
2016-06-17 19:37 hudsonbot Note Added: 0087515


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker