Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046494Retail ModulesWeb POSpublic2021-05-04 17:122021-06-01 07:40
shuehner 
ranjith_qualiantech_com 
normalminorhave not tried
closedfixed 
5
 
RR21Q1.2RR21Q1.2 
No
0046494: 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 => RR21Q1.2
2021-05-17 07:43ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-05-17 12:47hgbotNote Added: 0128218
2021-05-17 12:47hgbotNote Added: 0128219
2021-05-17 12:47hgbotNote Added: 0128220
2021-05-17 13:22hgbotNote Added: 0128230
2021-05-17 13:22hgbotNote Added: 0128231
2021-05-17 13:22hgbotNote Added: 0128232
2021-05-17 13:22hgbotNote Added: 0128233
2021-05-17 13:22hgbotResolutionopen => fixed
2021-05-17 13:22hgbotStatusscheduled => closed
2021-05-17 13:22hgbotFixed in Version => RR21Q1.2
2021-05-17 13:22hgbotNote Added: 0128234
2021-05-17 13:22hgbotNote Added: 0128235
2021-05-31 08:20hgbotNote Added: 0128794
2021-05-31 08:20hgbotNote Added: 0128795
2021-05-31 08:20hgbotNote Added: 0128796
2021-06-01 07:39hgbotNote Added: 0128834
2021-06-01 07:39hgbotNote Added: 0128835
2021-06-01 07:40hgbotNote Added: 0128836
2021-06-01 07:40hgbotNote Added: 0128837
2021-06-01 07:40hgbotNote Added: 0128838
2021-06-01 07:40hgbotNote Added: 0128839

Notes
(0128218)
hgbot   
2021-05-17 12:47   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/20 [^]
(0128219)
hgbot   
2021-05-17 12:47   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/26 [^]
(0128220)
hgbot   
2021-05-17 12:47   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/93 [^]
(0128230)
hgbot   
2021-05-17 13:22   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/93 [^]
(0128231)
hgbot   
2021-05-17 13:22   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: 3a87a95737d6e49405cedd089c3a94b1086d3de8
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-17T14:13:04+05:30
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/3a87a95737d6e49405cedd089c3a94b1086d3de8 [^]

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

---
M config/openbravohw.properties.template
---
(0128232)
hgbot   
2021-05-17 13:22   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources [^]
Changeset: 65635eb51f5593f535cdd35bdf36f52f93756fe9
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-17T14:34:32+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/commit/65635eb51f5593f535cdd35bdf36f52f93756fe9 [^]

Related to ISSUE-46494: 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
---
(0128233)
hgbot   
2021-05-17 13:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/26 [^]
(0128234)
hgbot   
2021-05-17 13:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager [^]
Changeset: 79f76b2be99910d092ac96584c31c099bd5740e1
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-17T14:37:32+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/commit/79f76b2be99910d092ac96584c31c099bd5740e1 [^]

Fixed ISSUE-46494: Allow HardwareManager to Run without UI

---
M bin/poshw.jar
M bin/rev.id
---
(0128235)
hgbot   
2021-05-17 13:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/20 [^]
(0128794)
hgbot   
2021-05-31 08:20   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/25 [^]
(0128795)
hgbot   
2021-05-31 08:20   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/31 [^]
(0128796)
hgbot   
2021-05-31 08:20   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/98 [^]
(0128834)
hgbot   
2021-06-01 07:39   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: 6631d6b60a6b165685e5d0b4de2d66972f46c186
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-27T13:43:35+05:30
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/6631d6b60a6b165685e5d0b4de2d66972f46c186 [^]

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

---
M build.xml
---
(0128835)
hgbot   
2021-06-01 07:39   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/98 [^]
(0128836)
hgbot   
2021-06-01 07:40   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/31 [^]
(0128837)
hgbot   
2021-06-01 07:40   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources [^]
Changeset: 5f503718feb616638d0a13b8433cbd54871c06b1
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-06-01T05:39:41+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/commit/5f503718feb616638d0a13b8433cbd54871c06b1 [^]

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

---
M project/logging.properties
M project/src/com/openbravo/pos/printer/TicketParser.java
---
(0128838)
hgbot   
2021-06-01 07:40   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager [^]
Changeset: 6364c13c9bd23cb55f83d9ae1ae960d6df7dd0ae
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-06-01T05:40:10+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/commit/6364c13c9bd23cb55f83d9ae1ae960d6df7dd0ae [^]

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

---
M bin/logging.properties
M bin/poshw.jar
M bin/rev.id
---
(0128839)
hgbot   
2021-06-01 07:40   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/25 [^]