Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0046494 | ||||||||
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:40 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR21Q1.2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | RR21Q1.2 | |||
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 | 0046494: 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 | ||||||||
![]() |
||||||||
|
![]() |
|
(0128218) hgbot (developer) 2021-05-17 12:47 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/20 [^] |
(0128219) hgbot (developer) 2021-05-17 12:47 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/26 [^] |
(0128220) hgbot (developer) 2021-05-17 12:47 |
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/93 [^] |
(0128230) hgbot (developer) 2021-05-17 13:22 |
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/93 [^] |
(0128231) hgbot (developer) 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 (developer) 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 (developer) 2021-05-17 13:22 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/26 [^] |
(0128234) hgbot (developer) 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 (developer) 2021-05-17 13:22 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/20 [^] |
(0128794) hgbot (developer) 2021-05-31 08:20 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/25 [^] |
(0128795) hgbot (developer) 2021-05-31 08:20 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/31 [^] |
(0128796) hgbot (developer) 2021-05-31 08:20 |
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/98 [^] |
(0128834) hgbot (developer) 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 (developer) 2021-06-01 07:39 |
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/98 [^] |
(0128836) hgbot (developer) 2021-06-01 07:40 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/31 [^] |
(0128837) hgbot (developer) 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 (developer) 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 (developer) 2021-06-01 07:40 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/25 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2021-05-04 17:14 | shuehner | Type | feature request => backport |
2021-05-04 17:14 | shuehner | Target Version | => RR21Q1.2 |
2021-05-17 07:43 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2021-05-17 12:47 | hgbot | Merge Request Status | => open |
2021-05-17 12:47 | hgbot | Note Added: 0128218 | |
2021-05-17 12:47 | hgbot | Note Added: 0128219 | |
2021-05-17 12:47 | hgbot | Note Added: 0128220 | |
2021-05-17 13:21 | hgbot | Merge Request Status | open => approved |
2021-05-17 13:22 | hgbot | Note Added: 0128230 | |
2021-05-17 13:22 | hgbot | Note Added: 0128231 | |
2021-05-17 13:22 | hgbot | Note Added: 0128232 | |
2021-05-17 13:22 | hgbot | Note Added: 0128233 | |
2021-05-17 13:22 | hgbot | Resolution | open => fixed |
2021-05-17 13:22 | hgbot | Status | scheduled => closed |
2021-05-17 13:22 | hgbot | Fixed in Version | => RR21Q1.2 |
2021-05-17 13:22 | hgbot | Note Added: 0128234 | |
2021-05-17 13:22 | hgbot | Note Added: 0128235 | |
2021-05-31 08:20 | hgbot | Note Added: 0128794 | |
2021-05-31 08:20 | hgbot | Note Added: 0128795 | |
2021-05-31 08:20 | hgbot | Note Added: 0128796 | |
2021-06-01 07:39 | hgbot | Note Added: 0128834 | |
2021-06-01 07:39 | hgbot | Note Added: 0128835 | |
2021-06-01 07:40 | hgbot | Note Added: 0128836 | |
2021-06-01 07:40 | hgbot | Note Added: 0128837 | |
2021-06-01 07:40 | hgbot | Note Added: 0128838 | |
2021-06-01 07:40 | hgbot | Note Added: 0128839 |
Copyright © 2000 - 2009 MantisBT Group |