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

Integration with MongoDB connector is not able to start

    XMLWordPrintable

Details

    • Bug
    • Status: Done
    • Blocker
    • Resolution: Done
    • fuse-7.10-GA
    • fuse-7.10-GA
    • Fuse Online
    • None

    Description

      The integration with MongoDB connection is not able to start and contains this error:

      org.apache.camel.spring.boot.CamelSpringBootInitializationException: java.lang.IllegalArgumentException: java.lang.IllegalStateException: Unable to add component `mongodb3-0-2` to Camel managed services
      	at org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:251) ~[camel-spring-boot-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:57) ~[camel-spring-boot-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE]
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE]
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404) ~[spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361) ~[spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:898) ~[spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554) ~[spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE]
      	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.12.RELEASE.jar!/:2.3.12.RELEASE]
      	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755) [spring-boot-2.3.12.RELEASE.jar!/:2.3.12.RELEASE]
      	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.3.12.RELEASE.jar!/:2.3.12.RELEASE]
      	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402) [spring-boot-2.3.12.RELEASE.jar!/:2.3.12.RELEASE]
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) [spring-boot-2.3.12.RELEASE.jar!/:2.3.12.RELEASE]
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1247) [spring-boot-2.3.12.RELEASE.jar!/:2.3.12.RELEASE]
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1236) [spring-boot-2.3.12.RELEASE.jar!/:2.3.12.RELEASE]
      	at io.syndesis.example.Application.main(Application.java:13) [classes!/:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_312]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_312]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_312]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_312]
      	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [project-0.1-SNAPSHOT.jar:na]
      	at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) [project-0.1-SNAPSHOT.jar:na]
      	at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [project-0.1-SNAPSHOT.jar:na]
      	at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467) [project-0.1-SNAPSHOT.jar:na]
      Caused by: java.lang.IllegalArgumentException: java.lang.IllegalStateException: Unable to add component `mongodb3-0-2` to Camel managed services
      	at io.syndesis.integration.runtime.sb.IntegrationRuntimeAutoConfiguration$1.beforeApplicationStart(IntegrationRuntimeAutoConfiguration.java:95) ~[integration-runtime-springboot-1.13.0.fuse-7_10_0-00010-redhat-00001.jar!/:1.13.0.fuse-7_10_0-00010-redhat-00001]
      	at org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:153) ~[camel-spring-boot-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	... 24 common frames omitted
      Caused by: java.lang.IllegalStateException: Unable to add component `mongodb3-0-2` to Camel managed services
      	at io.syndesis.integration.runtime.handlers.ConnectorStepHandler.handle(ConnectorStepHandler.java:147) ~[integration-runtime-1.13.0.fuse-7_10_0-00010-redhat-00001.jar!/:1.13.0.fuse-7_10_0-00010-redhat-00001]
      	at io.syndesis.integration.runtime.IntegrationRouteBuilder.configureFlow(IntegrationRouteBuilder.java:224) ~[integration-runtime-1.13.0.fuse-7_10_0-00010-redhat-00001.jar!/:1.13.0.fuse-7_10_0-00010-redhat-00001]
      	at io.syndesis.integration.runtime.IntegrationRouteBuilder.configure(IntegrationRouteBuilder.java:143) ~[integration-runtime-1.13.0.fuse-7_10_0-00010-redhat-00001.jar!/:1.13.0.fuse-7_10_0-00010-redhat-00001]
      	at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:463) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:403) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:384) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext$3.call(DefaultCamelContext.java:1024) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext$3.call(DefaultCamelContext.java:1021) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3279) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:1021) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at io.syndesis.integration.runtime.sb.IntegrationRuntimeAutoConfiguration$1.beforeApplicationStart(IntegrationRuntimeAutoConfiguration.java:93) ~[integration-runtime-springboot-1.13.0.fuse-7_10_0-00010-redhat-00001.jar!/:1.13.0.fuse-7_10_0-00010-redhat-00001]
      	... 25 common frames omitted
      Caused by: java.lang.IllegalStateException: Unable to set property: `mongoConnection` on component: org.apache.camel.component.mongodb3.MongoDbComponent@17d238b1
      	at io.syndesis.integration.component.proxy.ComponentProxyComponent.configureDelegateComponent(ComponentProxyComponent.java:357) ~[integration-component-proxy-1.13.0.fuse-7_10_0-00010-redhat-00001.jar!/:1.13.0.fuse-7_10_0-00010-redhat-00001]
      	at io.syndesis.integration.component.proxy.ComponentProxyComponent.doStart(ComponentProxyComponent.java:178) ~[integration-component-proxy-1.13.0.fuse-7_10_0-00010-redhat-00001.jar!/:1.13.0.fuse-7_10_0-00010-redhat-00001]
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1487) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1447) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at io.syndesis.integration.runtime.handlers.ConnectorStepHandler.handle(ConnectorStepHandler.java:145) ~[integration-runtime-1.13.0.fuse-7_10_0-00010-redhat-00001.jar!/:1.13.0.fuse-7_10_0-00010-redhat-00001]
      	... 35 common frames omitted
      Caused by: java.lang.IllegalArgumentException: Could not find a suitable setter for property: mongoConnection as there isn't a setter method with same type: com.mongodb.MongoClient nor type conversion possible: No type converter available to convert from type: com.mongodb.MongoClient to the required type: com.mongodb.client.MongoClient with value Mongo{options=MongoClientOptions{description='null', applicationName='null', compressors='[]', readPreference=primary, writeConcern=WriteConcern{w=null, wTimeout=null ms, fsync=null, journal=null, retryWrites=false, readConcern=com.mongodb.ReadConcern@0, codecRegistry=org.bson.codecs.configuration.ProvidersCodecRegistry@d4b4f093, serverSelector=null, clusterListeners=[], commandListeners=[], minConnectionsPerHost=0, maxConnectionsPerHost=100, threadsAllowedToBlockForConnectionMultiplier=5, serverSelectionTimeout=30000, maxWaitTime=120000, maxConnectionIdleTime=0, maxConnectionLifeTime=0, connectTimeout=10000, socketTimeout=0, socketKeepAlive=true, sslEnabled=false, sslInvalidHostNamesAllowed=false, sslContext=null, alwaysUseMBeans=false, heartbeatFrequency=10000, minHeartbeatFrequency=500, heartbeatConnectTimeout=20000, heartbeatSocketTimeout=20000, localThreshold=15, requiredReplicaSetName='null', dbDecoderFactory=com.mongodb.DefaultDBDecoder$1@27e32fe4, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@c3c4c1c, socketFactory=null, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=[]}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, keepAlive=true, receiveBufferSize=0, sendBufferSize=0}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverListeners='[]', serverMonitorListeners='[]'}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=20000, readTimeoutMS=20000, keepAlive=true, receiveBufferSize=0, sendBufferSize=0}}}
      	at org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:618) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:644) ~[camel-core-2.23.2.fuse-7_10_0-00016-redhat-00001.jar!/:2.23.2.fuse-7_10_0-00016-redhat-00001]
      	at io.syndesis.integration.component.proxy.ComponentProxyComponent.configureDelegateComponent(ComponentProxyComponent.java:353) ~[integration-component-proxy-1.13.0.fuse-7_10_0-00010-redhat-00001.jar!/:1.13.0.fuse-7_10_0-00010-redhat-00001]
      	... 41 common frames omitted
      

      Reproducible on Fuse Online build AR7, not reproducible on Fuse Online build AR6.
      I have uploaded the integration and log to the attachments.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: