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

An integration pod with a salesforce connection is not able to start.

    XMLWordPrintable

Details

    • % %
    • +
    • Automated
    • Fuse 7.6 - Sprint 55 (1/4)

    Description

      When I have an integration with Salesforce connection, the integration is failed after the start. The connection is valid. (Validated in Connection details page)
      The log:

      ...
      2019-11-05 13:06:06.191  INFO 1 --- [           main] i.s.i.r.handlers.ConnectorStepHandler    : Got component: io.syndesis.connector.salesforce.SalesforceStreamingConnectorFactory$SalesforceStreamingConnector@75527e36, salesforce-0-0, salesforce
      2019-11-05 13:06:06.306  INFO 1 --- [           main] i.s.i.c.proxy.ComponentProxyComponent    : Register component: salesforce-0-0 (type: org.apache.camel.component.salesforce.SalesforceComponent) with scheme: salesforce and alias: salesforce-salesforce-0-0
      2019-11-05 13:06:06.322  INFO 1 --- [           main] org.eclipse.jetty.util.log               : Logging initialized @10395ms to org.eclipse.jetty.util.log.Slf4jLog
      2019-11-05 13:06:06.323  INFO 1 --- [           main] o.a.c.util.jsse.SSLContextParameters     : Available providers: SUN version 1.8.
      2019-11-05 13:06:06.528  INFO 1 --- [           main] o.a.c.c.s.internal.SalesforceSession     : Login at Salesforce loginUrl: https://login.salesforce.com/services/oauth2/token
      2019-11-05 13:06:07.154 DEBUG 1 --- [           main] i.s.i.c.proxy.ComponentProxyComponent    : Stopping component: salesforce-salesforce-0-0
      2019-11-05 13:06:07.154 DEBUG 1 --- [           main] i.s.i.c.proxy.ComponentProxyComponent    : Stopping connector: salesforce-0-0
      2019-11-05 13:06:07.169  INFO 1 --- [           main] utoConfigurationReportLoggingInitializer : 
      Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
      2019-11-05 13:06:07.169  INFO 1 --- [           main] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1084f78c: startup date [Tue Nov 05 13:06:04 UTC 2019]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5ea434c8
      2019-11-05 13:06:07.189 ERROR 1 --- [           main] o.s.boot.SpringApplication               : Application startup failed
      org.apache.camel.spring.boot.CamelSpringBootInitializationException: java.lang.IllegalArgumentException: java.lang.RuntimeException: org.apache.camel.component.salesforce.api.SalesforceException: {errors:[{"errorCode":"invalid_client","message":"Login error code:[invalid_client] description:[invalid client credentials]"}],statusCode:400}
      	at org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:250) ~[camel-spring-boot-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:57) ~[camel-spring-boot-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) ~[spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:399) ~[spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) ~[spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883) ~[spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144) ~[spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) ~[spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
      	at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration.createChildManagementContext(EndpointWebMvcAutoConfiguration.java:193) ~[spring-boot-actuator-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
      	at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration.afterSingletonsInstantiated(EndpointWebMvcAutoConfiguration.java:156) ~[spring-boot-actuator-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
      	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:781) ~[spring-beans-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE]
      	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
      	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
      	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
      	at io.syndesis.example.Application.main(Application.java:13) [classes!/:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_191]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_191]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_191]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_191]
      	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [project-0.1-SNAPSHOT.jar:na]
      	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [project-0.1-SNAPSHOT.jar:na]
      	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [project-0.1-SNAPSHOT.jar:na]
      	at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:595) [project-0.1-SNAPSHOT.jar:na]
      Caused by: java.lang.IllegalArgumentException: java.lang.RuntimeException: org.apache.camel.component.salesforce.api.SalesforceException: {errors:[{"errorCode":"invalid_client","message":"Login error code:[invalid_client] description:[invalid client credentials]"}],statusCode:400}
      	at io.syndesis.integration.runtime.sb.IntegrationRuntimeAutoConfiguration$1.beforeApplicationStart(IntegrationRuntimeAutoConfiguration.java:96) ~[integration-runtime-springboot-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:152) ~[camel-spring-boot-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	... 31 common frames omitted
      Caused by: java.lang.RuntimeException: org.apache.camel.component.salesforce.api.SalesforceException: {errors:[{"errorCode":"invalid_client","message":"Login error code:[invalid_client] description:[invalid client credentials]"}],statusCode:400}
      	at io.syndesis.integration.runtime.handlers.ConnectorStepHandler.handle(ConnectorStepHandler.java:146) ~[integration-runtime-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.integration.runtime.IntegrationRouteBuilder.configureFlow(IntegrationRouteBuilder.java:172) ~[integration-runtime-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.integration.runtime.IntegrationRouteBuilder.configure(IntegrationRouteBuilder.java:144) ~[integration-runtime-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:462) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:402) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:383) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext$1.call(DefaultCamelContext.java:1027) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext$1.call(DefaultCamelContext.java:1024) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3270) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:1024) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at io.syndesis.integration.runtime.sb.IntegrationRuntimeAutoConfiguration$1.beforeApplicationStart(IntegrationRuntimeAutoConfiguration.java:94) ~[integration-runtime-springboot-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	... 32 common frames omitted
      Caused by: org.apache.camel.component.salesforce.api.SalesforceException: {errors:[{"errorCode":"invalid_client","message":"Login error code:[invalid_client] description:[invalid client credentials]"}],statusCode:400}
      	at org.apache.camel.component.salesforce.internal.SalesforceSession.parseLoginResponse(SalesforceSession.java:277) ~[camel-salesforce-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.component.salesforce.internal.SalesforceSession.login(SalesforceSession.java:130) ~[camel-salesforce-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.component.salesforce.internal.SalesforceSession.start(SalesforceSession.java:353) ~[camel-salesforce-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.component.salesforce.SalesforceComponent.doStart(SalesforceComponent.java:358) ~[camel-salesforce-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1490) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1450) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at io.syndesis.integration.component.proxy.ComponentProxyComponent.doStart(ComponentProxyComponent.java:210) ~[integration-component-proxy-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1490) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1450) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at io.syndesis.integration.runtime.handlers.ConnectorStepHandler.handle(ConnectorStepHandler.java:137) ~[integration-runtime-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	... 42 common frames omitted
      2019-11-05 13:06:07.195  INFO 1 --- [           main] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5ea434c8: startup date [Tue Nov 05 13:05:57 UTC 2019]; root of context hierarchy
      2019-11-05 13:06:07.199  INFO 1 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
      

      I also noticed that after publishing the integration, the following warning shows even though I didn't modify anything.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkralik@redhat.com Matej Kralik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: