org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:573) ~[camel-core-2.21.0.jar:2.21.0] Caused by: java.lang.ClassNotFoundException: org.elasticsearch.ElasticsearchStatusException
I'm seeing an ElasticsearchStatusException thrown when trying to initialize the Producer in a simple demo project I am starting. All of the files I'm seeing as missing were also moved recently by Elasticsearch but supposedly this was for 6.2 and not done before the 6.1.1 which camel is using. Am I missing a direct dependency that I need to include for elasticsearch or has something gone missing in the component's dependencies? You can see my code at: https://github.com/jamesET/elastic-demo Elasticsearch's change: https://github.com/elastic/elasticsearch/pull/28180 My stack trace: 2018-06-11 00:23:20.345 ERROR 10692 --- [ main] > o.s.test.context.TestContextManager : Caught exception while > allowing TestExecutionListener > [org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@2e3fc542] > to prepare test instance > [com.justjames.elasticdemo.ElasticDemoApplicationTests@768b970c] > java.lang.IllegalStateException: Failed to load ApplicationContext > at > org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext( > DefaultCacheAwareContextLoaderDelegate.java:124) > ~[spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.test.context.support.DefaultTestContext.getApplicationContext( > DefaultTestContext.java:83) > ~[spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies( > DependencyInjectionTestExecutionListener.java:117) > ~[spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance( > DependencyInjectionTestExecutionListener.java:83) > ~[spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener.prepareTestInstance( > SpringBootDependencyInjectionTestExecutionListener.java:44) > ~[spring-boot-test-autoconfigure-1.5.13.RELEASE.jar:1.5.13.RELEASE] > at org.springframework.test.context.TestContextManager.prepareTestInstance( > TestContextManager.java:230) > ~[spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest( > SpringJUnit4ClassRunner.java:228) > [spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall( > SpringJUnit4ClassRunner.java:287) > [spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at org.junit.internal.runners.model.ReflectiveCallable.run( > ReflectiveCallable.java:12) [junit-4.12.jar:4.12] > at > org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock( > SpringJUnit4ClassRunner.java:289) > [spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild( > SpringJUnit4ClassRunner.java:247) > [spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild( > SpringJUnit4ClassRunner.java:94) > [spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) > [junit-4.12.jar:4.12] > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) > [junit-4.12.jar:4.12] > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) > [junit-4.12.jar:4.12] > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) > [junit-4.12.jar:4.12] > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) > [junit-4.12.jar:4.12] > at > org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate( > RunBeforeTestClassCallbacks.java:61) > [spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate( > RunAfterTestClassCallbacks.java:70) > [spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at org.junit.runners.ParentRunner.run(ParentRunner.java:363) > [junit-4.12.jar:4.12] > at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run( > SpringJUnit4ClassRunner.java:191) > [spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run( > JUnit4TestReference.java:86) [.cp/:na] > at org.eclipse.jdt.internal.junit.runner.TestExecution.run( > TestExecution.java:38) [.cp/:na] > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( > RemoteTestRunner.java:459) [.cp/:na] > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( > RemoteTestRunner.java:678) [.cp/:na] > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run( > RemoteTestRunner.java:382) [.cp/:na] > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( > RemoteTestRunner.java:192) [.cp/:na] > Caused by: org.apache.camel.RuntimeCamelException: > org.apache.camel.FailedToCreateRouteException: Failed to create route > route1: Route(route1)[[From[direct:index]] -> [To[elasticsearch-rest... > because of Failed to create Producer for endpoint: > elasticsearch-rest://my-application?hostAddresses=192.168.1.78%3A9200&indexName=informix&indexType=sysptprof&operation=Index. > Reason: java.lang.NoClassDefFoundError: > org/elasticsearch/ElasticsearchStatusException > at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException( > ObjectHelper.java:1830) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.spring.SpringCamelContext.start( > SpringCamelContext.java:136) ~[camel-spring-2.21.0.jar:2.21.0] > at org.apache.camel.spring.SpringCamelContext.onApplicationEvent( > SpringCamelContext.java:174) ~[camel-spring-2.21.0.jar:2.21.0] > at > org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener( > SimpleApplicationEventMulticaster.java:172) > ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener( > SimpleApplicationEventMulticaster.java:165) > ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent( > SimpleApplicationEventMulticaster.java:139) > ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.publishEvent( > AbstractApplicationContext.java:393) > ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.publishEvent( > AbstractApplicationContext.java:347) > ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.finishRefresh( > AbstractApplicationContext.java:883) > ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at org.springframework.context.support.AbstractApplicationContext.refresh( > AbstractApplicationContext.java:546) > ~[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at org.springframework.boot.SpringApplication.refresh( > SpringApplication.java:693) > ~[spring-boot-1.5.13.RELEASE.jar:1.5.13.RELEASE] > at org.springframework.boot.SpringApplication.refreshContext( > SpringApplication.java:360) > ~[spring-boot-1.5.13.RELEASE.jar:1.5.13.RELEASE] > at org.springframework.boot.SpringApplication.run( > SpringApplication.java:303) > ~[spring-boot-1.5.13.RELEASE.jar:1.5.13.RELEASE] > at > org.springframework.boot.test.context.SpringBootContextLoader.loadContext( > SpringBootContextLoader.java:121) > ~[spring-boot-test-1.5.13.RELEASE.jar:1.5.13.RELEASE] > at > org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal( > DefaultCacheAwareContextLoaderDelegate.java:98) > ~[spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > at > org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext( > DefaultCacheAwareContextLoaderDelegate.java:116) > ~[spring-test-4.3.17.RELEASE.jar:4.3.17.RELEASE] > ... 26 common frames omitted > Caused by: org.apache.camel.FailedToCreateRouteException: Failed to > create route route1: Route(route1)[[From[direct:index]] -> > [To[elasticsearch-rest... because of Failed to create Producer for > endpoint: > elasticsearch-rest://my-application?hostAddresses=192.168.1.78%3A9200&indexName=informix&indexType=sysptprof&operation=Index. > Reason: java.lang.NoClassDefFoundError: > org/elasticsearch/ElasticsearchStatusException > at org.apache.camel.impl.RouteService.warmUp(RouteService.java:147) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes( > DefaultCamelContext.java:3947) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices( > DefaultCamelContext.java:3854) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes( > DefaultCamelContext.java:3640) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.DefaultCamelContext.doStartCamel( > DefaultCamelContext.java:3492) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.DefaultCamelContext.access$000( > DefaultCamelContext.java:209) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.DefaultCamelContext$2.call( > DefaultCamelContext.java:3251) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.DefaultCamelContext$2.call( > DefaultCamelContext.java:3247) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader( > DefaultCamelContext.java:3270) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.DefaultCamelContext.doStart( > DefaultCamelContext.java:3247) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.DefaultCamelContext.start( > DefaultCamelContext.java:3163) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.spring.SpringCamelContext.start( > SpringCamelContext.java:133) ~[camel-spring-2.21.0.jar:2.21.0] > ... 40 common frames omitted > Caused by: org.apache.camel.FailedToCreateProducerException: Failed to > create Producer for endpoint: > elasticsearch-rest://my-application?hostAddresses=192.168.1.78%3A9200&indexName=informix&indexType=sysptprof&operation=Index. > Reason: java.lang.NoClassDefFoundError: > org/elasticsearch/ElasticsearchStatusException > at org.apache.camel.impl.ProducerCache.doGetProducer( > ProducerCache.java:584) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.ProducerCache.acquireProducer( > ProducerCache.java:168) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:248) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startServices( > ServiceHelper.java:104) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.processor.RedeliveryErrorHandler.doStart( > RedeliveryErrorHandler.java:1472) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.support.ChildServiceSupport.start( > ChildServiceSupport.java:44) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.support.ChildServiceSupport.start( > ChildServiceSupport.java:31) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startServices( > ServiceHelper.java:104) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.processor.interceptor.DefaultChannel.doStart( > DefaultChannel.java:160) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startServices( > ServiceHelper.java:104) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.processor.DelegateAsyncProcessor.doStart( > DelegateAsyncProcessor.java:80) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.RouteService.startChildService( > RouteService.java:370) ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:196) > ~[camel-core-2.21.0.jar:2.21.0] > at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145) > ~[camel-core-2.21.0.jar:2.21.0] > ... 52 common frames omitted > Caused by: java.lang.NoClassDefFoundError: > org/elasticsearch/ElasticsearchStatusException > at > org.apache.camel.component.elasticsearch.ElasticsearchEndpoint.createProducer( > ElasticsearchEndpoint.java:46) > ~[camel-elasticsearch-rest-2.21.0.jar:2.21.0] > at org.apache.camel.impl.ProducerCache.doGetProducer( > ProducerCache.java:573) ~[camel-core-2.21.0.jar:2.21.0] > ... 78 common frames omitted > Caused by: java.lang.ClassNotFoundException: > org.elasticsearch.ElasticsearchStatusException > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > ~[na:1.8.0_111] > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_111] > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > ~[na:1.8.0_111] > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_111] > ... 80 common frames omitted > >