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

JAX-RS client builder fails in continuous 2.0 tests #16755

Closed
sdaschner opened this issue Apr 23, 2021 · 2 comments · Fixed by #16791
Closed

JAX-RS client builder fails in continuous 2.0 tests #16755

sdaschner opened this issue Apr 23, 2021 · 2 comments · Fixed by #16791
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@sdaschner
Copy link
Contributor

When running Quarkus 2.0.0.Alpha1 in dev mode, I can't run a test which programmatically creates a JAX-RS client.

Describe the bug

To Reproduce

Following code used in test:

// ...
client = ClientBuilder.newBuilder().build();
baseTarget = client.target(buildUri());

Results in:

java.util.ServiceConfigurationError: org.jboss.resteasy.spi.config.ConfigurationFactory: org.jboss.resteasy.core.config.DefaultConfigurationFactory not a subtype
	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:591)
	...
	at org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine.<init>(ManualClosingApacheHttpClient43Engine.java:120)
	at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient43Engine.<init>(ApacheHttpClient43Engine.java:29)
	at org.jboss.resteasy.client.jaxrs.engines.ClientHttpEngineBuilder43.createEngine(ClientHttpEngineBuilder43.java:265)
	at org.jboss.resteasy.client.jaxrs.engines.ClientHttpEngineBuilder43.build(ClientHttpEngineBuilder43.java:210)
	at org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl.build(ResteasyClientBuilderImpl.java:415)
	at org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl.build(ResteasyClientBuilderImpl.java:47)
	at com.sebastian_daschner.coffee.CoffeeSystem.<init>(CoffeeSystem.java:16)
	at com.sebastian_daschner.coffee.CoffeeIT.<init>(CoffeeIT.java:9)

This would be very helpful in the interactive tests, since the way how I like to write plain JUnit tests (which programmatic stuff only) runs very fast.

Reproducer: https://github.com/sdaschner/quarkus-playground/tree/f9c23fa6fcfa0a83ae9f8f14c19ffca577d9b51d (test CoffeeIT)

@sdaschner sdaschner added the kind/bug Something isn't working label Apr 23, 2021
@sdaschner
Copy link
Contributor Author

I remember I've had a similar issue before when using the JAX-RS client before, but I didn't find an issue to it...

@cescoffier
Copy link
Member

\CC @FroMage @michalszynkiewicz @stuartwdouglas (adding Stuart as it may be a classloading issue)

@stuartwdouglas stuartwdouglas self-assigned this Apr 26, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Apr 26, 2021
Also moves a misplaced fix for quarkusio#12498 to
the correct spot.

Fixes quarkusio#16762
Fixes quarkusio#16755
@quarkus-bot quarkus-bot bot added this to the 2.0 - main milestone Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants