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

context-propagation-quickstart fails with Unsatisfied dependency for type org.jboss.resteasy.spi.HttpRequest #33382

Closed
rsvoboda opened this issue May 15, 2023 · 7 comments · Fixed by #33385
Labels
area/context-propagation kind/bug Something isn't working triage/duplicate This issue or pull request already exists
Milestone

Comments

@rsvoboda
Copy link
Member

Describe the bug

context-propagation-quickstart fails with Unsatisfied dependency for type org.jboss.resteasy.spi.HttpRequest

[ERROR] Errors:
[ERROR]   PriceTest.test » Runtime java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: jakarta.enterprise.inject.spi.DeploymentException: Found 2 deployment problems:
[1] Unsatisfied dependency for type org.jboss.resteasy.spi.HttpRequest and qualifiers [@Default]
	- java member: org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider#request
	- declared on CLASS bean [types=[jakarta.ws.rs.ext.MessageBodyReader<jakarta.ws.rs.core.Form>, org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider, java.lang.Object], qualifiers=[@Default, @Any], target=org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider]
[2] Unsatisfied dependency for type boolean and qualifiers [@Default]
	- java member: org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider():useContainerParams
	- declared on CLASS bean [types=[jakarta.ws.rs.ext.MessageBodyReader<jakarta.ws.rs.core.Form>, org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider, java.lang.Object], qualifiers=[@Default, @Any], target=org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider]
	The following beans match by type, but none have matching qualifiers:
		- Bean [class=java.lang.Boolean, qualifiers=[@ConfigProperty, @Any]]
	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1403)
	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:305)
	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:156)
	at io.quarkus.arc.deployment.ArcProcessor.validate(ArcProcessor.java:526)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
	at io.quarkus.builder.BuildContext.run(BuildContext.java:282)
	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
	at java.base/java.lang.Thread.run(Thread.java:833)
	at org.jboss.threads.JBossThread.run(JBossThread.java:501)
	Suppressed: jakarta.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type org.jboss.resteasy.spi.HttpRequest and qualifiers [@Default]
	- java member: org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider#request
	- declared on CLASS bean [types=[jakarta.ws.rs.ext.MessageBodyReader<jakarta.ws.rs.core.Form>, org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider, java.lang.Object], qualifiers=[@Default, @Any], target=org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider]
		at io.quarkus.arc.processor.Beans.resolveInjectionPoint(Beans.java:483)
		at io.quarkus.arc.processor.BeanInfo.init(BeanInfo.java:581)
		at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:293)
		... 13 more
	Suppressed: jakarta.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type boolean and qualifiers [@Default]
	- java member: org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider():useContainerParams
	- declared on CLASS bean [types=[jakarta.ws.rs.ext.MessageBodyReader<jakarta.ws.rs.core.Form>, org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider, java.lang.Object], qualifiers=[@Default, @Any], target=org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider]
	The following beans match by type, but none have matching qualifiers:
		- Bean [class=java.lang.Boolean, qualifiers=[@ConfigProperty, @Any]]
		at io.quarkus.arc.processor.Beans.resolveInjectionPoint(Beans.java:483)
		at io.quarkus.arc.processor.BeanInfo.init(BeanInfo.java:581)
		at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:293)
		... 13 more

Expected behavior

App runs and tests pass

Actual behavior

App fails to run

How to Reproduce?

Run https://github.com/quarkusio/quarkus-quickstarts/tree/main/context-propagation-quickstart with latest main

Output of uname -a or ver

macOS

Output of java -version

Java 17

GraalVM version (if different from Java)

No response

Quarkus version or git rev

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@rsvoboda rsvoboda added the kind/bug Something isn't working label May 15, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented May 15, 2023

/cc @FroMage (context-propagation), @manovotn (context-propagation)

@rsvoboda
Copy link
Member Author

CC @geoand

@geoand
Copy link
Contributor

geoand commented May 15, 2023

This issue is a duplicate of #33360 and FWIW it has already been fixed in main by #33362

@geoand geoand closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2023
@geoand geoand added the triage/duplicate This issue or pull request already exists label May 15, 2023
@rsvoboda
Copy link
Member Author

rsvoboda commented May 15, 2023

I'm using latest main (de16f43) and still able to reproduce the issue as described above

@geoand
Copy link
Contributor

geoand commented May 15, 2023

Okay, I'll have a look tomorrow

@geoand
Copy link
Contributor

geoand commented May 15, 2023

Ah, I made a very stupid mistake in the previous PR :(

@geoand
Copy link
Contributor

geoand commented May 15, 2023

#33385 is the proper fix

geoand added a commit that referenced this issue May 16, 2023
Properly make check for RESTEasy Classic stricter
@quarkus-bot quarkus-bot bot added this to the 3.1 - main milestone May 16, 2023
manofthepeace pushed a commit to manofthepeace/quarkus that referenced this issue May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/context-propagation kind/bug Something isn't working triage/duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants