Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040634Openbravo ERPA. Platformpublic2019-04-17 12:042019-04-26 09:02
caristu 
alostale 
highmajorhave not tried
closedfixed 
5
 
3.0PR19Q23.0PR19Q2 
caristu
Core
Production - QA Approved
2018-11-22
3.0PR19Q1
https://code.openbravo.com/erp/devel/pi/rev/4d71d9e4d6d5c9be49d1a301da6dbeefeb5d9048 [^]
No
0040634: 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.
blocks defect 0040633 closed alostale Generation of Discounts and Promotions windows fails under some circumstances 
Issue History
2019-04-17 12:54alostaleTypedefect => backport
2019-04-17 12:54alostaleTarget Version => 3.0PR19Q2
2019-04-17 13:11hgbotCheckin
2019-04-17 13:11hgbotNote Added: 0111191
2019-04-17 13:11hgbotStatusscheduled => resolved
2019-04-17 13:11hgbotResolutionopen => fixed
2019-04-17 13:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q2/rev/89116c77cd581938577d902c9ba5b54e72b8c4fc [^]
2019-04-26 09:02caristuNote Added: 0111341
2019-04-26 09:02caristuStatusresolved => closed
2019-04-26 09:02caristuFixed in Version => 3.0PR19Q2

Notes
(0111191)
hgbot   
2019-04-17 13:11   
Repository: erp/backports/3.0PR19Q2
Changeset: 89116c77cd581938577d902c9ba5b54e72b8c4fc
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Apr 17 12:57:28 2019 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR19Q2/rev/89116c77cd581938577d902c9ba5b54e72b8c4fc [^]

fixed bug 40634: 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
---
(0111341)
caristu   
2019-04-26 09:02   
Code reviewed + tested OK.