Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0032858 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | sometimes | 2016-05-04 14:06 | 2016-06-17 19:37 | |||
Reporter | gorkaion | View Status | public | |||||
Assigned To | gorkaion | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR16Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | a6cbad47ab80 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | Oracle | Java version | 1.5.0_15 | |||
OS Version | Gentoo | Database version | 11g | Ant version | 1.7.0 | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | alostale | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0032858: in some scenarios if a entity is updated after a commit and close a LazyInitialization is get on OBInterceptor | |||||||
Description | OBInterceptor 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 Reproduce | reproduced 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 Solution | Use DalUtil.getId() to get the client id. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(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 (viewer) 2016-05-06 09:17 |
reviewed |
(0087515) hudsonbot (viewer) 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 |
![]() |
|||
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 | OBNetwork customer | => No |
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 |