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

REST Client examples NOT working #2507

Closed
arindamdas25 opened this issue May 18, 2022 · 3 comments
Closed

REST Client examples NOT working #2507

arindamdas25 opened this issue May 18, 2022 · 3 comments
Assignees

Comments

@arindamdas25
Copy link

I'm following this example
https://github.com/Apicurio/apicurio-registry-examples/tree/master/rest-client

and while trying to run it I'm getting. It is pointing 2.2.1.Final and I've tried with 2.2.3.Final. Can anyone help me what's wrong with this?

Exception in thread "main" java.lang.NoClassDefFoundError: io/apicurio/rest/client/spi/ApicurioHttpClientFactory at io.apicurio.registry.rest.client.RegistryClientFactory.create(RegistryClientFactory.java:79) at io.apicurio.registry.rest.client.RegistryClientFactory.create(RegistryClientFactory.java:63) at io.apicurio.registry.examples.SimpleRegistryDemo.createProperClient(SimpleRegistryDemo.java:53) at io.apicurio.registry.examples.SimpleRegistryDemo.<clinit>(SimpleRegistryDemo.java:29) Caused by: java.lang.ClassNotFoundException: io.apicurio.rest.client.spi.ApicurioHttpClientFactory at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ... 4 more

@EricWittmann
Copy link
Member

Closed by @arindamdas25 but I'm pinging @carlesarnal just in case there's something here. :)

@carlesarnal
Copy link
Member

The factory is not present in previous release an this why is not present. Updating the examples to the latest version of Registry fixes this.

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

3 participants