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

[Quarkus 3.6] Weird config error when setting nonexistent http-conduit-factory value #1048

Open
famod opened this issue Sep 26, 2023 · 4 comments

Comments

@famod
Copy link
Contributor

famod commented Sep 26, 2023

I'm getting the following config error when setting a nonexistent factory (by mistake), e.g. -Dquarkus.cxf.http-conduit-factory=foo:

java.lang.RuntimeException: io.smallrye.config.ConfigValidationException: Configuration validation failed:
	java.lang.IllegalArgumentException: SRCFG00039: The config property quarkus.cxf.http-conduit-factory with the config value "foo" threw an Exception whilst being converted SRCFG00049: Cannot convert foo to enum class io.quarkiverse.cxf.CxfClientConfig$HTTPConduitImpl, allowed values: cxfd-efault,http-client-httpc-onduit-factory,urlc-onnection-httpc-onduit-factory,quarkus-cxfd-efault
...

The "allowed values" look very odd:

cxfd-efault,http-client-httpc-onduit-factory,urlc-onnection-httpc-onduit-factory,quarkus-cxfd-efault

@ppalaga
Copy link
Contributor

ppalaga commented Nov 2, 2023

Yeah, this back-and-forth enum string juggling in Quarkus does not work well if one prefers other than dash-case representation. I have filed quarkusio/quarkus#36847

@ppalaga
Copy link
Contributor

ppalaga commented Nov 13, 2023

quarkusio/quarkus#36847 is fixed, we need to verify with Quarkus 3.6

@ppalaga ppalaga changed the title Weird config error when setting nonexistent http-conduit-factory value [Quarkus 3.6] Weird config error when setting nonexistent http-conduit-factory value Nov 13, 2023
@famod
Copy link
Contributor Author

famod commented Nov 14, 2023

...or 3.5.2 (it has been backported).

@ppalaga
Copy link
Contributor

ppalaga commented Dec 24, 2023

Still not what we need quarkusio/quarkus#36847 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants