question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENV Variables doesn't work anymore with Quarkus 1.0.1.Final

See original GitHub issue

As of https://github.com/quarkusio/quarkus/issues/3516,

this bug has come back to annoy at Quarkus version 1.0.1.Final.

Here’s my application.properties: quarkus.http.port=${SERVER_PORT:8080}

Here is the log at startup:

11:10:17,372 ERROR [io.qua.dev.DevModeMain] Failed to start Quarkus: 
java.lang.NumberFormatException: For input string: "${SERVER_PORT:8080}"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:638)
at java.base/java.lang.Integer.valueOf(Integer.java:983)
at io.smallrye.config.Converters.lambda$static$60db1e39$1(Converters.java:83)
at io.smallrye.config.Converters$BuiltInConverter.convert(Converters.java:477)
at io.smallrye.config.SmallRyeConfig.convert(SmallRyeConfig.java:198)
at io.smallrye.config.SmallRyeConfig.getValue(SmallRyeConfig.java:99)
at io.quarkus.runtime.configuration.ConfigUtils.getValue(ConfigUtils.java:71)
at io.quarkus.deployment.configuration.IntConfigType.acceptConfigurationValueIntoGroup(IntConfigType.java:60)
at io.quarkus.deployment.configuration.GroupConfigType.acceptConfigurationValueIntoLeaf(GroupConfigType.java:238)
at io.quarkus.deployment.configuration.IntConfigType.acceptConfigurationValue(IntConfigType.java:42)
at io.quarkus.deployment.configuration.ConfigDefinition.loadConfiguration(ConfigDefinition.java:497)
at io.quarkus.deployment.ExtensionLoader.loadStepsFrom(ExtensionLoader.java:229)
at io.quarkus.deployment.ExtensionLoader.loadStepsFrom(ExtensionLoader.java:144)
at io.quarkus.deployment.QuarkusAugmentor.run(QuarkusAugmentor.java:88)
at io.quarkus.runner.RuntimeRunner.run(RuntimeRunner.java:111)
at io.quarkus.dev.DevModeMain.doStart(DevModeMain.java:177)
at io.quarkus.dev.DevModeMain.start(DevModeMain.java:95)
at io.quarkus.dev.DevModeMain.main(DevModeMain.java:66)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gsmetcommented, Dec 4, 2019

A CR is planned on next Monday. And the Final on December 16th.

But please, test master to be sure the issue is resolved!

0reactions
paolodedocommented, Dec 4, 2019

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (enforce-java-version) on project quarkus-parent: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Reference Guide - Quarkus
Environment variables in the .env file are not available via the System.getenv(String) API. 1.4. Quarkus Application configuration file.
Read more >
chore(deps): update dependency io.quarkus:quarkus ... - GitLab
An error occurred while retrieving approval data for this merge request. chore(deps): update dependency io.quarkus:quarkus ...
Read more >
End-user Guide Red Hat CodeReady Workspaces 2.1
Procedure. Navigate to the Red Hat CodeReady Workspaces URL to display the Red Hat CodeReady Workspaces login page. Choose the OpenShift OAuth option....
Read more >
"Updating Maven Project". java.lang.NullPointerException ...
Jep, that worked for me, it appears it was also referring to a Google App Engine version I didn't have anymore (it was...
Read more >
Changelog - Google Git
durationMaxSeconds is not honoured #3394 ... for quarkus-maven-plugin so that it is possible to run our tests with io.quarkus.platform:quarkus-maven-plugin ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found