ENV Variables doesn't work anymore with Quarkus 1.0.1.Final
See original GitHub issueAs 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:
- Created 4 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A CR is planned on next Monday. And the Final on December 16th.
But please, test master to be sure the issue is resolved!
[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]