Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSminorhave not tried2021-05-04 17:122021-05-04 17:14
ReportershuehnerView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionopenFixed in Version
StatusscheduledFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionRR21Q2
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

0046493: 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, 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/
        at java.base/java.lang.ClassLoader.loadLibrary(
Proposed Solutionchange the 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 ]
blocks feature request 0046492 scheduledranjith_qualiantech_com Please run hardware manager without Java UI in CI 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2021-05-04 17:14 shuehner Type feature request => backport
2021-05-04 17:14 shuehner Target Version => RR21Q2

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker