Apicurio registry client does not work with jersey http client
See original GitHub issueWe are switching to apicurio schema registry from confluent schema registry. We are hitting an issue with the apicurio registry client relying on jboss resteasy http client. The issue is that, when both jersey and resteasy jaxrs providers are in the classpath, resteasy takes precedence and it breaks our other functionality that uses Http client relying on jersey client’s support for application/octet-stream transport, which resteasy does not seem to support.
Caused by:
javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request: javax.ws.rs.ProcessingException: RESTEASY003215: could not find writer for content-type application/octet-stream type: com.oracle.bmc.io.internal.KeepOpenInputStream
at org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine.invoke(ManualClosingApacheHttpClient43Engine.java:286)
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:488)
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:65)
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.put(ClientInvocationBuilder.java:208)
at com.oracle.bmc.http.internal.ForwardingInvocationBuilder.put(ForwardingInvocationBuilder.java:142)
at com.oracle.bmc.http.internal.RestClient.lambda$put$9(RestClient.java:448)
at com.oracle.bmc.http.internal.RestClient.put(RestClient.java:448)
... 12 more
Caused by:
javax.ws.rs.ProcessingException: RESTEASY003215: could not find writer for content-type application/octet-stream type: com.oracle.bmc.io.internal.KeepOpenInputStream
at org.jboss.resteasy.core.interception.jaxrs.ClientWriterInterceptorContext.throwWriterNotFoundException(ClientWriterInterceptorContext.java:50)
at org.jboss.resteasy.core.interception.jaxrs.AbstractWriterInterceptorContext.getWriter(AbstractWriterInterceptorContext.java:302)
at org.jboss.resteasy.core.interception.jaxrs.AbstractWriterInterceptorContext.syncProceed(AbstractWriterInterceptorContext.java:240)
at org.jboss.resteasy.core.interception.jaxrs.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:224)
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.writeRequestBody(ClientInvocation.java:440)
at org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine.writeRequestBodyToOutputStream(ManualClosingApacheHttpClient43Engine.java:584)
at org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine.buildEntity(ManualClosingApacheHttpClient43Engine.java:547)
at org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine.loadHttpMethod(ManualClosingApacheHttpClient43Engine.java:454)
at org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine.invoke(ManualClosingApacheHttpClient43Engine.java:264)
... 18 more
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Managing Apicurio Registry content using a Java client
Apicurio Registry Java client. You can manage artifacts stored in Apicurio Registry using a Java client application. You can create, read, update, or...
Read more >Chapter 4. Service Registry release notes
Registry-711 - Service Registry client does not work with Jersey HTTP client. When the Jersey and RESTEasy JAX-RS providers are both in the...
Read more >Download dependencies for java class javax.ws.rs.client
Here you can download the dependencies for the java class javax.ws.rs.client. Use this engine to looking through the maven repository.
Read more >apicurio-registry : 1.3.2.Final - Maven Central Repository Search
apicurio -registry - Open Source API & Schema Registry.
Read more >HTTPS using Jersey Client - java - Stack Overflow
The complete code will look as follows which worked for me (without setting the system property the Client Config did not work for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @EricWittmann, I tried but had to file #808. A lot of exclude’s and extra dependencies were able to get removed though.
I guess we can close this.