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

An integration pod with a gmail oauth connection is not able to start

XMLWordPrintable

    • Fuse 7.6 - Sprint 55 (1/4)

      When I have an integration with Gmail oauth connection, the integration is failed after the start.
      The log contains the following error:

      2019-11-05 14:26:39.553  INFO 1 --- [           main] o.a.camel.spring.SpringCamelContext      : Apache Camel 2.21.0.fuse-750033 (CamelContext: test23) is starting
      2019-11-05 14:26:39.555  INFO 1 --- [           main] o.a.camel.spring.SpringCamelContext      : StreamCaching is enabled on CamelContext: test23
      2019-11-05 14:26:39.555  INFO 1 --- [           main] o.a.c.m.ManagedManagementStrategy        : JMX is enabled
      2019-11-05 14:26:40.178  INFO 1 --- [           main] o.a.camel.spring.SpringCamelContext      : Apache Camel 2.21.0.fuse-750033 (CamelContext: test23) is shutting down
      2019-11-05 14:26:40.246 DEBUG 1 --- [           main] i.s.i.c.proxy.ComponentProxyComponent    : Stopping component: google-mail-stream-google-mail-stream-0-0
      2019-11-05 14:26:40.248 DEBUG 1 --- [           main] i.s.i.c.proxy.ComponentProxyComponent    : Stopping connector: google-mail-stream-0-0
      2019-11-05 14:26:40.265  INFO 1 --- [           main] o.a.camel.spring.SpringCamelContext      : Apache Camel 2.21.0.fuse-750033 (CamelContext: test23) uptime 0.705 seconds
      2019-11-05 14:26:40.265  INFO 1 --- [           main] o.a.camel.spring.SpringCamelContext      : Apache Camel 2.21.0.fuse-750033 (CamelContext: test23) is shutdown in 0.088 seconds
      2019-11-05 14:26:40.335  INFO 1 --- [           main] utoConfigurationReportLoggingInitializer : 
      Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
      2019-11-05 14:26:40.335  INFO 1 --- [           main] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7be2f29a: startup date [Tue Nov 05 14:26:37 UTC 2019]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3ec300f1
      2019-11-05 14:26:40.383 ERROR 1 --- [           main] o.s.boot.SpringApplication               : Application startup failed
      org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route -Lsvv6Qn_F_n-a2CXHbP: Route(-Lsvv6Qn_F_n-a2CXHbP)[[From[google-mail-stream-0-0]] -... because of Failed to resolve endpoint: google-mail-stream-0-0 due to: Failed to resolve endpoint: google-mail-stream-google-mail-stream-0-0?accessToken=RAW(ya29.ImGvB1bJBhOB34WgueVDBnWH8GMYViqSpUEDixwChzOhU1-UmfBFOyQ7gCOuq59217VN22GXHPciWqMm-vA5_7HpyU-GaaNdYZSq-Aatrw-lQtAkuPkaoo13p88Kg-WN0QOH)&applicationName=gmail-syndesis&clientId=431894329420-o8acen7unr4uct96ckq88nd9n7odu19h.apps.googleusercontent.com&clientSecret=»ENC:21df94fb0731b8405b50bce323e69eef0586188093a7771e68879e4935a659ede4b23ead89f16b2c0ddd467d02be9db5&delay=30000&labels=test&markAsRead=true&maxResults=5 due to: No component found with scheme: google-mail-stream-google-mail-stream-0-0?accessToken=RAW(ya29.ImGvB1bJBhOB34WgueVDBnWH8GMYViqSpUEDixwChzOhU1-UmfBFOyQ7gCOuq59217VN22GXHPciWqMm-vA5_7HpyU-GaaNdYZSq-Aatrw-lQtAkuPkaoo13p88Kg-WN0QOH)&applicationName=gmail-syndesis&clientId=431894329420-o8acen7unr4uct96ckq88nd9n7odu19h.apps.googleusercontent.com&clientSecret=»ENC
      	at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1830) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136) ~[camel-spring-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:174) ~[camel-spring-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: org.apache.camel.FailedToCreateRouteException: Failed to create route -Lsvv6Qn_F_n-a2CXHbP: Route(-Lsvv6Qn_F_n-a2CXHbP)[[From[google-mail-stream-0-0]] -... because of Failed to resolve endpoint: google-mail-stream-0-0 due to: Failed to resolve endpoint: google-mail-stream-google-mail-stream-0-0?accessToken=RAW(ya29.ImGvB1bJBhOB34WgueVDBnWH8GMYViqSpUEDixwChzOhU1-UmfBFOyQ7gCOuq59217VN22GXHPciWqMm-vA5_7HpyU-GaaNdYZSq-Aatrw-lQtAkuPkaoo13p88Kg-WN0QOH)&applicationName=gmail-syndesis&clientId=431894329420-o8acen7unr4uct96ckq88nd9n7odu19h.apps.googleusercontent.com&clientSecret=»ENC:21df94fb0731b8405b50bce323e69eef0586188093a7771e68879e4935a659ede4b23ead89f16b2c0ddd467d02be9db5&delay=30000&labels=test&markAsRead=true&maxResults=5 due to: No component found with scheme: google-mail-stream-google-mail-stream-0-0?accessToken=RAW(ya29.ImGvB1bJBhOB34WgueVDBnWH8GMYViqSpUEDixwChzOhU1-UmfBFOyQ7gCOuq59217VN22GXHPciWqMm-vA5_7HpyU-GaaNdYZSq-Aatrw-lQtAkuPkaoo13p88Kg-WN0QOH)&applicationName=gmail-syndesis&clientId=431894329420-o8acen7unr4uct96ckq88nd9n7odu19h.apps.googleusercontent.com&clientSecret=»ENC
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:209) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:1143) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3729) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3443) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:209) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3251) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3247) ~[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.doStart(DefaultCamelContext.java:3247) ~[camel-core-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.impl.DefaultCamelContext.start(DefaultCamelContext.java:3163) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133) ~[camel-spring-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	... 31 common frames omitted
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: google-mail-stream-0-0 due to: Failed to resolve endpoint: google-mail-stream-google-mail-stream-0-0?accessToken=RAW(ya29.ImGvB1bJBhOB34WgueVDBnWH8GMYViqSpUEDixwChzOhU1-UmfBFOyQ7gCOuq59217VN22GXHPciWqMm-vA5_7HpyU-GaaNdYZSq-Aatrw-lQtAkuPkaoo13p88Kg-WN0QOH)&applicationName=gmail-syndesis&clientId=431894329420-o8acen7unr4uct96ckq88nd9n7odu19h.apps.googleusercontent.com&clientSecret=»ENC:21df94fb0731b8405b50bce323e69eef0586188093a7771e68879e4935a659ede4b23ead89f16b2c0ddd467d02be9db5&delay=30000&labels=test&markAsRead=true&maxResults=5 due to: No component found with scheme: google-mail-stream-google-mail-stream-0-0?accessToken=RAW(ya29.ImGvB1bJBhOB34WgueVDBnWH8GMYViqSpUEDixwChzOhU1-UmfBFOyQ7gCOuq59217VN22GXHPciWqMm-vA5_7HpyU-GaaNdYZSq-Aatrw-lQtAkuPkaoo13p88Kg-WN0QOH)&applicationName=gmail-syndesis&clientId=431894329420-o8acen7unr4uct96ckq88nd9n7odu19h.apps.googleusercontent.com&clientSecret=»ENC
      	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:758) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:219) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:121) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:69) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:97) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1283) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:204) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	... 42 common frames omitted
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: google-mail-stream-google-mail-stream-0-0?accessToken=RAW(ya29.ImGvB1bJBhOB34WgueVDBnWH8GMYViqSpUEDixwChzOhU1-UmfBFOyQ7gCOuq59217VN22GXHPciWqMm-vA5_7HpyU-GaaNdYZSq-Aatrw-lQtAkuPkaoo13p88Kg-WN0QOH)&applicationName=gmail-syndesis&clientId=431894329420-o8acen7unr4uct96ckq88nd9n7odu19h.apps.googleusercontent.com&clientSecret=»ENC:21df94fb0731b8405b50bce323e69eef0586188093a7771e68879e4935a659ede4b23ead89f16b2c0ddd467d02be9db5&delay=30000&labels=test&markAsRead=true&maxResults=5 due to: No component found with scheme: google-mail-stream-google-mail-stream-0-0?accessToken=RAW(ya29.ImGvB1bJBhOB34WgueVDBnWH8GMYViqSpUEDixwChzOhU1-UmfBFOyQ7gCOuq59217VN22GXHPciWqMm-vA5_7HpyU-GaaNdYZSq-Aatrw-lQtAkuPkaoo13p88Kg-WN0QOH)&applicationName=gmail-syndesis&clientId=431894329420-o8acen7unr4uct96ckq88nd9n7odu19h.apps.googleusercontent.com&clientSecret=»ENC
      	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:764) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at io.syndesis.integration.component.proxy.ComponentProxyComponent.createDelegateEndpoint(ComponentProxyComponent.java:376) ~[integration-component-proxy-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at io.syndesis.integration.component.proxy.ComponentProxyComponent.createEndpoint(ComponentProxyComponent.java:144) ~[integration-component-proxy-1.9-SNAPSHOT.jar!/:1.9-SNAPSHOT]
      	at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:130) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:743) ~[camel-core-2.21.0.fuse-750033.jar!/:2.21.0.fuse-750033]
      	... 50 common frames omitted
      2019-11-05 14:26:40.402  INFO 1 --- [           main] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3ec300f1: startup date [Tue Nov 05 14:26:28 UTC 2019]; root of context hierarchy
      2019-11-05 14:26:40.403  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.

      When I want to validate Gmail oauth connection, I see similar behavior as I described in the https://issues.jboss.org/browse/ENTESB-12191 (shows only error warning with "Connection couln't be verified: e is null") and in the browser console, there is a request on

      https://syndesis.my-minishift.syndesis.io/api/v1/connectors/google-calendar/verifier
      

      which returns 500 status code with response

      {
          "developerMsg":"com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient$Builder.setBatchPath(Ljava/lang/String;)Lcom/google/api/client/googleapis/services/AbstractGoogleClient$Builder;",
          "errorCode":500,
          "userMsg":"com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient$Builder.setBatchPath(Ljava/lang/String;)Lcom/google/api/client/googleapis/services/AbstractGoogleClient$Builder;"
      }
      

            zregvart@redhat.com Zoran Regvart
            mkralik@redhat.com Matej Kralik
            Stefan Veres Stefan Veres
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: