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

RESTEasy Reactive build is failing as org.jboss.resteasy.spi.HttpRequest is not available as bean #33360

Closed
michalvavrik opened this issue May 14, 2023 · 4 comments · Fixed by #33362
Assignees
Labels
area/rest kind/bug Something isn't working
Milestone

Comments

@michalvavrik
Copy link
Member

Describe the bug

After #33267 we can't build our project. I didn't find anything about this change in migration guide nor in docs, so I think this is unexpected behavior.

Expected behavior

Build do not fail.

Actual behavior

[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:build (build) on project http-advanced-reactive: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] 	[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: jakarta.enterprise.inject.spi.DeploymentException: Found 2 deployment problems: 
[ERROR] [1] Unsatisfied dependency for type org.jboss.resteasy.spi.HttpRequest and qualifiers [@Default]
[ERROR] 	- java member: org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider#request
[ERROR] 	- 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]
[ERROR] [2] Unsatisfied dependency for type boolean and qualifiers [@Default]
[ERROR] 	- java member: org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider():useContainerParams
[ERROR] 	- 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]
[ERROR] 	The following beans match by type, but none have matching qualifiers:
[ERROR] 		- Bean [class=java.lang.Boolean, qualifiers=[@ConfigProperty, @Any]]
[ERROR] 		- Bean [class=java.lang.Boolean, qualifiers=[@Any, @Claim("")]]
[ERROR] 	at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1403)
[ERROR] 	at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:305)
[ERROR] 	at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:156)
[ERROR] 	at io.quarkus.arc.deployment.ArcProcessor.validate(ArcProcessor.java:526)
[ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[ERROR] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[ERROR] 	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
[ERROR] 	at io.quarkus.builder.BuildContext.run(BuildContext.java:282)
[ERROR] 	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR] 	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
[ERROR] 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
[ERROR] 	at java.base/java.lang.Thread.run(Thread.java:833)
[ERROR] 	at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] 	Suppressed: jakarta.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type org.jboss.resteasy.spi.HttpRequest and qualifiers [@Default]
[ERROR] 	- java member: org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider#request
[ERROR] 	- 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]
[ERROR] 		at io.quarkus.arc.processor.Beans.resolveInjectionPoint(Beans.java:483)
[ERROR] 		at io.quarkus.arc.processor.BeanInfo.init(BeanInfo.java:581)
[ERROR] 		at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:293)
[ERROR] 		... 13 more
[ERROR] 	Suppressed: jakarta.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type boolean and qualifiers [@Default]
[ERROR] 	- java member: org.jboss.resteasy.plugins.providers.JaxrsServerFormUrlEncodedProvider():useContainerParams
[ERROR] 	- 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]
[ERROR] 	The following beans match by type, but none have matching qualifiers:
[ERROR] 		- Bean [class=java.lang.Boolean, qualifiers=[@ConfigProperty, @Any]]
[ERROR] 		- Bean [class=java.lang.Boolean, qualifiers=[@Any, @Claim("")]]
[ERROR] 		at io.quarkus.arc.processor.Beans.resolveInjectionPoint(Beans.java:483)
[ERROR] 		at io.quarkus.arc.processor.BeanInfo.init(BeanInfo.java:581)
[ERROR] 		at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:293)
[ERROR] 		... 13 more

How to Reproduce?

Reproducer:

  1. git clone [email protected]:quarkus-qe/quarkus-test-suite.git
  2. cd quarkus-test-suite/http/http-advanced-reactive
  3. quarkus build

Output of uname -a or ver

Fedora

Output of java -version

17

GraalVM version (if different from Java)

22.3

Quarkus version or git rev

999-SNAPSHOT

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

3.9.1

Additional information

No response

@michalvavrik michalvavrik added kind/bug Something isn't working area/rest labels May 14, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented May 14, 2023

/cc @FroMage (resteasy-reactive), @Sgitario (resteasy-reactive), @geoand (resteasy-reactive), @stuartwdouglas (resteasy-reactive)

@geoand
Copy link
Contributor

geoand commented May 15, 2023

What dependencies does the project include?

geoand added a commit to geoand/quarkus that referenced this issue May 15, 2023
@geoand geoand self-assigned this May 15, 2023
@michalvavrik
Copy link
Member Author

What dependencies does the project include?

I can see you already have a fix, so I won't bother to reply :-)

@geoand
Copy link
Contributor

geoand commented May 15, 2023

Yeah, I asked the question when looking at the issue on the phone :)

geoand added a commit to geoand/quarkus that referenced this issue May 15, 2023
geoand added a commit that referenced this issue May 15, 2023
Make check for RESTEasy Classic stricter
@quarkus-bot quarkus-bot bot added this to the 3.1 - main milestone May 15, 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/rest kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants