Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20669

Camel-jbang export does not work if camel.jbang.metrics=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.5.0
    • 4.4.2, 4.6.0
    • camel-jbang
    • None
    • Unknown

    Description

      if application.properties contains camel.jbang.metrics=true

      then jbang "-Dcamel.jbang.version=4.5.0" camel@apache/camel export throws

      org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: platform-http-router of type: org.apache.camel.component.platform.http.vertx.VertxPlatformHttpRouter
              at org.apache.camel.support.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:249)
              at org.apache.camel.component.platform.http.vertx.VertxPlatformHttpRouter.lookup(VertxPlatformHttpRouter.java:290)
              at org.apache.camel.component.micrometer.prometheus.MicrometerPrometheus.doStart(MicrometerPrometheus.java:348)
              at org.apache.camel.support.service.BaseService.start(BaseService.java:113)
              at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:126)
              at org.apache.camel.impl.engine.DeferServiceStartupListener.doStart(DeferServiceStartupListener.java:63)
              at org.apache.camel.impl.engine.DeferServiceStartupListener.onCamelContextStarting(DeferServiceStartupListener.java:49)
              at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2775)
              at org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:2486)
              at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2441)
              at org.apache.camel.support.service.BaseService.start(BaseService.java:113)
              at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2046)
              at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:212)
              at org.apache.camel.main.KameletMain.doStart(KameletMain.java:363)
              at org.apache.camel.support.service.BaseService.start(BaseService.java:113)
              at org.apache.camel.dsl.jbang.core.commands.Run.runKameletMain(Run.java:1125)
              at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:811)
              at org.apache.camel.dsl.jbang.core.commands.Run.runSilent(Run.java:311)
              at org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.runSilently(ExportBaseCommand.java:298)
              at org.apache.camel.dsl.jbang.core.commands.ExportCamelMain.export(ExportCamelMain.java:67)
              at org.apache.camel.dsl.jbang.core.commands.Export.export(Export.java:138)
              at org.apache.camel.dsl.jbang.core.commands.Export.export(Export.java:59)
              at org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.doCall(ExportBaseCommand.java:238)
              at org.apache.camel.dsl.jbang.core.commands.Export.doCall(Export.java:28)
              at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
              at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:37)
              at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
              at picocli.CommandLine.access$1500(CommandLine.java:148)
              at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
              at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
              at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
              at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
              at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
              at picocli.CommandLine.execute(CommandLine.java:2170)
              at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:164)
              at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:60)
              at main.CamelJBang.main(CamelJBang.java:36)
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              marat.gubaidullin@gmail.com Marat Gubaidullin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: