Openbravo Issue Tracking System - Retail Modules
View Issue Details
0056727Retail ModulesWeb POSpublic2024-10-10 11:252024-11-04 09:35
hector_hernaez 
fofarril 
highmajoralways
closedfixed 
5
pi 
RR25Q1 
No
0056727: failed to lazily initialize a collection of role: OBRETCO_ProductList.oBRETCOProductcategoryList, could not initialize proxy - n
Reproduced consistently in livebuilds in version Retail with modules.
When the preference 'WebPOS Automatically Add Product Categories to Assortment' is set to Y (by default it has this value from system) and we press the button 'Include all Products' in the window 'assortment' the following message appears:

failed to lazily initialize a collection of role: OBRETCO_ProductList.oBRETCOProductcategoryList, could not initialize proxy - no Session
- Ensure that the preference 'WebPOS Automatically Add Product Categories to Assortment' is set to 'Y'
- Go to Assortment window
- Select one assortment
- Press 'Include all Products' button
- This message will appear in red
failed to lazily initialize a collection of role: OBRETCO_ProductList.oBRETCOProductcategoryList, could not initialize proxy - no Session
No tags attached.
related to backport 0056961RR24Q4 closed fofarril Failed to lazily initialize a collection of role: OBRETCO_ProductList.oBRETCOProductcategoryList, could not initialize 
related to backport 0056964RR24Q2 closed fofarril Failed to lazily initialize a collection of role: OBRETCO_ProductList.oBRETCOProductcategoryList, could not initialize proxy - n 
related to backport 0056963RR24Q3 closed fofarril Failed to lazily initialize a collection of role: OBRETCO_ProductList.oBRETCOProductcategoryList, could not initialize proxy - n 
png Screenshot from 2024-10-10 11-23-52.png (186,655) 2024-10-10 11:25
https://issues.openbravo.com/file_download.php?file_id=20270&type=bug
png
Issue History
2024-10-10 11:25hector_hernaezNew Issue
2024-10-10 11:25hector_hernaezAssigned To => Retail
2024-10-10 11:25hector_hernaezFile Added: Screenshot from 2024-10-10 11-23-52.png
2024-10-10 11:25hector_hernaezTriggers an Emergency Pack => No
2024-10-18 07:53marvintmStatusnew => acknowledged
2024-10-23 09:11guillermogilAssigned ToRetail => jorgewederago
2024-10-25 10:49sreehariAssigned Tojorgewederago => sreehari
2024-10-25 10:49sreehariStatusacknowledged => scheduled
2024-10-30 09:55sreehariNote Added: 0171147
2024-10-30 09:55sreehariAssigned Tosreehari => jorgewederago
2024-10-30 09:56sreehariStatusscheduled => acknowledged
2024-10-30 14:58fofarrilAssigned Tojorgewederago => fofarril
2024-10-30 15:03fofarrilStatusacknowledged => scheduled
2024-10-31 13:22hgbotNote Added: 0171226
2024-11-04 09:35hgbotNote Added: 0171263
2024-11-04 09:35hgbotResolutionopen => fixed
2024-11-04 09:35hgbotStatusscheduled => closed
2024-11-04 09:35hgbotFixed in Version => RR25Q1
2024-11-04 09:35hgbotNote Added: 0171264
2024-11-04 14:45fofarrilRelationship addedrelated to 0056961
2024-11-04 15:06fofarrilRelationship addedblocks 0056963
2024-11-04 15:15fofarrilRelationship addedblocks 0056964
2024-11-04 15:15fofarrilRelationship deletedblocks 0056964
2024-11-04 15:15fofarrilRelationship addedrelated to 0056964
2024-11-04 15:15fofarrilRelationship deletedblocks 0056963
2024-11-04 15:16fofarrilRelationship addedrelated to 0056963

Notes
(0171147)
sreehari   
2024-10-30 09:55   
1.The issue is reproducible always

2.But when debugging it is randomly reproduced as the execution stops at breakpoints

3.And the exeption found on line
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/src/org/openbravo/retail/posterminal/event/ProductListEventHandler.java#L167 [^]
was "com.sun.jdi.InvocationException: Exception occurred in target VM occurred invoking method"

4.Once the error is no longer reproduced, we need to install.source to reproduce it again

5.Currently no fix worked out as the exception randomly occurs during debugging.
(0171226)
hgbot   
2024-10-31 13:22   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config/-/merge_requests/24 [^]
(0171263)
hgbot   
2024-11-04 09:35   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config/-/merge_requests/24 [^]
(0171264)
hgbot   
2024-11-04 09:35   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config [^]
Changeset: 418b2e751dbcef7e22b2fd837b72305bc8f3c3d7
Author: Francisco Javier Deler O'Farril <francisco.ofarril@doceleguas.com>
Date: 04-11-2024 08:35:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.config/-/commit/418b2e751dbcef7e22b2fd837b72305bc8f3c3d7 [^]

Fixes ISSUE-56727: Failed to lazily initialize a collection of role:...

---
M src/org/openbravo/retail/config/process/IncludeAllProducts.java
---