Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0046495 | ||||||||
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:42 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR20Q4.4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | RR20Q4.4 | |||
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 | 0046495: 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 | ||||||||
![]() |
||||||||
|
![]() |
|
(0128221) hgbot (developer) 2021-05-17 12:50 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/21 [^] |
(0128222) hgbot (developer) 2021-05-17 12:50 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/27 [^] |
(0128223) hgbot (developer) 2021-05-17 12:50 |
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/94 [^] |
(0128236) hgbot (developer) 2021-05-17 13:22 |
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/94 [^] |
(0128237) hgbot (developer) 2021-05-17 13:22 |
Repository: https://gitlab.com/openbravo/ci/mobile-test [^] Changeset: eba70f8fbd021767a6c8fe0274ff0f72f7533a94 Author: Ranjith S R <ranjith@qualiantech.com> Date: 2021-05-17T15:02:55+05:30 URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/eba70f8fbd021767a6c8fe0274ff0f72f7533a94 [^] Related to ISSUE-46495: Allow HardwareManager to Run without UI in CI --- M config/openbravohw.properties.template --- |
(0128238) hgbot (developer) 2021-05-17 13:22 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/27 [^] |
(0128239) hgbot (developer) 2021-05-17 13:22 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources [^] Changeset: 19095969e33509fe49425641a2bdedd41a04bc22 Author: Ranjith S R <ranjith@qualiantech.com> Date: 2021-05-17T15:11:17+05:30 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/commit/19095969e33509fe49425641a2bdedd41a04bc22 [^] Related to ISSUE-46495: 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 --- |
(0128240) hgbot (developer) 2021-05-17 13:22 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/21 [^] |
(0128241) hgbot (developer) 2021-05-17 13:23 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager [^] Changeset: 1cff63857ab9b248ece7df85a133bf8ee9a235fe Author: Ranjith S R <ranjith@qualiantech.com> Date: 2021-05-17T15:12:17+05:30 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/commit/1cff63857ab9b248ece7df85a133bf8ee9a235fe [^] Fixed ISSUE-46495: Allow HardwareManager to Run without UI --- M bin/poshw.jar M bin/rev.id --- |
(0128797) hgbot (developer) 2021-05-31 08:21 |
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/99 [^] |
(0128798) hgbot (developer) 2021-05-31 08:21 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/32 [^] |
(0128799) hgbot (developer) 2021-05-31 08:21 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/26 [^] |
(0128840) hgbot (developer) 2021-06-01 07:42 |
Repository: https://gitlab.com/openbravo/ci/mobile-test [^] Changeset: fb0c4935a698a88c1370f6fab2fa7349adaac468 Author: Ranjith S R <ranjith@qualiantech.com> Date: 2021-05-27T13:45:28+05:30 URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/fb0c4935a698a88c1370f6fab2fa7349adaac468 [^] Related to ISSUE-46495: HardwareManager should be started from bin directory instead of current directory --- M build.xml --- |
(0128841) hgbot (developer) 2021-06-01 07:42 |
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/99 [^] |
(0128842) hgbot (developer) 2021-06-01 07:42 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/32 [^] |
(0128843) hgbot (developer) 2021-06-01 07:42 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources [^] Changeset: fd0b1f8fb36c031ff3ac6a033073ecf3251bf4e0 Author: Ranjith S R <ranjith@qualiantech.com> Date: 2021-06-01T05:41:59+00:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/commit/fd0b1f8fb36c031ff3ac6a033073ecf3251bf4e0 [^] Related to ISSUE-46495: Updated LogFile Pattern for Log FileHandler --- M project/logging.properties M project/src/com/openbravo/pos/printer/TicketParser.java --- |
(0128844) hgbot (developer) 2021-06-01 07:42 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager [^] Changeset: 40c7e95ad6289072517698d66eb0cce90084ce82 Author: Ranjith S R <ranjith@qualiantech.com> Date: 2021-06-01T05:42:13+00:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/commit/40c7e95ad6289072517698d66eb0cce90084ce82 [^] Related to ISSUE-46495: Updated LogFile Pattern for Log FileHandler --- M bin/logging.properties M bin/poshw.jar M bin/rev.id --- |
(0128845) hgbot (developer) 2021-06-01 07:42 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/26 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2021-05-04 17:14 | shuehner | Type | feature request => backport |
2021-05-04 17:14 | shuehner | Target Version | => RR20Q4.4 |
2021-05-17 07:43 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2021-05-17 12:50 | hgbot | Merge Request Status | => open |
2021-05-17 12:50 | hgbot | Note Added: 0128221 | |
2021-05-17 12:50 | hgbot | Note Added: 0128222 | |
2021-05-17 12:50 | hgbot | Note Added: 0128223 | |
2021-05-17 13:22 | hgbot | Merge Request Status | open => approved |
2021-05-17 13:22 | hgbot | Note Added: 0128236 | |
2021-05-17 13:22 | hgbot | Note Added: 0128237 | |
2021-05-17 13:22 | hgbot | Note Added: 0128238 | |
2021-05-17 13:22 | hgbot | Note Added: 0128239 | |
2021-05-17 13:22 | hgbot | Resolution | open => fixed |
2021-05-17 13:22 | hgbot | Status | scheduled => closed |
2021-05-17 13:22 | hgbot | Note Added: 0128240 | |
2021-05-17 13:23 | hgbot | Fixed in Version | => RR20Q4.4 |
2021-05-17 13:23 | hgbot | Note Added: 0128241 | |
2021-05-31 08:21 | hgbot | Note Added: 0128797 | |
2021-05-31 08:21 | hgbot | Note Added: 0128798 | |
2021-05-31 08:21 | hgbot | Note Added: 0128799 | |
2021-06-01 07:42 | hgbot | Note Added: 0128840 | |
2021-06-01 07:42 | hgbot | Note Added: 0128841 | |
2021-06-01 07:42 | hgbot | Note Added: 0128842 | |
2021-06-01 07:42 | hgbot | Note Added: 0128843 | |
2021-06-01 07:42 | hgbot | Note Added: 0128844 | |
2021-06-01 07:42 | hgbot | Note Added: 0128845 |
Copyright © 2000 - 2009 MantisBT Group |