Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Using gauge_jvm_args in java.properties is breaking the build

Aperta
#946 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
backend

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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getgauge/gauge-java

Tutte le issue di getgauge/gauge-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.