Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-16422

Camel-k-example-saas: loginUrl must be specified with 1.4.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 2021-M3
    • Fix Version/s: Camel-K-GA
    • Component/s: Camel-K
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. deploy 1.4.0 camel-k (2021-M3 : build#1)
      2. clone Camel-k-example-saas
      3. fill out secret-saas.properties
      4. oc create secret generic secret-saas --from-file=secret-saas.properties
      5. kamel run SalesforceToServiceNow.java --dev

      Show
      1. deploy 1.4.0 camel-k (2021-M3 : build#1) 2. clone Camel-k-example-saas 3. fill out secret-saas.properties 4. oc create secret generic secret-saas --from-file=secret-saas.properties 5. kamel run SalesforceToServiceNow.java --dev
    • Regression Test:
      Todo

      Description

      camel-k-example-saas fails with 1.4.0 camel-k operator (camel version 3.9.0.fuse-800003-redhat-00002) with:

      [1] 2021-05-12 12:20:37,140 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: org.apache.camel.FailedToStartComponentException: Failed to start component salesforce because of loginUrl must be specified
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:3089)
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:2861)
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2812)
      [1] 	at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2507)
      [1] 	at org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:94)
      [1] 	at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
      [1] 	at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:139)
      [1] 	at org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)
      [1] 	at org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45)
      [1] 	at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy_0(CamelBootstrapProcessor$boot-173480958.zig:101)
      [1] 	at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy(CamelBootstrapProcessor$boot-173480958.zig:40)
      [1] 	at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:534)
      [1] 	at io.quarkus.runtime.Application.start(Application.java:90)
      [1] 	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:97)
      [1] 	at io.quarkus.runtime.Quarkus.run(Quarkus.java:66)
      [1] 	at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
      [1] 	at io.quarkus.runtime.Quarkus.run(Quarkus.java:119)
      [1] 	at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
      [1] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [1] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [1] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [1] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      [1] 	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:48)
      [1] 	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:25)
      [1] Caused by: java.lang.IllegalArgumentException: loginUrl must be specified
      [1] 	at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:152)
      [1] 	at org.apache.camel.component.salesforce.SalesforceLoginConfig.validate(SalesforceLoginConfig.java:218)
      [1] 	at org.apache.camel.component.salesforce.internal.SalesforceSession.<init>(SalesforceSession.java:94)
      [1] 	at org.apache.camel.component.salesforce.SalesforceComponent.doStart(SalesforceComponent.java:398)
      [1] 	at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
      [1] 	at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:113)
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:3474)
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:3087)
      [1] 	... 24 more
      [1] 
      [1] 2021-05-12 12:20:37,145 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.IllegalArgumentException: loginUrl must be specified
      [1] 	at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:152)
      [1] 	at org.apache.camel.component.salesforce.SalesforceLoginConfig.validate(SalesforceLoginConfig.java:218)
      [1] 	at org.apache.camel.component.salesforce.internal.SalesforceSession.<init>(SalesforceSession.java:94)
      [1] 	at org.apache.camel.component.salesforce.SalesforceComponent.doStart(SalesforceComponent.java:398)
      [1] 	at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
      [1] 	at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:113)
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:3474)
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:3087)
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:2861)
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2812)
      [1] 	at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
      [1] 	at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2507)
      [1] 	at org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:94)
      [1] 	at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
      [1] 	at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:139)
      [1] 	at org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)
      [1] 	at org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45)
      [1] 	at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy_0(CamelBootstrapProcessor$boot-173480958.zig:101)
      [1] 	at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy(CamelBootstrapProcessor$boot-173480958.zig:40)
      [1] 	at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:534)
      [1] 	at io.quarkus.runtime.Application.start(Application.java:90)
      [1] 	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:97)
      [1] 	at io.quarkus.runtime.Quarkus.run(Quarkus.java:66)
      [1] 	at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
      [1] 	at io.quarkus.runtime.Quarkus.run(Quarkus.java:119)
      [1] 	at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
      [1] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [1] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [1] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [1] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      [1] 	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:48)
      [1] 	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:25)
      

      the same steps work ok with camel-k 1.3.2 (camel version 3.7.0.fuse-800004-redhat-00001):

      ...
      [1] 2021-05-12 12:23:06,256 INFO  [org.apa.cam.imp.eng.InternalRouteStartupManager] (main) Route: route1 started and consuming from: salesforce://CamelCaseTopic
      [1] 2021-05-12 12:23:06,257 INFO  [org.apa.cam.imp.eng.InternalRouteStartupManager] (main) Route: route2 started and consuming from: direct://enrichCase
      [1] 2021-05-12 12:23:06,258 INFO  [org.apa.cam.imp.eng.InternalRouteStartupManager] (main) Route: route3 started and consuming from: direct://mapCaseToIncident
      [1] 2021-05-12 12:23:06,258 INFO  [org.apa.cam.imp.eng.InternalRouteStartupManager] (main) Route: route4 started and consuming from: direct://createIncident
      [1] 2021-05-12 12:23:06,258 INFO  [org.apa.cam.imp.eng.InternalRouteStartupManager] (main) Route: route5 started and consuming from: direct://mapIncidentToCase
      [1] 2021-05-12 12:23:06,259 INFO  [org.apa.cam.imp.eng.InternalRouteStartupManager] (main) Route: route6 started and consuming from: direct://updateCase
      [1] 2021-05-12 12:23:06,259 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Total 6 routes, of which 6 are started
      [1] 2021-05-12 12:23:06,259 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.7.0.fuse-800004-redhat-00001 (camel-1) started in 1s410ms
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              phantomjinx Paul Richardson
              Reporter:
              avano Andrej Vano
              Tester:
              Andrej Smigala Andrej Smigala
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: