Hi Alex, One also needs to RTFM :) It helped, Thanks a lot!
Cheers, Dmitry -----Original Message----- From: Alexandre Gallice [mailto:[email protected]] Sent: Tuesday, May 25, 2021 11:35 PM To: [email protected] Subject: Re: Quarkus/Camel app native executable - method not found on bean Hi, Highly likely, one would need to register the bean for reflection, for instance with @RegisterForReflection: https://urldefense.com/v3/__https://camel.apache.org/camel-quarkus/latest/user-guide/cdi.html*_cdi_and_the_camel_bean_component__;Iw!!LdWlNaMnLCM!LH2R1jDKmRLOKqB3qQyDlW4QwmoZuYS3Np5rTKxTHOGvBryssB1p_GpEiIKrLGqcmyBd$ hth, Alex On Mon, May 24, 2021 at 6:30 AM Shultz, Dmitry <[email protected]> wrote: > Hi All, > > > > I have this simple Quarkus app > <https://urldefense.com/v3/__https://github.com/zeppelinux/gwifi-dyndn > s__;!!LdWlNaMnLCM!LH2R1jDKmRLOKqB3qQyDlW4QwmoZuYS3Np5rTKxTHOGvBryssB1p > _GpEiIKrLHlXjoie$ > and it works as expected in JVM mode, but fails on > the error below when compiled to native linux > executable: > > > > 2021-05-24 04:17:31,243 INFO > [org.apa.cam.qua.cor.CamelBootstrapRecorder] > (main) bootstrap runtime: > org.apache.camel.quarkus.main.CamelMainRuntime > > 2021-05-24 04:17:31,247 INFO [org.apa.cam.com.htt.HttpComponent] > (main) Created ClientConnectionManager > org.apache.http.impl.conn.PoolingHttpClientConnectionManager@5f567620 > > 2021-05-24 04:17:31,253 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] > (main) Failed to start application: > org.apache.camel.FailedToCreateRouteException: Failed to create route > main-gwifi-route at: >>> Bean[com.diligesoft.gwifiddns.Route53Bean] > <<< in > route: Route(main-gwifi-route)[From[timer://gwifi-timer?fixedRate=t... > because of Method with name: process not found on bean: > com.diligesoft.gwifiddns.Route53Bean@79366ca of type: > com.diligesoft.gwifiddns.Route53Bean_ClientProxy > > at > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java: > 240) > > at > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:74 > ) > > at > org.apache.camel.quarkus.core.FastCamelContext.startRouteDefinitions(F > astCamelContext.java:949) > > at > org.apache.camel.quarkus.core.FastCamelContext.startRouteDefinitions(F > astCamelContext.java:670) > > at > org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamel > Context.java:2771) > > at > org.apache.camel.quarkus.core.FastCamelContext.doInit(FastCamelContext > .java:546) > > at > org.apache.camel.support.service.BaseService.init(BaseService.java:83) > > at > org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelCo > ntext.java:2490) > > at > org.apache.camel.support.service.BaseService.start(BaseService.java:11 > 1) > > at > org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelC > ontext.java:2507) > > at > org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:94) > > at > org.apache.camel.support.service.BaseService.start(BaseService.java:11 > 5) > > at > org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:139 > ) > > at > org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime. > java:49) > > at > org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootst > rapRecorder.java:45) > > > > You can see I even added the method name to the .bean()… What do I miss? > > > > *Dmitry Shultz* > > *Senior Software Developer* > > > > *[image: cid:[email protected]]* > > > > 1540 Kalamalka Lake Rd. > > Vernon, BC V1T 6V2 > > t: 250.558.3200 (x 547) > > *KalTire.com* > > >
