You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/11/03 16:10:58 UTC

[GitHub] [camel-quarkus] ppalaga opened a new issue, #4242: camel-quarkus-xchange: MissingResourceException: Can't find bundle for base name sun.util.resources.CurrencyNames, locale en_US

ppalaga opened a new issue, #4242:
URL: https://github.com/apache/camel-quarkus/issues/4242

   Happens in native mode with GraalVM 22.3:
   
   ```
   2022-11-02T18:02:10.9953919Z [INFO] Running org.apache.camel.quarkus.component.xchange.it.XchangeIT
   2022-11-02T18:02:13.5564079Z Nov 02, 2022 6:02:13 PM org.apache.camel.quarkus.test.wiremock.WireMockTestResourceLifecycleManager createServer
   2022-11-02T18:02:13.5564848Z INFO: Starting WireMockServer
   2022-11-02T18:02:13.5565740Z Nov 02, 2022 6:02:13 PM org.apache.camel.quarkus.test.mock.backend.MockBackendUtils logMockBackendUsed
   2022-11-02T18:02:13.5566167Z INFO: Mock backend will be used
   2022-11-02T18:02:14.3795969Z 2022-11-02 18:02:14,372 INFO  [org.ecl.jet.uti.log] (pool-2-thread-1) Logging initialized @4590ms to org.eclipse.jetty.util.log.Slf4jLog
   2022-11-02T18:02:14.4274798Z 2022-11-02 18:02:14,427 WARN  [org.ecl.jet.ser.AbstractConnector] (pool-2-thread-1) Acceptors should be <= availableProcessors: NetworkTrafficServerConnector@268cf09f{HTTP/1.1, (http/1.1)}{0.0.0.0:0}
   2022-11-02T18:02:14.5010820Z 2022-11-02 18:02:14,500 INFO  [org.ecl.jet.ser.Server] (pool-2-thread-1) jetty-9.4.48.v20220622; built: 2022-06-21T20:42:25.880Z; git: 6b67c5719d1f4371b33655ff2d047d24e171e49a; jvm 11.0.16.1+1
   2022-11-02T18:02:14.5213320Z 2022-11-02 18:02:14,520 INFO  [org.ecl.jet.ser.han.ContextHandler] (pool-2-thread-1) Started o.e.j.s.ServletContextHandler@43bf31f3{/__admin,null,AVAILABLE}
   2022-11-02T18:02:14.5236668Z 2022-11-02 18:02:14,522 INFO  [org.ecl.jet.ser.han.ContextHandler] (pool-2-thread-1) Started o.e.j.s.ServletContextHandler@16905c0a{/,null,AVAILABLE}
   2022-11-02T18:02:14.5426597Z 2022-11-02 18:02:14,541 INFO  [org.ecl.jet.ser.AbstractConnector] (pool-2-thread-1) Started NetworkTrafficServerConnector@268cf09f{HTTP/1.1, (http/1.1)}{0.0.0.0:36023}
   2022-11-02T18:02:14.5427849Z 2022-11-02 18:02:14,542 INFO  [org.ecl.jet.ser.Server] (pool-2-thread-1) Started @4761ms
   2022-11-02T18:02:14.5453025Z Nov 02, 2022 6:02:14 PM org.apache.camel.quarkus.test.wiremock.WireMockTestResourceLifecycleManager start
   2022-11-02T18:02:14.5454673Z INFO: WireMock started on http://localhost:36023
   2022-11-02T18:02:14.5460706Z Nov 02, 2022 6:02:14 PM org.apache.camel.quarkus.test.wiremock.WireMockTestResourceLifecycleManager createServer
   2022-11-02T18:02:14.5461337Z INFO: Starting WireMockServer
   2022-11-02T18:02:14.5467435Z Nov 02, 2022 6:02:14 PM org.apache.camel.quarkus.test.mock.backend.MockBackendUtils logMockBackendUsed
   2022-11-02T18:02:14.5468041Z INFO: Mock backend will be used
   2022-11-02T18:02:14.5531060Z 2022-11-02 18:02:14,552 WARN  [org.ecl.jet.ser.AbstractConnector] (pool-2-thread-1) Acceptors should be <= availableProcessors: NetworkTrafficServerConnector@1d1f70df{HTTP/1.1, (http/1.1)}{0.0.0.0:0}
   2022-11-02T18:02:14.5547919Z 2022-11-02 18:02:14,554 INFO  [org.ecl.jet.ser.Server] (pool-2-thread-1) jetty-9.4.48.v20220622; built: 2022-06-21T20:42:25.880Z; git: 6b67c5719d1f4371b33655ff2d047d24e171e49a; jvm 11.0.16.1+1
   2022-11-02T18:02:14.5642172Z 2022-11-02 18:02:14,563 INFO  [org.ecl.jet.ser.han.ContextHandler] (pool-2-thread-1) Started o.e.j.s.ServletContextHandler@4a5380d6{/__admin,null,AVAILABLE}
   2022-11-02T18:02:14.5647521Z 2022-11-02 18:02:14,563 INFO  [org.ecl.jet.ser.han.ContextHandler] (pool-2-thread-1) Started o.e.j.s.ServletContextHandler@7642a4e0{/,null,AVAILABLE}
   2022-11-02T18:02:14.5692088Z 2022-11-02 18:02:14,568 INFO  [org.ecl.jet.ser.AbstractConnector] (pool-2-thread-1) Started NetworkTrafficServerConnector@1d1f70df{HTTP/1.1, (http/1.1)}{0.0.0.0:39527}
   2022-11-02T18:02:14.5744671Z Nov 02, 2022 6:02:14 PM org.apache.camel.quarkus.test.wiremock.WireMockTestResourceLifecycleManager start
   2022-11-02T18:02:14.5745413Z 2022-11-02 18:02:14,568 INFO  [org.ecl.jet.ser.Server] (pool-2-thread-1) Started @4787ms
   2022-11-02T18:02:14.5745882Z INFO: WireMock started on http://localhost:39527
   2022-11-02T18:02:14.5880627Z ======================================================================================
   2022-11-02T18:02:14.5881052Z   native.image.path was not set, making a guess for the correct path of native image
   2022-11-02T18:02:14.5883944Z   guessed path: /home/runner/work/camel-quarkus/camel-quarkus/integration-tests/xchange/target/camel-quarkus-integration-test-xchange-2.14.0-SNAPSHOT-runner
   2022-11-02T18:02:14.5884436Z ======================================================================================
   2022-11-02T18:02:14.6280147Z Executing "/home/runner/work/camel-quarkus/camel-quarkus/integration-tests/xchange/target/camel-quarkus-integration-test-xchange-2.14.0-SNAPSHOT-runner -Dquarkus.http.port=33367 -Dquarkus.http.ssl-port=44507 -Dtest.url=http://localhost:33367 -Dquarkus.log.file.path=/home/runner/work/camel-quarkus/camel-quarkus/integration-tests/xchange/target/quarkus.log -Dquarkus.log.file.enable=true -Dwiremock.kraken.url=http://localhost:39527 -Dwiremock.url=http://localhost:39527 -Dwiremock.binance.url=http://localhost:36023"
   2022-11-02T18:02:14.6694552Z 2022-11-02 18:02:14,668 INFO  [org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) Bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime
   2022-11-02T18:02:14.6695711Z 2022-11-02 18:02:14,669 INFO  [org.apa.cam.mai.MainSupport] (main) Apache Camel (Main) 3.19.0 is starting
   2022-11-02T18:02:14.6764057Z 2022-11-02 18:02:14,676 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.19.0 (camel-1) is starting
   2022-11-02T18:02:14.6768592Z 2022-11-02 18:02:14,676 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Routes startup (started:0)
   2022-11-02T18:02:14.6772547Z 2022-11-02 18:02:14,677 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.19.0 (camel-1) started in 0ms (build:0ms init:0ms start:0ms)
   2022-11-02T18:02:14.6798355Z 2022-11-02 18:02:14,679 INFO  [io.quarkus] (main) camel-quarkus-integration-test-xchange 2.14.0-SNAPSHOT native (powered by Quarkus 999-SNAPSHOT) started in 0.046s. Listening on: http://0.0.0.0:33367
   2022-11-02T18:02:14.6799206Z 2022-11-02 18:02:14,679 INFO  [io.quarkus] (main) Profile prod activated. 
   2022-11-02T18:02:14.6800151Z 2022-11-02 18:02:14,679 INFO  [io.quarkus] (main) Installed features: [camel-core, camel-xchange, cdi, resteasy, resteasy-jsonb, smallrye-context-propagation, vertx]
   2022-11-02T18:02:16.0098746Z 2022-11-02 18:02:16,009 INFO  [org.kno.xch.bin.BinanceExchange] (executor-thread-0) Calling Remote Init...
   2022-11-02T18:02:16.1034858Z 2022-11-02 18:02:16,102 INFO  [org.ecl.jet.ser.han.Con.ROOT] (qtp833317131-25) RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'
   2022-11-02T18:02:16.2742124Z 2022-11-02 18:02:16,271 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-0) HTTP Request to /xchange/currency/metadata/BTC failed, error id: e5d72f2c-0ac1-4390-8d29-5bce67c10fd3-1: org.jboss.resteasy.spi.UnhandledException: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: xchange://binance?method=currencyMetaData&service=metadata due to: Failed to initialize: Can't find bundle for base name sun.util.resources.CurrencyNames, locale en_US
   2022-11-02T18:02:16.2743545Z 	at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:105)
   2022-11-02T18:02:16.2744576Z 	at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:359)
   2022-11-02T18:02:16.2745248Z 	at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:218)
   2022-11-02T18:02:16.2745890Z 	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:519)
   2022-11-02T18:02:16.2746501Z 	at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261)
   2022-11-02T18:02:16.2747156Z 	at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161)
   2022-11-02T18:02:16.2747923Z 	at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
   2022-11-02T18:02:16.2748632Z 	at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164)
   2022-11-02T18:02:16.2749222Z 	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247)
   2022-11-02T18:02:16.2750710Z 	at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:73)
   2022-11-02T18:02:16.2751362Z 	at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:151)
   2022-11-02T18:02:16.2751994Z 	at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:91)
   2022-11-02T18:02:16.2752570Z 	at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:564)
   2022-11-02T18:02:16.2753098Z 	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
   2022-11-02T18:02:16.2753635Z 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
   2022-11-02T18:02:16.2754143Z 	at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
   2022-11-02T18:02:16.2754692Z 	at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
   2022-11-02T18:02:16.2755525Z 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   2022-11-02T18:02:16.2756006Z 	at java.base@17.0.5/java.lang.Thread.run(Thread.java:833)
   2022-11-02T18:02:16.2756591Z 	at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:775)
   2022-11-02T18:02:16.2758388Z 	at org.graalvm.nativeimage.builder/com.oracle.svm.core.posix.thread.PosixPlatformThreads.pthreadStartRoutine(PosixPlatformThreads.java:203)
   2022-11-02T18:02:16.2759691Z Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: xchange://binance?method=currencyMetaData&service=metadata due to: Failed to initialize: Can't find bundle for base name sun.util.resources.CurrencyNames, locale en_US
   2022-11-02T18:02:16.2760587Z 	at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:1009)
   2022-11-02T18:02:16.2761330Z 	at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:891)
   2022-11-02T18:02:16.2762043Z 	at org.apache.camel.impl.engine.DefaultProducerTemplate.resolveMandatoryEndpoint(DefaultProducerTemplate.java:573)
   2022-11-02T18:02:16.2762756Z 	at org.apache.camel.impl.engine.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:411)
   2022-11-02T18:02:16.2763445Z 	at org.apache.camel.quarkus.component.xchange.it.XchangeResource.currencyMetadata(XchangeResource.java:96)
   2022-11-02T18:02:16.2764127Z 	at org.apache.camel.quarkus.component.xchange.it.XchangeResource_ClientProxy.currencyMetadata(Unknown Source)
   2022-11-02T18:02:16.2764668Z 	at java.base@17.0.5/java.lang.reflect.Method.invoke(Method.java:568)
   2022-11-02T18:02:16.2765164Z 	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:170)
   2022-11-02T18:02:16.2765705Z 	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:130)
   2022-11-02T18:02:16.2766316Z 	at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:660)
   2022-11-02T18:02:16.2766989Z 	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:524)
   2022-11-02T18:02:16.2767637Z 	at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:474)
   2022-11-02T18:02:16.2768378Z 	at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
   2022-11-02T18:02:16.2769195Z 	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:476)
   2022-11-02T18:02:16.2769779Z 	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:434)
   2022-11-02T18:02:16.2770342Z 	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:408)
   2022-11-02T18:02:16.2770895Z 	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:69)
   2022-11-02T18:02:16.2771453Z 	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:492)
   2022-11-02T18:02:16.2771855Z 	... 17 more
   2022-11-02T18:02:16.2772518Z Caused by: org.knowm.xchange.exceptions.ExchangeException: Failed to initialize: Can't find bundle for base name sun.util.resources.CurrencyNames, locale en_US
   2022-11-02T18:02:16.2773136Z 	at org.knowm.xchange.binance.BinanceExchange.remoteInit(BinanceExchange.java:114)
   2022-11-02T18:02:16.2773661Z 	at org.knowm.xchange.BaseExchange.applySpecification(BaseExchange.java:113)
   2022-11-02T18:02:16.2774225Z 	at org.knowm.xchange.binance.BinanceExchange.applySpecification(BinanceExchange.java:86)
   2022-11-02T18:02:16.2774777Z 	at org.knowm.xchange.ExchangeFactory.createExchange(ExchangeFactory.java:130)
   2022-11-02T18:02:16.2775435Z 	at org.apache.camel.quarkus.component.xchange.it.XchangeResource$WireMockedXChangeComponent.createExchange(XchangeResource.java:157)
   2022-11-02T18:02:16.2776149Z 	at org.apache.camel.component.xchange.XChangeComponent.getOrCreateXChange(XChangeComponent.java:72)
   2022-11-02T18:02:16.2776905Z 	at org.apache.camel.component.xchange.XChangeComponent.createEndpoint(XChangeComponent.java:43)
   2022-11-02T18:02:16.2777523Z 	at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:171)
   2022-11-02T18:02:16.2778133Z 	at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:975)
   2022-11-02T18:02:16.2778563Z 	... 34 more
   2022-11-02T18:02:16.2779119Z Caused by: java.util.MissingResourceException: Can't find bundle for base name sun.util.resources.CurrencyNames, locale en_US
   2022-11-02T18:02:16.2779710Z 	at java.base@17.0.5/sun.util.resources.Bundles.throwMissingResourceException(Bundles.java:302)
   2022-11-02T18:02:16.2780234Z 	at java.base@17.0.5/sun.util.resources.Bundles.loadBundleOf(Bundles.java:147)
   2022-11-02T18:02:16.2780696Z 	at java.base@17.0.5/sun.util.resources.Bundles.of(Bundles.java:106)
   2022-11-02T18:02:16.2781138Z 	at java.base@17.0.5/sun.util.resources.LocaleData$1.run(LocaleData.java:186)
   2022-11-02T18:02:16.2781641Z 	at java.base@17.0.5/sun.util.resources.LocaleData$1.run(LocaleData.java:183)
   2022-11-02T18:02:16.2782172Z 	at java.base@17.0.5/java.security.AccessController.executePrivileged(AccessController.java:168)
   2022-11-02T18:02:16.2782713Z 	at java.base@17.0.5/java.security.AccessController.doPrivileged(AccessController.java:318)
   2022-11-02T18:02:16.2783209Z 	at java.base@17.0.5/sun.util.resources.LocaleData.getBundle(LocaleData.java:183)
   2022-11-02T18:02:16.2783707Z 	at java.base@17.0.5/sun.util.resources.LocaleData.getCurrencyNames(LocaleData.java:98)
   2022-11-02T18:02:16.2784404Z 	at java.base@17.0.5/sun.util.locale.provider.LocaleResources.getCurrencyName(LocaleResources.java:235)
   2022-11-02T18:02:16.2785049Z 	at java.base@17.0.5/sun.util.locale.provider.CurrencyNameProviderImpl.getString(CurrencyNameProviderImpl.java:122)
   2022-11-02T18:02:16.2785709Z 	at java.base@17.0.5/sun.util.locale.provider.CurrencyNameProviderImpl.getSymbol(CurrencyNameProviderImpl.java:90)
   2022-11-02T18:02:16.2786275Z 	at java.base@17.0.5/java.util.Currency$CurrencyNameGetter.getObject(Currency.java:712)
   2022-11-02T18:02:16.2786749Z 	at java.base@17.0.5/java.util.Currency$CurrencyNameGetter.getObject(Currency.java:697)
   2022-11-02T18:02:16.2787390Z 	at java.base@17.0.5/sun.util.locale.provider.LocaleServiceProviderPool.getLocalizedObjectImpl(LocaleServiceProviderPool.java:275)
   2022-11-02T18:02:16.2788147Z 	at java.base@17.0.5/sun.util.locale.provider.LocaleServiceProviderPool.getLocalizedObject(LocaleServiceProviderPool.java:236)
   2022-11-02T18:02:16.2788735Z 	at java.base@17.0.5/java.util.Currency.getSymbol(Currency.java:547)
   2022-11-02T18:02:16.2789154Z 	at java.base@17.0.5/java.util.Currency.getSymbol(Currency.java:524)
   2022-11-02T18:02:16.2789616Z 	at org.knowm.xchange.currency.Currency$CurrencyAttributes.<init>(Currency.java:716)
   2022-11-02T18:02:16.2790117Z 	at org.knowm.xchange.currency.Currency.createCurrency(Currency.java:534)
   2022-11-02T18:02:16.2790619Z 	at org.knowm.xchange.currency.Currency.getInstance(Currency.java:511)
   2022-11-02T18:02:16.2791106Z 	at org.knowm.xchange.currency.CurrencyPair.<init>(CurrencyPair.java:427)
   2022-11-02T18:02:16.2791616Z 	at org.knowm.xchange.binance.BinanceExchange.postInit(BinanceExchange.java:147)
   2022-11-02T18:02:16.2792161Z 	at org.knowm.xchange.binance.BinanceExchange.remoteInit(BinanceExchange.java:111)
   2022-11-02T18:02:16.2792551Z 	... 42 more
   2022-11-02T18:02:16.2792747Z 
   ```


-- 
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: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] jamesnetherton closed issue #4242: camel-quarkus-xchange: MissingResourceException: Can't find bundle for base name sun.util.resources.CurrencyNames, locale en_US

Posted by GitBox <gi...@apache.org>.
jamesnetherton closed issue #4242: camel-quarkus-xchange: MissingResourceException: Can't find bundle for base name sun.util.resources.CurrencyNames, locale en_US
URL: https://github.com/apache/camel-quarkus/issues/4242


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org