Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0046492
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POSminorhave not tried2021-05-04 17:122021-05-11 08:54
ReportershuehnerView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionopenFixed in Version
StatusscheduledFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0046492: Please run hardware manager without Java UI in CI

DescriptionRunning 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 Solutionchange 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0046493RR21Q2 scheduledRetail Please run hardware manager without Java UI in CI 
depends on backport 0046494RR21Q1.2 scheduledRetail Please run hardware manager without Java UI in CI 
depends on backport 0046495RR20Q4.4 scheduledRetail Please run hardware manager without Java UI in CI 
Not all the children of this issue are yet resolved or closed.

-  Notes
(0127778)
shuehner (administrator)
2021-05-04 17:14

As this fix is required to our CI to work it is needed to be backported to all active releases.
(0127913)
hgbot (developer)
2021-05-10 07:18

Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/87 [^]
(0127914)
hgbot (developer)
2021-05-10 07:18

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/17 [^]
(0127915)
hgbot (developer)
2021-05-10 07:18

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/24 [^]

- Issue History
Date Modified Username Field Change
2021-05-04 17:12 shuehner New Issue
2021-05-04 17:12 shuehner Assigned To => Retail
2021-05-04 17:12 shuehner Triggers an Emergency Pack => No
2021-05-04 17:14 shuehner Status new => scheduled
2021-05-04 17:14 shuehner Note Added: 0127778
2021-05-06 10:04 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2021-05-10 07:18 hgbot Note Added: 0127913
2021-05-10 07:18 hgbot Note Added: 0127914
2021-05-10 07:18 hgbot Note Added: 0127915
2021-05-11 08:54 priyam Issue Monitored: priyam


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker