Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048582Retail ModulesWeb POSpublic2022-02-11 17:292024-03-01 12:44
guilleaer 
sntgreale 
normalminorhave not tried
closedfixed 
5
 
RR22Q2 
approved
No
No
0048582: [Print templates as masterdata] error shown in log when no file is defined
Define 3 POS templates without file (to use them as master data) when a login in POS is done after restart tomcat these lines of errors appears in the log

2022-02-11 17:17:04,007 [http-nio-8080-exec-7] ERROR org.openbravo.retail.posterminal.utility.OBPOSPrintTemplateReader - null cannot be read
2022-02-11 17:17:04,007 [http-nio-8080-exec-7] ERROR org.openbravo.retail.posterminal.utility.OBPOSPrintTemplateReader - null cannot be read
2022-02-11 17:17:04,008 [http-nio-8080-exec-7] ERROR org.openbravo.retail.posterminal.utility.OBPOSPrintTemplateReader - null cannot be read
Open backoffice
Login as system admin
Go to window POS print templates
Create a new template:
Module : null
Name: Test
Report: false (not checked)
Legacy: false (not checked)
Template type: Print ticket
Printing template: <output>
    <ticket>
        <line>
            <text align="center" length="42">print ticket example</text>
        </line>
    </ticket>
</output>

Reach login window in POS2 and you will see errors


Ignore templates without files to show this error msg
No tags attached.
related to defect 0054825 closed Retail Error shown in log when no file is defined 
Issue History
2022-02-11 17:29guilleaerNew Issue
2022-02-11 17:29guilleaerAssigned To => Triage Platform Base
2022-02-11 17:29guilleaerOBNetwork customer => No
2022-02-11 17:29guilleaerTriggers an Emergency Pack => No
2022-02-17 16:30guilleaerSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23678#r23678
2022-02-21 10:13AugustoMauchAssigned ToTriage Platform Base => sntgreale
2022-02-21 10:13AugustoMauchStatusnew => scheduled
2022-03-09 13:02hgbotMerge Request Status => open
2022-03-09 13:02hgbotNote Added: 0135589
2022-03-10 17:11hgbotNote Added: 0135628
2022-03-10 18:14hgbotNote Added: 0135630
2022-03-16 00:21hgbotMerge Request Statusopen => approved
2022-03-16 00:22hgbotResolutionopen => fixed
2022-03-16 00:22hgbotStatusscheduled => closed
2022-03-16 00:22hgbotNote Added: 0135752
2022-03-16 00:22hgbotFixed in Version => RR22Q2
2022-03-16 00:22hgbotNote Added: 0135753
2024-03-01 12:44caristuIssue cloned0054825
2024-03-01 12:44caristuRelationship addedrelated to 0054825

Notes
(0135589)
hgbot   
2022-03-09 13:02   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/742 [^]
(0135628)
hgbot   
2022-03-10 17:11   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/742 [^]
(0135630)
hgbot   
2022-03-10 18:14   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/744 [^]
(0135752)
hgbot   
2022-03-16 00:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/744 [^]
(0135753)
hgbot   
2022-03-16 00:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 99e82979c127fc41489fc6f0dc90699519234437
Author: Santiago Reale <santiago.reale@smfconsulting.es>
Date: 15-03-2022 23:22:54
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/99e82979c127fc41489fc6f0dc90699519234437 [^]

Fixes ISSUE-48582: Not log error when the path of a printing template is not defined

---
M src/org/openbravo/retail/posterminal/utility/OBPOSPrintTemplateReader.java
---