Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MpConfig.toHelidonConfig(config) throws Exception when MicroProfile config passed as argument #6668

Closed
dalexandrov opened this issue Apr 21, 2023 · 0 comments
Assignees
Labels
3.x Issues for 3.x version branch 4.x Version 4.x bug Something isn't working config P2

Comments

@dalexandrov
Copy link
Contributor

Environment Details

  • Helidon Version: 3.x – 4.x
  • Helidon SE & Helidon MP
  • JDK version: 19
  • OS: MacOSX

io.helidon.config.Config seConfig = MpConfig.toHelidonConfig(config); throws exception:

java.lang.IllegalStateException: Cannot convert to arbitrary types when the MP Config is not a Helidon implementation
        at io.helidon.config.mp.SeConfig.impl(SeConfig.java:346)
        at io.helidon.config.mp.SeConfig.as(SeConfig.java:198)
        at io.helidon.config.Config.asString(Config.java:731)
        at com.example.myproject.ConfigBean.<init>(ConfigBean.java:22)

when org.eclipse.microprofile.config.Config is passed as a parameter.

Reproducer attached:
reproducer.zip

@dalexandrov dalexandrov added bug Something isn't working config 3.x Issues for 3.x version branch 4.x Version 4.x labels Apr 21, 2023
@m0mus m0mus added the P2 label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issues for 3.x version branch 4.x Version 4.x bug Something isn't working config P2
Projects
Archived in project
Development

No branches or pull requests

2 participants