You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use a MicroProfile Config lookup in a constructur. The setting is available from microprofile-config.properties, but only as a profiled setting: %ct.dataverse.siteUrl.
The deployment of Dataverse fails with an NPE because the resolver does not find a non-profiled value.
Expected Outcome
Just use the profiled value if no other value is present.
Current Outcome
Caused by: java.lang.NullPointerException: Cannot invoke "fish.payara.nucleus.microprofile.config.spi.ConfigValueImpl.getSourceOrdinal()" because "resultWithoutProfile" is null
at fish.payara.nucleus.microprofile.config.spi.ConfigExpressionResolver.resolve(ConfigExpressionResolver.java:112)
at fish.payara.nucleus.microprofile.config.spi.ConfigExpressionResolver.resolveExpression(ConfigExpressionResolver.java:227)
at fish.payara.nucleus.microprofile.config.spi.ConfigExpressionResolver.resolveExpression(ConfigExpressionResolver.java:153)
at fish.payara.nucleus.microprofile.config.spi.ConfigExpressionResolver.getValue(ConfigExpressionResolver.java:135)
at fish.payara.nucleus.microprofile.config.spi.ConfigExpressionResolver.resolve(ConfigExpressionResolver.java:108)
at fish.payara.nucleus.microprofile.config.spi.ConfigExpressionResolver.resolve(ConfigExpressionResolver.java:91)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.searchConfigSources(PayaraConfig.java:352)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getConfigValue(PayaraConfig.java:251)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getConfigValue(PayaraConfig.java:229)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValue(PayaraConfig.java:224)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueInternal(PayaraConfig.java:200)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getOptionalValue(PayaraConfig.java:173)
Reproducer
I will at least provide a PR with a unit test demonstrating the fail. I will try to provide a fix as well.
Operating System
Linux
JDK Version
Temurin 17.0.9
Payara Distribution
Payara Server Full Profile
The text was updated successfully, but these errors were encountered:
Elifzeynepedman
added
PR: CLA
CLA submitted on PR by the contributor
and removed
Status: Open
Issue has been triaged by the front-line engineers and is being worked on verification
labels
Feb 13, 2024
Brief Summary
We use a MicroProfile Config lookup in a constructur. The setting is available from
microprofile-config.properties
, but only as a profiled setting:%ct.dataverse.siteUrl
.The deployment of Dataverse fails with an NPE because the resolver does not find a non-profiled value.
Expected Outcome
Just use the profiled value if no other value is present.
Current Outcome
Reproducer
I will at least provide a PR with a unit test demonstrating the fail. I will try to provide a fix as well.
Operating System
Linux
JDK Version
Temurin 17.0.9
Payara Distribution
Payara Server Full Profile
The text was updated successfully, but these errors were encountered: