question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apicurio registry client does not work with jersey http client

See original GitHub issue

We 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:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
tomasAlabescommented, Sep 8, 2020

Hi @EricWittmann, I tried but had to file #808. A lot of exclude’s and extra dependencies were able to get removed though.

0reactions
carlesarnalcommented, Nov 27, 2020

I guess we can close this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found