Using gauge_jvm_args in java.properties is breaking the build
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Start by reading how the Java runner loads gauge_jvm_args from java.properties and how it parses arguments before launching the JVM. Reproduce the failure with the quoted timezone value shown in the issue, then compare it with the working inline environment variable. Done means the properties-file setting launches the runner with the timezone argument instead of treating it as the main class.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Expected behavior
I can setup some additional jvm arguments in the java.properties file like gauge_jvm_args = "-Duser.timezone="Asia/Kolkata".
The build should use it without failing
Actual behavior
The build fails with this error message
gauge --hide-suggestion --simple-console --log-level=info run specs
Fehler: Hauptklasse "-Duser.timezone="Asia.Kolkata"" konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: "-Duser.timezone="Asia.Kolkata"
Error occurred while waiting for runner process to finish.
Error : exit status 1
Error ----------------------------------
[java]
process /usr/lib/jvm/java-11-openjdk-amd64/bin/java with pid 205038 quit unexpectedly. exit status 1
[Gauge]
Failed to start gauge API: Error occurred while waiting for runner process to finish.
Error : exit status 1
Get Support ----------------------------
Docs: https://docs.gauge.org
Bugs: https://github.com/getgauge/gauge/issues
Chat: https://github.com/getgauge/gauge/discussions
Your Environment Information -----------
linux, 1.1.7, 5d86b72
html-report (4.0.12), java (0.7.15), screenshot (0.1.0), xml-report (0.2.3)
It seems to me, that the provided arguments somehow end up as the java main class to be called? What works is, to use the property as inline env variable
gauge_jvm_args="-Duser.timezone=\"Asia/Kolkata\"" gauge --hide-suggestion --simple-console --log-level=info run specs
- Lingua principale
- Java
- Stelle
- 99
- Fork
- 51
- Merge medio
- 1g 1h
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getgauge/gauge-java
-
Cannot dynamically skip scenario during BeforeScenario hookForse già presa @serhatozdursun l’ha presa 466 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
getgauge/gauge-java#926 · 8 commenti ·
-
help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
getgauge/gauge-java#619 · 6 commenti · 3 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
getgauge/gauge-java#548 · 5 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
getgauge/gauge-java#466 ·
-
bug Windows
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
getgauge/gauge-java#429 · 1 commento ·
Tutte le issue di getgauge/gauge-java
Issue simili
-
status: waiting-for-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
spring-projects/spring-framework#37614 ·
I maintainer di solito rispondono entro 1 giorno
-
azure-spring azure-spring-aad Client
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Azure/azure-sdk-for-java#51046 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
helm-knative-apply.sh fails with Helm 4Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea: triage theme: undefined
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
jhipster/generator-jhipster#35895 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
oracle/graalvm-reachability-metadata#11659 ·
I maintainer di solito rispondono entro 1 giorno