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

jersey-client + jersey-jetty-connector: javax.ws.rs.ProcessingException: Found interface org.eclipse.jetty.http.HttpFields, but class was expected #5468

Open
minfrin opened this issue Nov 16, 2023 · 1 comment

Comments

@minfrin
Copy link

minfrin commented Nov 16, 2023

When jersey-client and jersey-jetty-connector v2.41 is used with jetty-client v10.0.18, we get the following exception

javax.ws.rs.ProcessingException: Found interface org.eclipse.jetty.http.HttpFields, but class was expected
	org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:312)
	org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:675)
	org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:697)
	org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:691)
	org.glassfish.jersey.internal.Errors.process(Errors.java:292)
	org.glassfish.jersey.internal.Errors.process(Errors.java:274)
	org.glassfish.jersey.internal.Errors.process(Errors.java:205)
	org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
	org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:691)
	org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:674)
	org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:450)
	org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:351)
@jansupol
Copy link
Contributor

Jersey never supports Jetty 10. Jersey 2.x supports Jetty 9, Jersey 3.0 Jetty 11, Jersey 3.1.4 will support Jetty 11 and Jetty 12.

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