agoncal / agoncal-course-quarkus-microservices

Code for of course "Building Microservices with Quarkus"
34 stars 31 forks source link

Error while using proxy interface #1

Open Raad680 opened 1 year ago

Raad680 commented 1 year ago

Hi, I followed your tutorial, every thing was working fine but at the end, I got stuck on an issue while using proxy interface to get isbn_13 from number rest-end point. Please need help. Error output: "details": "Error id 6ff594d3-0d85-4666-97ab-16638a15b57c-12, java.lang.reflect.UndeclaredThrowableException: ", "stack": "java.lang.reflect.UndeclaredThrowableException\r\n\tat com.sun.proxy.$Proxy89.getIsbnNumber(Unknown Source)\r\n\tat org.quarkus.microservices.BookResource.createABook(BookResource.java:32)\r\n\tat org.quarkus.microservices.BookResource$quarkusrestinvoker$createABook_c66295e4c0fa2c4e0172072029e9ece0911a6b9a.invoke(Unknown Source)\r\n\tat org.jboss.resteasy.reactive.server.handlers.InvocationHandler.handle(InvocationHandler.java:29)\r\n\tat io.quarkus.resteasy.reactive.server.runtime.QuarkusResteasyReactiveRequestContext.invokeHandler(QuarkusResteasyReactiveRequestContext.java:114)\r\n\tat org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.run(AbstractResteasyReactiveContext.java:145)\r\n\tat io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:576)\r\n\tat org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)\r\n\tat org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)\r\n\tat org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)\r\n\tat org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)\r\n\tat io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)\r\n\tat java.base/java.lang.Thread.run(Thread.java:829)\r\nCaused by: java.lang.reflect.InvocationTargetException\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\r\n\tat org.jboss.resteasy.microprofile.client.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:148)\r\n\t... 13 more\r\nCaused by: javax.ws.rs.client.ResponseProcessingException: java.lang.NoClassDefFoundError: org/jboss/resteasy/util/FindAnnotation\r\n\tat

Proxy Interface image IsbnThirteen Class image BookResource image Book class image

ricardopissarra commented 9 months ago

Hey @Raad680, did you make sure you added the "number.proxy" config to the application.properties file? Or that the configKey you defined in the @RegisterRestClient annotation matches the one you used in the application.properties file? Everything else looks okay. Hope this helps