Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046493Retail ModulesWeb POSpublic2021-05-04 17:122021-06-01 07:38
shuehner 
ranjith_qualiantech_com 
normalminorhave not tried
closedfixed 
5
 
RR21Q2RR21Q2 
No
0046493: Please run hardware manager without Java UI in CI
Running selenium tests from mobile-test repository indirectly is starting the hardware manager on the server (via some ant tasks in that mobile-test repo).

So far that has been classically done without the Java UI shown (as it is done by default) and as UI was available anyway (to run chrome browser for the (selenium) tests themselves.

However a recent Ubuntu packaging change broke running java GUI application with just the openjdk-11-jdk-headless package installed.
Conceptually that should have been always like that however in practice that worked 'accidentally' so far.

openjdk-lts (11.0.11+4-0ubuntu1) hirsute; urgency=medium
  * Move libawt_xawt.so, libjawt.so into the jre package. Closes: #908058.
- That change has been also backported into the LTS version 18.04 & 20.04

As we don't really need the GUI part in Jenkins and the Hardwaremanager already has a text mode we should probably just switch to it.
- install only openjdk-11-jdk-headless/openjdk-11-jre-headless (latest version) without having the packages openjdk-11-jdk/openjdk-11-jre installed.
- Try tun run the hardware manager as usual via bin/start
- Notice it failing with
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2630)
change the openbravohw.properties to allow it to run without UI
a.) application.ui = false
b.) Not having any 'device' configured as 'screen'
- machine.scale
- machine.rfid
Currently have this.
Changing both items in b.) to 'null' allows the start to work in text-mode

Note => It needs to be checked if 'null' has any side-effect on the test-behavior itself.
No tags attached.
blocks feature request 0046492 closed ranjith_qualiantech_com Please run hardware manager without Java UI in CI 
Issue History
2021-05-04 17:14shuehnerTypefeature request => backport
2021-05-04 17:14shuehnerTarget Version => RR21Q2
2021-05-17 07:43ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-05-17 12:45hgbotNote Added: 0128215
2021-05-17 12:45hgbotNote Added: 0128216
2021-05-17 12:45hgbotNote Added: 0128217
2021-05-17 13:21hgbotNote Added: 0128224
2021-05-17 13:21hgbotNote Added: 0128225
2021-05-17 13:21hgbotNote Added: 0128226
2021-05-17 13:21hgbotNote Added: 0128227
2021-05-17 13:21hgbotResolutionopen => fixed
2021-05-17 13:21hgbotStatusscheduled => closed
2021-05-17 13:21hgbotFixed in Version => RR21Q2
2021-05-17 13:21hgbotNote Added: 0128228
2021-05-17 13:21hgbotNote Added: 0128229
2021-05-31 08:11hgbotNote Added: 0128791
2021-05-31 08:12hgbotNote Added: 0128792
2021-05-31 08:12hgbotNote Added: 0128793
2021-06-01 07:38hgbotNote Added: 0128828
2021-06-01 07:38hgbotNote Added: 0128829
2021-06-01 07:38hgbotNote Added: 0128830
2021-06-01 07:38hgbotNote Added: 0128831
2021-06-01 07:38hgbotNote Added: 0128832
2021-06-01 07:38hgbotNote Added: 0128833

Notes
(0128215)
hgbot   
2021-05-17 12:45   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/19 [^]
(0128216)
hgbot   
2021-05-17 12:45   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/25 [^]
(0128217)
hgbot   
2021-05-17 12:45   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/92 [^]
(0128224)
hgbot   
2021-05-17 13:21   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: 68229e57f6c9e47a23ee0fafbb96b5737465fc5c
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-17T13:36:08+05:30
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/68229e57f6c9e47a23ee0fafbb96b5737465fc5c [^]

Related to ISSUE-46493: Allow HardwareManager to Run without UI in CI

---
M config/openbravohw.properties.template
---
(0128225)
hgbot   
2021-05-17 13:21   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/92 [^]
(0128226)
hgbot   
2021-05-17 13:21   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources [^]
Changeset: 34706d7a415d7fea5ab0294c914e325a018b6112
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-17T13:35:59+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/commit/34706d7a415d7fea5ab0294c914e325a018b6112 [^]

Related to ISSUE-46493: Allow HardwareManager to Run without UI
* If HardwareManager is opened without UI, RFIDWebSocket should be created without screen context

---
M project/src/com/openbravo/pos/printer/DeviceTicket.java
M project/src/com/openbravo/pos/printer/TicketParser.java
M project/src/com/openbravo/pos/printer/escpos/DevicePrinterESCPOS.java
M project/src/com/openbravo/pos/printer/escpos/USBDeviceList.java
M project/src/com/openbravo/pos/printer/javapos/DevicePrinterJavaPOS.java
M project/src/com/openbravo/pos/rfid/DeviceRFIDNull.java
M project/src/com/openbravo/pos/service/HardwareConfig.java
M project/src/com/openbravo/pos/service/HardwareConfigInst.java
M project/src/com/openbravo/poshw/AppConfig.java
M project/src/com/openbravo/poshw/RFIDScreenWebSocketHandler.java
---
(0128227)
hgbot   
2021-05-17 13:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/25 [^]
(0128228)
hgbot   
2021-05-17 13:21   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager [^]
Changeset: ccd85284695db44e47f13819ca7e2203eac75174
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-17T13:38:46+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/commit/ccd85284695db44e47f13819ca7e2203eac75174 [^]

Fixed ISSUE-46493: Allow HardwareManager to Run without UI

---
M bin/poshw.jar
M bin/rev.id
---
(0128229)
hgbot   
2021-05-17 13:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/19 [^]
(0128791)
hgbot   
2021-05-31 08:11   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/24 [^]
(0128792)
hgbot   
2021-05-31 08:12   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/30 [^]
(0128793)
hgbot   
2021-05-31 08:12   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/97 [^]
(0128828)
hgbot   
2021-06-01 07:38   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager [^]
Changeset: 7ee10b5db8fb0e6debc19e247f4088996d89e44e
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-27T13:24:54+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/commit/7ee10b5db8fb0e6debc19e247f4088996d89e44e [^]

Related to ISSUE-46493: Updated LogFile Pattern for Log FileHandler

---
M bin/logging.properties
M bin/poshw.jar
M bin/rev.id
---
(0128829)
hgbot   
2021-06-01 07:38   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/24 [^]
(0128830)
hgbot   
2021-06-01 07:38   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources [^]
Changeset: fa5ec8f89e1fe248fb62f49e985fdb41706c9402
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-27T13:20:01+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/commit/fa5ec8f89e1fe248fb62f49e985fdb41706c9402 [^]

Related to ISSUE-46493: Updated LogFile Pattern for Log FileHandler

---
M project/logging.properties
M project/src/com/openbravo/pos/printer/TicketParser.java
---
(0128831)
hgbot   
2021-06-01 07:38   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/30 [^]
(0128832)
hgbot   
2021-06-01 07:38   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: e6967d8494861b194818975c1182c2927f49747e
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-27T13:41:44+05:30
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/e6967d8494861b194818975c1182c2927f49747e [^]

Related to ISSUE-46493: HardwareManager should be started from bin directory instead of current directory

---
M build.xml
---
(0128833)
hgbot   
2021-06-01 07:38   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/97 [^]