ffang opened a new issue #3042:
URL: https://github.com/apache/camel-quarkus/issues/3042


   Get error like
   ```
   2021-08-26 12:39:15,616 INFO  [org.kno.xch.kra.KrakenExchange] 
(executor-thread-0) Calling Remote Init...
   2021-08-26 12:39:16,095 INFO  [io.ver.ext.web.RoutingContext] 
(executor-thread-0) RoutingContext failure (500): 
org.jboss.resteasy.spi.UnhandledException: 
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: 
xchange://kraken?method=currencyMetaData&service=metadata due to: 
si.mazi.rescu.HttpStatusIOException: Cannot set final field: 
org.knowm.xchange.kraken.dto.marketdata.KrakenAssetPair.altName. Enable by 
specifying "allowWrite" for this field in the reflection configuration.
    at [Source: (StringReader); line: 1, column: 45] (through reference chain: 
org.knowm.xchange.kraken.dto.marketdata.results.KrakenAssetPairsResult["result"]->java.util.LinkedHashMap["1INCHEUR"]->org.knowm.xchange.kraken.dto.marketdata.KrakenAssetPair["altname"])
        at 
org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:106)
        at 
org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:372)
        at 
org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:218)
        at 
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:519)
        at 
org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261)
        at 
org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161)
        at 
org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
        at 
org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164)
        at 
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247)
        at 
io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:73)
        at 
io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:138)
        at 
io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:93)
        at 
io.quarkus.vertx.core.runtime.VertxCoreRecorder$13.runWith(VertxCoreRecorder.java:543)
        at 
org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
        at 
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
        at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
        at 
org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
        at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.lang.Thread.run(Thread.java:829)
        at 
com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:553)
        at 
com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
   Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to 
resolve endpoint: xchange://kraken?method=currencyMetaData&service=metadata due 
to: si.mazi.rescu.HttpStatusIOException: Cannot set final field: 
org.knowm.xchange.kraken.dto.marketdata.KrakenAssetPair.altName. Enable by 
specifying "allowWrite" for this field in the reflection configuration.
    at [Source: (StringReader); line: 1, column: 45] (through reference chain: 
org.knowm.xchange.kraken.dto.marketdata.results.KrakenAssetPairsResult["result"]->java.util.LinkedHashMap["1INCHEUR"]->org.knowm.xchange.kraken.dto.marketdata.KrakenAssetPair["altname"])
        at 
org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:962)
        at 
org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:844)
        at 
org.apache.camel.impl.engine.DefaultProducerTemplate.resolveMandatoryEndpoint(DefaultProducerTemplate.java:573)
        at 
org.apache.camel.impl.engine.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:411)
        at 
org.apache.camel.quarkus.component.xchange.it.XchangeResource.currencyMetadata(XchangeResource.java:83)
        at 
org.apache.camel.quarkus.component.xchange.it.XchangeResource_ClientProxy.currencyMetadata(XchangeResource_ClientProxy.zig:128)
        at java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:170)
        at 
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:130)
        at 
org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:660)
        at 
org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:524)
        at 
org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:474)
        at 
org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
        at 
org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:476)
        at 
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:434)
        at 
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:408)
        at 
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:69)
        at 
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:492)
        ... 17 more
   
   ```
   I'm not sure if this issue only exists on mac(I doubt it), but I'm pretty 
sure this issue happens since we upgrade to quarkus 2.2.0.Final(I got a full 
green build on my mac days ago without quarkus 2.2.0.Final upgrade)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to