Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0046493 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Retail Modules] Web POS | minor | have not tried | 2021-05-04 17:12 | 2021-06-01 07:38 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR21Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | RR21Q2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0046493: Please run hardware manager without Java UI in CI | |||||||
Description | 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. | |||||||
Steps To Reproduce | - 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) | |||||||
Proposed Solution | 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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0128215) hgbot (developer) 2021-05-17 12:45 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/19 [^] |
(0128216) hgbot (developer) 2021-05-17 12:45 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/25 [^] |
(0128217) hgbot (developer) 2021-05-17 12:45 |
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/92 [^] |
(0128224) hgbot (developer) 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 (developer) 2021-05-17 13:21 |
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/92 [^] |
(0128226) hgbot (developer) 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 (developer) 2021-05-17 13:21 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/25 [^] |
(0128228) hgbot (developer) 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 (developer) 2021-05-17 13:21 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/19 [^] |
(0128791) hgbot (developer) 2021-05-31 08:11 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/24 [^] |
(0128792) hgbot (developer) 2021-05-31 08:12 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/30 [^] |
(0128793) hgbot (developer) 2021-05-31 08:12 |
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/97 [^] |
(0128828) hgbot (developer) 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 (developer) 2021-06-01 07:38 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/24 [^] |
(0128830) hgbot (developer) 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 (developer) 2021-06-01 07:38 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/30 [^] |
(0128832) hgbot (developer) 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 (developer) 2021-06-01 07:38 |
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/97 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2021-05-04 17:14 | shuehner | Type | feature request => backport |
2021-05-04 17:14 | shuehner | Target Version | => RR21Q2 |
2021-05-17 07:43 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2021-05-17 12:45 | hgbot | Merge Request Status | => open |
2021-05-17 12:45 | hgbot | Note Added: 0128215 | |
2021-05-17 12:45 | hgbot | Note Added: 0128216 | |
2021-05-17 12:45 | hgbot | Note Added: 0128217 | |
2021-05-17 13:21 | hgbot | Merge Request Status | open => approved |
2021-05-17 13:21 | hgbot | Note Added: 0128224 | |
2021-05-17 13:21 | hgbot | Note Added: 0128225 | |
2021-05-17 13:21 | hgbot | Note Added: 0128226 | |
2021-05-17 13:21 | hgbot | Note Added: 0128227 | |
2021-05-17 13:21 | hgbot | Resolution | open => fixed |
2021-05-17 13:21 | hgbot | Status | scheduled => closed |
2021-05-17 13:21 | hgbot | Fixed in Version | => RR21Q2 |
2021-05-17 13:21 | hgbot | Note Added: 0128228 | |
2021-05-17 13:21 | hgbot | Note Added: 0128229 | |
2021-05-31 08:11 | hgbot | Note Added: 0128791 | |
2021-05-31 08:12 | hgbot | Note Added: 0128792 | |
2021-05-31 08:12 | hgbot | Note Added: 0128793 | |
2021-06-01 07:38 | hgbot | Note Added: 0128828 | |
2021-06-01 07:38 | hgbot | Note Added: 0128829 | |
2021-06-01 07:38 | hgbot | Note Added: 0128830 | |
2021-06-01 07:38 | hgbot | Note Added: 0128831 | |
2021-06-01 07:38 | hgbot | Note Added: 0128832 | |
2021-06-01 07:38 | hgbot | Note Added: 0128833 |
Copyright © 2000 - 2009 MantisBT Group |