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

xchange native itests failure #3042

Closed
ffang opened this issue Aug 26, 2021 · 4 comments
Closed

xchange native itests failure #3042

ffang opened this issue Aug 26, 2021 · 4 comments
Assignees

Comments

@ffang
Copy link
Contributor

ffang commented Aug 26, 2021

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)

@ffang ffang self-assigned this Aug 26, 2021
ffang added a commit to ffang/camel-quarkus that referenced this issue Aug 26, 2021
@jamesnetherton
Copy link
Contributor

Which GraalVM version is this? Bit confused as to how the CI build has been passing ok since the 2.2.0.Final upgrade....

@ffang
Copy link
Contributor Author

ffang commented Aug 26, 2021

@jamesnetherton
GraalVM 21.1.0 Java 11 CE (Java Version 11.0.11+8-jvmci-21.1-b05)

@jamesnetherton
Copy link
Contributor

Ah ok - we've moved on to 21.2.

@ffang
Copy link
Contributor Author

ffang commented Aug 26, 2021

Nice, with GraalVM 21.2.0 I don't see this problem on my mac.
Thanks!

@ppalaga ppalaga added this to the No fix/wont't fix milestone Oct 22, 2021
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