Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040633Openbravo ERPA. Platformpublic2019-04-17 12:042019-05-21 15:16
caristu 
alostale 
highmajorhave not tried
closedfixed 
5
 
3.0PR19Q3 
caristu
Core
Production - QA Approved
2018-11-22
3.0PR19Q1
https://code.openbravo.com/erp/devel/pi/rev/4d71d9e4d6d5c9be49d1a301da6dbeefeb5d9048 [^]
No
0040633: Generation of Discounts and Promotions windows fails under some circumstances
Generation of Discounts and Promotions windows fails under some circumstances due the following error:

Caused by: org.hibernate.LazyInitializationException: could not initialize proxy [ADTableTree#B6C7204712CC4EDEB5705C93F706DF05] - no Session
    at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:159) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final]
    at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:272) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final]

See the file with the full error stack trace.
1) Login in Openbravo, having no modules in "in development" status
2) Open the [Discounts and Promotions] window
3) Restart Tomcat
4) Login again with the same browser session and open the [Discounts and Promotions] window
5) Create a new record in the header
6) In a different browser session, login in Openbravo
7) Open the [Discounts and Promotions] window. An error is raised.
No tags attached.
depends on backport 00406343.0PR19Q2 closed alostale Generation of Discounts and Promotions windows fails under some circumstances 
depends on backport 00406353.0PR19Q1.1 closed alostale Generation of Discounts and Promotions windows fails under some circumstances 
caused by design defect 0039670 closed alostale view generation scalability issues 
related to defect 0041338 closed alostale error when opening some backoffice windows 
txt stackTraceError.txt (32,105) 2019-04-17 12:04
https://issues.openbravo.com/file_download.php?file_id=12871&type=bug
Issue History
2019-04-17 12:04caristuNew Issue
2019-04-17 12:04caristuAssigned To => platform
2019-04-17 12:04caristuFile Added: stackTraceError.txt
2019-04-17 12:04caristuModules => Core
2019-04-17 12:04caristuTriggers an Emergency Pack => No
2019-04-17 12:05caristuRelationship addedcaused by 0039670
2019-04-17 12:05caristuRegression date => 2018-11-22
2019-04-17 12:05caristuRegression introduced in release => 3.0PR19Q1
2019-04-17 12:05caristuRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/4d71d9e4d6d5c9be49d1a301da6dbeefeb5d9048 [^]
2019-04-17 12:18alostaleReview Assigned To => caristu
2019-04-17 12:19alostaleRegression level => Production - QA Approved
2019-04-17 12:19alostaleAssigned Toplatform => alostale
2019-04-17 12:20alostaleSeverityminor => major
2019-04-17 12:23caristuNote Added: 0111182
2019-04-17 12:23caristuNote Edited: 0111182bug_revision_view_page.php?bugnote_id=0111182#r18644
2019-04-17 12:54alostaleStatusnew => scheduled
2019-04-17 13:10hgbotCheckin
2019-04-17 13:10hgbotNote Added: 0111189
2019-04-17 13:10hgbotStatusscheduled => resolved
2019-04-17 13:10hgbotResolutionopen => fixed
2019-04-17 13:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/77247a46366613111a6c1dc7ce506475ac0ab652 [^]
2019-04-17 13:10hgbotCheckin
2019-04-17 13:10hgbotNote Added: 0111190
2019-04-26 09:02caristuNote Added: 0111340
2019-04-26 09:02caristuStatusresolved => closed
2019-04-26 09:02caristuFixed in Version => 3.0PR19Q3
2019-05-21 15:16hudsonbotCheckin
2019-05-21 15:16hudsonbotNote Added: 0111984
2019-05-21 15:16hudsonbotCheckin
2019-05-21 15:16hudsonbotNote Added: 0111985
2019-07-12 14:08alostaleRelationship addedrelated to 0041338

Notes
(0111182)
caristu   
2019-04-17 12:23   
Workaround: clear the ADCS cache using the JMX bean.

(0111189)
hgbot   
2019-04-17 13:10   
Repository: erp/devel/pi
Changeset: 77247a46366613111a6c1dc7ce506475ac0ab652
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Apr 17 12:57:28 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/77247a46366613111a6c1dc7ce506475ac0ab652 [^]

fixed bug 40633: Discounts and Promotions window fails under some circumstances

  When Discount and Promotions view was requested having previously initialized
  ADCS with that window via FIC a LazyInitializationException was thrown.

  The problem is this window has a tree reference field which was partially initialized
  in ADCS.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/ApplicationDictionaryCachedStructures.java
---
(0111190)
hgbot   
2019-04-17 13:10   
Repository: erp/devel/pi
Changeset: 70984e92751f9c5840c51382a2bf0bdbc456da51
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Apr 17 12:59:00 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/70984e92751f9c5840c51382a2bf0bdbc456da51 [^]

related to bug 40633: added test case

---
M src-test/src/org/openbravo/test/AllAntTaskTests.java
M src-test/src/org/openbravo/test/base/TestConstants.java
A modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/ADCSTest.java
---
(0111340)
caristu   
2019-04-26 09:02   
Code reviewed + tested OK.
(0111984)
hudsonbot   
2019-05-21 15: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/9b8f37d9d85e [^]
Maturity status: Test
(0111985)
hudsonbot   
2019-05-21 15: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/9b8f37d9d85e [^]
Maturity status: Test