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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0024412
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformcriticalrandom2013-07-26 10:482013-07-29 16:34
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version3.0MP26
StatusclosedFix in branchFixed in SCM revision338d1021bc54
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toshankarb
Web browser
ModulesCore
Regression levelPre packaging ( pi )
Regression date2013-07-12
Regression introduced in release
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/b0cfc1e495435ccb1bd58f8e55bebb30bd83c634 [^]
Triggers an Emergency PackNo
Summary

0024412: Random failures in FIC

DescriptionAfter applying fix for issue 0024326, FIC randomly fails.

This can be noticed in several ways:
-ERROR org.hibernate.LazyInitializationException - could not initialize proxy - no Session can be seen in the log
-when this happens, default values are not correctly populated

The problem is caused by an incomplete DAL object initialization in ApplicationDictionaryCachedStructures.getTab method, which caches and returns the tab attached to the session created for the Tab that invoked it. Previous to fix for 0024326, initialization was completed by the getParentTab method, afterwards it is not in case of root tab.

The way it can happen is:
-Request 1 (thread-1) gets a root tab. This tab, attached to thread-1's DAL session, is cached in ApplicationDictionaryCachedStructures without its proxies being initialized so thread-1's session is killed.
-Request 2 (thread-2) gets same tab from ApplicationDictionaryCachedStructures and tries to initialize any of its proxies, as the tab is still attached to thread-1's session the error is raisen
Steps To ReproduceOpen BP window and select a record, this happens randomly
Proposed SolutionTemporary backout patch for issue 0024326
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0024326 closedalostale Suboptimal parent tab getter for root tabs 
related to defect 00244213.0MP28 closedalostale ApplicationDictionaryCachedStructures is not thread safe 

-  Notes
(0060302)
hgbot (developer)
2013-07-26 11:08

Repository: erp/devel/pi
Changeset: 338d1021bc54b3e3658c8c3c7eae605600d7bf81
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Jul 26 11:07:34 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/338d1021bc54b3e3658c8c3c7eae605600d7bf81 [^]

fixed bug 24412, backouts fix for bug 24326

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java
---
(0060317)
hudsonbot (developer)
2013-07-26 20:32

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/b9e43ea5aa1b [^]

Maturity status: Test
(0060352)
shankarb (reporter)
2013-07-29 16:34

Code reviewed and tested in pi changeset 2128830a28ff.

- Issue History
Date Modified Username Field Change
2013-07-26 10:48 alostale New Issue
2013-07-26 10:48 alostale Assigned To => alostale
2013-07-26 10:48 alostale Modules => Core
2013-07-26 10:48 alostale Triggers an Emergency Pack => No
2013-07-26 10:48 alostale Relationship added related to 0024326
2013-07-26 10:49 alostale Regression level => Pre packaging ( pi )
2013-07-26 10:49 alostale Regression date => 2013-07-12
2013-07-26 10:49 alostale Regression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/b0cfc1e495435ccb1bd58f8e55bebb30bd83c634 [^]
2013-07-26 10:49 alostale Review Assigned To => shankarb
2013-07-26 10:59 alostale Description Updated View Revisions
2013-07-26 11:08 hgbot Checkin
2013-07-26 11:08 hgbot Note Added: 0060302
2013-07-26 11:08 hgbot Status new => resolved
2013-07-26 11:08 hgbot Resolution open => fixed
2013-07-26 11:08 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/338d1021bc54b3e3658c8c3c7eae605600d7bf81 [^]
2013-07-26 20:32 hudsonbot Checkin
2013-07-26 20:32 hudsonbot Note Added: 0060317
2013-07-29 12:28 alostale Relationship added related to 0024421
2013-07-29 13:10 egoitz Issue Monitored: egoitz
2013-07-29 16:34 shankarb Note Added: 0060352
2013-07-29 16:34 shankarb Status resolved => closed
2013-07-29 16:34 shankarb Fixed in Version => 3.0MP26


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker