admin管理员组文章数量:1287116
In building my quarkus application I am facing the following exceptions.
'''Caused by: java.util.NoSuchElementException: SRCFG00028: Could not find a mapping for io.quarkus.deployment.dev.testing.TestConfig with prefix at io.smallrye.config.SmallRyeConfig.getConfigMapping(SmallRyeConfig.java:636) at io.smallrye.config.SmallRyeConfig.getConfigMapping(SmallRyeConfig.java:621) at io.quarkus.test.junit.AbstractJvmQuarkusTestExtension.evaluateExecutionCondition(AbstractJvmQuarkusTestExtension.java:287)'''
I have defined two Converters as following
'''@Priority(100) public class TestConfigProfileConverter implements Converter<TestConfig.Container> {
@Inject
@ConfigMapping(prefix = "quarkus.test")
ConfigMapInterface configMapInterface;
@Override
public TestConfig.Container convert(String s) throws IllegalArgumentException, NullPointerException {
return new TestConfig.Container();
}
}'''
and
'''@Priority(100) public class TestConfigContainerConverter implements Converter<TestConfig.Profile> { @Inject @ConfigMapping(prefix = "quarkus.test") ConfigMapInterface configMapInterface;
@Override
public TestConfig.Profile convert(String s) throws IllegalArgumentException, NullPointerException {
return new TestConfig.Profile();
}
}'''
I also have my application.properties defined in resources directory with all required quarkus.test configuration fields. What am i missing here?
In building my quarkus application I am facing the following exceptions.
'''Caused by: java.util.NoSuchElementException: SRCFG00028: Could not find a mapping for io.quarkus.deployment.dev.testing.TestConfig with prefix at io.smallrye.config.SmallRyeConfig.getConfigMapping(SmallRyeConfig.java:636) at io.smallrye.config.SmallRyeConfig.getConfigMapping(SmallRyeConfig.java:621) at io.quarkus.test.junit.AbstractJvmQuarkusTestExtension.evaluateExecutionCondition(AbstractJvmQuarkusTestExtension.java:287)'''
I have defined two Converters as following
'''@Priority(100) public class TestConfigProfileConverter implements Converter<TestConfig.Container> {
@Inject
@ConfigMapping(prefix = "quarkus.test")
ConfigMapInterface configMapInterface;
@Override
public TestConfig.Container convert(String s) throws IllegalArgumentException, NullPointerException {
return new TestConfig.Container();
}
}'''
and
'''@Priority(100) public class TestConfigContainerConverter implements Converter<TestConfig.Profile> { @Inject @ConfigMapping(prefix = "quarkus.test") ConfigMapInterface configMapInterface;
@Override
public TestConfig.Profile convert(String s) throws IllegalArgumentException, NullPointerException {
return new TestConfig.Profile();
}
}'''
I also have my application.properties defined in resources directory with all required quarkus.test configuration fields. What am i missing here?
Share Improve this question asked Feb 24 at 22:45 soheil_ptrsoheil_ptr 1015 bronze badges1 Answer
Reset to default 0Since you also opened an issue in the Quarkus GitHub repository, I'm following up there: https://github/quarkusio/quarkus/issues/46469
本文标签: quarkusFacing an issue with mapping configurationStack Overflow
版权声明:本文标题:quarkus - Facing an issue with mapping configuration - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741237750a2363358.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论