Got it working now by adding the following dependency <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.3</version> </dependency>
So i the end the problem got solved by 1. Removing the ActiveMQ dependency 2. Adding the Apache HTTP component Wondering why it was not working with ActiveMQ enabled. Thanks everyone for the assistance, much appreciated! Regards, /Tom On Fri, Jan 10, 2020 at 7:16 PM Tom Coudyzer <tcdm...@gmail.com> wrote: > Hi, > > thanks for keeps this going ! > > This is what I get > > ProtectionDomain > > (file:/C:/Users/johndoe/.m2/repository/org/apache/activemq/activemq-all/5.15.10/activemq-all-5.15.10.jar > <no signer certificates>) > jdk.internal.loader.ClassLoaders$AppClassLoader@277050dc > <no principals> > java.security.Permissions@3d51f06e ( > ("java.io.FilePermission" > "C:\Users\johndoe\.m2\repository\org\apache\activemq\activemq-all\5.15.10\activemq-all-5.15.10.jar" > "read") > ("java.lang.RuntimePermission" "exitVM") > ) > > When I remove the ActiveMQ from the POM I get a different error > message and a missing class ( java.lang.NoClassDefFoundError: > org/apache/http/conn/ssl/DefaultHostnameVerifier ) > > > > org.apache.camel.CamelExecutionException: Exception occurred during > execution on the exchange: Exchange[ID-C0000343-1578679975157-0-1] > at > org.apache.camel.CamelExecutionException.wrapCamelExecutionException(CamelExecutionException.java:47) > at > org.apache.camel.support.ExchangeHelper.extractResultBody(ExchangeHelper.java:646) > at > org.apache.camel.impl.engine.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:568) > at > org.apache.camel.impl.engine.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:564) > at > org.apache.camel.impl.engine.DefaultProducerTemplate.requestBodyAndHeaders(DefaultProducerTemplate.java:414) > at > camel.samples.aperio.AperioVersionRouteTest.testResponseHasApiFrameworkVersion(AperioVersionRouteTest.java:94) > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:566) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) > at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) > at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) > at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) > at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) > at org.junit.rules.RunRules.evaluate(RunRules.java:20) > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) > at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48) > at org.junit.rules.RunRules.evaluate(RunRules.java:20) > at org.junit.runners.ParentRunner.run(ParentRunner.java:363) > at > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209) > Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to > resolve endpoint: http://127.0.0.1:18002/api/service due to: Cannot auto > create component: http > at > org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:793) > at > org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:57) > at > org.apache.camel.support.ExchangeHelper.resolveEndpoint(ExchangeHelper.java:95) > at > org.apache.camel.processor.SendDynamicProcessor.resolveEndpoint(SendDynamicProcessor.java:238) > at > org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:135) > at > org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryState.run(RedeliveryErrorHandler.java:476) > at > org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:200) > at > org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:61) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:88) > at > org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:228) > at > org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) > at > org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:189) > at > org.apache.camel.processor.SharedCamelInternalProcessor$1.process(SharedCamelInternalProcessor.java:90) > at > org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:78) > at > org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:87) > at > org.apache.camel.impl.engine.DefaultProducerCache.send(DefaultProducerCache.java:179) > at > org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:176) > at > org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:172) > at > org.apache.camel.impl.engine.DefaultProducerTemplate.requestBodyAndHeaders(DefaultProducerTemplate.java:413) > ... 31 more > Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create > component: http > at > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(AbstractCamelContext.java:506) > at > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(AbstractCamelContext.java:464) > at > org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:735) > ... 49 more > Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create > component: http > at > org.apache.camel.impl.engine.AbstractCamelContext.initComponent(AbstractCamelContext.java:567) > at > org.apache.camel.impl.engine.AbstractCamelContext.access$000(AbstractCamelContext.java:164) > at > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCamelContext.java:492) > at > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCamelContext.java:488) > at > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) > at > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(AbstractCamelContext.java:488) > ... 51 more > Caused by: org.apache.camel.RuntimeCamelException: > java.lang.reflect.InvocationTargetException > at org.apache.camel.support.ObjectHelper.newInstance(ObjectHelper.java:222) > at > org.apache.camel.impl.engine.DefaultInjector.newInstance(DefaultInjector.java:66) > at > org.apache.camel.impl.engine.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:73) > at > org.apache.camel.impl.engine.AbstractCamelContext.initComponent(AbstractCamelContext.java:560) > ... 56 more > Caused by: java.lang.reflect.InvocationTargetException > at > java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at > java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) > at org.apache.camel.support.ObjectHelper.newInstance(ObjectHelper.java:220) > ... 59 more > Caused by: java.lang.NoClassDefFoundError: > org/apache/http/conn/ssl/DefaultHostnameVerifier > at > org.apache.camel.component.http.HttpComponent.<init>(HttpComponent.java:88) > at > org.apache.camel.component.http.HttpComponent.<init>(HttpComponent.java:126) > ... 64 more > Caused by: java.lang.ClassNotFoundException: > org.apache.http.conn.ssl.DefaultHostnameVerifier > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) > ... 66 more > > > On Fri, Jan 10, 2020 at 6:59 PM Romain Manni-Bucau <rmannibu...@gmail.com> > wrote: > >> Hmm, can you log next the println >> DefaultManagementAgent.class.getProtectionDomain() to chck the source of >> this class? The line in the stack does not match sources. Do you have some >> camel eclipse plugin? >> >> Le ven. 10 janv. 2020 à 18:35, Tom Coudyzer <tcdm...@gmail.com> a écrit : >> >> > This is the output of the classpath from the Junit test class, seems >> valid >> > to me; unless i have overlooked something >> > >> > java.class.path >> > >> > >> c:\GIT\sandbox\com.xyz.camel.samples\camel.samples\camel.samples.apiLib\target\test-classes >> > >> > >> c:\GIT\sandbox\com.xyz.camel.samples\camel.samples\camel.samples.apiLib\target\classes >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-core\3.1.0-SNAPSHOT\camel-core-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-core-engine\3.1.0-SNAPSHOT\camel-core-engine-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\spi-annotations\3.1.0-SNAPSHOT\spi-annotations-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-api\3.1.0-SNAPSHOT\camel-api-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-base\3.1.0-SNAPSHOT\camel-base-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-jaxp\3.1.0-SNAPSHOT\camel-jaxp-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-management-api\3.1.0-SNAPSHOT\camel-management-api-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-util\3.1.0-SNAPSHOT\camel-util-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-util-json\3.1.0-SNAPSHOT\camel-util-json-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-bean\3.1.0-SNAPSHOT\camel-bean-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-browse\3.1.0-SNAPSHOT\camel-browse-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-caffeine-lrucache\3.1.0-SNAPSHOT\camel-caffeine-lrucache-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\github\ben-manes\caffeine\caffeine\2.8.0\caffeine-2.8.0.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-controlbus\3.1.0-SNAPSHOT\camel-controlbus-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-dataformat\3.1.0-SNAPSHOT\camel-dataformat-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-dataset\3.1.0-SNAPSHOT\camel-dataset-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-direct\3.1.0-SNAPSHOT\camel-direct-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-directvm\3.1.0-SNAPSHOT\camel-directvm-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-file\3.1.0-SNAPSHOT\camel-file-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-language\3.1.0-SNAPSHOT\camel-language-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-log\3.1.0-SNAPSHOT\camel-log-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-mock\3.1.0-SNAPSHOT\camel-mock-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-ref\3.1.0-SNAPSHOT\camel-ref-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-rest\3.1.0-SNAPSHOT\camel-rest-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-saga\3.1.0-SNAPSHOT\camel-saga-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-scheduler\3.1.0-SNAPSHOT\camel-scheduler-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-seda\3.1.0-SNAPSHOT\camel-seda-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-stub\3.1.0-SNAPSHOT\camel-stub-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-timer\3.1.0-SNAPSHOT\camel-timer-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-validator\3.1.0-SNAPSHOT\camel-validator-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-vm\3.1.0-SNAPSHOT\camel-vm-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-xpath\3.1.0-SNAPSHOT\camel-xpath-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-xslt\3.1.0-SNAPSHOT\camel-xslt-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-jms\3.1.0-SNAPSHOT\camel-jms-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-support\3.1.0-SNAPSHOT\camel-support-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-spring\3.1.0-SNAPSHOT\camel-spring-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-main\3.1.0-SNAPSHOT\camel-main-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-core-xml\3.1.0-SNAPSHOT\camel-core-xml-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\geronimo\specs\geronimo-jms_2.0_spec\1.0-alpha-2\geronimo-jms_2.0_spec-1.0-alpha-2.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-http\3.1.0-SNAPSHOT\camel-http-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-cloud\3.1.0-SNAPSHOT\camel-cloud-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-http-common\3.1.0-SNAPSHOT\camel-http-common-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-http-base\3.1.0-SNAPSHOT\camel-http-base-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-attachments\3.1.0-SNAPSHOT\camel-attachments-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\activemq\activemq-all\5.15.10\activemq-all-5.15.10.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.10.0\jackson-databind-2.10.0.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.10.0\jackson-annotations-2.10.0.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.10.0\jackson-core-2.10.0.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-context\5.1.6.RELEASE\spring-context-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-test\5.1.6.RELEASE\spring-test-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-core\5.1.6.RELEASE\spring-core-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-jcl\5.1.6.RELEASE\spring-jcl-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-beans\5.1.6.RELEASE\spring-beans-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-web\5.1.6.RELEASE\spring-web-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-aop\5.1.6.RELEASE\spring-aop-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-jdbc\5.1.6.RELEASE\spring-jdbc-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-orm\5.1.6.RELEASE\spring-orm-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-jms\5.1.6.RELEASE\spring-jms-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-messaging\5.1.6.RELEASE\spring-messaging-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-context-support\5.1.6.RELEASE\spring-context-support-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-tx\5.1.6.RELEASE\spring-tx-5.1.6.RELEASE.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\springframework\spring-expression\5.1.6.RELEASE\spring-expression-5.1.6.RELEASE.jar >> > C:\Users\johndoe\.m2\repository\junit\junit\4.12\junit-4.12.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-test\3.1.0-SNAPSHOT\camel-test-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-management\3.1.0-SNAPSHOT\camel-management-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\camel\camel-test-spring\3.1.0-SNAPSHOT\camel-test-spring-3.1.0-SNAPSHOT.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\slf4j\slf4j-log4j12\1.7.29\slf4j-log4j12-1.7.29.jar >> > C:\Users\johndoe\.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\google\code\gson\gson\2.8.6\gson-2.8.6.jar >> > >> > >> C:\Users\johndoe\.m2\repository\io\undertow\undertow-core\1.4.0.Final\undertow-core-1.4.0.Final.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\jboss\logging\jboss-logging\3.2.1.Final\jboss-logging-3.2.1.Final.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\jboss\xnio\xnio-api\3.3.6.Final\xnio-api-3.3.6.Final.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\jboss\xnio\xnio-nio\3.3.6.Final\xnio-nio-3.3.6.Final.jar >> > >> > >> C:\Users\johndoe\.m2\repository\io\undertow\undertow-core\1.4.0.Final\undertow-core-1.4.0.Final-tests.jar >> > >> > >> C:\Users\johndoe\.m2\repository\io\undertow\undertow-servlet\1.4.13.Final\undertow-servlet-1.4.13.Final.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\jboss\spec\javax\servlet\jboss-servlet-api_3.1_spec\1.0.0.Final\jboss-servlet-api_3.1_spec-1.0.0.Final.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\jboss\spec\javax\annotation\jboss-annotations-api_1.2_spec\1.0.0.Final\jboss-annotations-api_1.2_spec-1.0.0.Final.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\httpcomponents\httpclient\4.3.6\httpclient-4.3.6.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\httpcomponents\httpcore\4.3.3\httpcore-4.3.3.jar >> > >> > >> C:\Users\johndoe\.m2\repository\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar >> > >> > >> C:\Users\johndoe\.m2\repository\commons-codec\commons-codec\1.6\commons-codec-1.6.jar >> > >> > >> C:\Users\johndoe\.m2\repository\io\swagger\swagger-annotations\1.5.10\swagger-annotations-1.5.10.jar >> > >> C:\Users\johndoe\.m2\repository\com\networknt\server\0.1.1\server-0.1.1.jar >> > >> C:\Users\johndoe\.m2\repository\com\networknt\config\0.1.1\config-0.1.1.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\owasp\encoder\encoder\1.2\encoder-1.2.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\networknt\security\0.1.1\security-0.1.1.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\networknt\utility\0.1.1\utility-0.1.1.jar >> > >> > >> C:\Users\johndoe\.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\bitbucket\b_c\jose4j\0.5.2\jose4j-0.5.2.jar >> > >> > >> C:\Users\johndoe\.m2\repository\io\swagger\swagger-parser\1.0.19\swagger-parser-1.0.19.jar >> > >> > >> C:\Users\johndoe\.m2\repository\io\swagger\swagger-core\1.5.8\swagger-core-1.5.8.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\apache\commons\commons-lang3\3.2.1\commons-lang3-3.2.1.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-joda\2.4.5\jackson-datatype-joda-2.4.5.jar >> > >> C:\Users\johndoe\.m2\repository\joda-time\joda-time\2.2\joda-time-2.2.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\fasterxml\jackson\dataformat\jackson-dataformat-yaml\2.4.5\jackson-dataformat-yaml-2.4.5.jar >> > >> C:\Users\johndoe\.m2\repository\org\yaml\snakeyaml\1.12\snakeyaml-1.12.jar >> > >> > >> C:\Users\johndoe\.m2\repository\io\swagger\swagger-models\1.5.8\swagger-models-1.5.8.jar >> > >> C:\Users\johndoe\.m2\repository\com\google\guava\guava\18.0\guava-18.0.jar >> > >> > >> C:\Users\johndoe\.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar >> > >> > >> C:\Users\johndoe\.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.jar >> > >> C:\Users\johndoe\.m2\repository\com\networknt\audit\0.1.1\audit-0.1.1.jar >> > C:\Users\johndoe\.m2\repository\com\networknt\info\0.1.1\info-0.1.1.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\networknt\validator\0.1.1\validator-0.1.1.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\networknt\json-schema-validator\0.1.1\json-schema-validator-0.1.1.jar >> > >> > >> C:\Users\johndoe\.m2\repository\org\slf4j\slf4j-ext\1.7.21\slf4j-ext-1.7.21.jar >> > >> > >> C:\Users\johndoe\.m2\repository\ch\qos\cal10n\cal10n-api\0.8.1\cal10n-api-0.8.1.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\jayway\jsonpath\json-path\2.2.0\json-path-2.2.0.jar >> > >> > >> C:\Users\johndoe\.m2\repository\net\minidev\json-smart\2.2.1\json-smart-2.2.1.jar >> > >> > >> C:\Users\johndoe\.m2\repository\net\minidev\accessors-smart\1.1\accessors-smart-1.1.jar >> > C:\Users\johndoe\.m2\repository\org\ow2\asm\asm\5.0.3\asm-5.0.3.jar >> > >> > >> C:\Users\johndoe\.m2\repository\com\sun\activation\javax.activation\1.2.0\javax.activation-1.2.0.jar >> > c:\Eclipse\configuration\org.eclipse.osgi\410\0\.cp >> > c:\Eclipse\configuration\org.eclipse.osgi\409\0\.cp >> > >> > On Fri, Jan 10, 2020 at 5:34 PM Romain Manni-Bucau < >> rmannibu...@gmail.com> >> > wrote: >> > >> > > Maybe override setUp method with >> > > >> > > >> > > System.out.println("java.class.path"); >> > > super.setUp(); >> > > >> > > To ensure you run what you think and that eclipse uses an up to date >> > > dependencies model. >> > > >> > > Le ven. 10 janv. 2020 à 17:31, Francois Papon < >> > > francois.pa...@openobject.fr> >> > > a écrit : >> > > >> > > > Any chances to share your project? >> > > > >> > > > I can try to reproduce. >> > > > >> > > > regards, >> > > > >> > > > François >> > > > fpa...@apache.org >> > > > >> > > > Le 10/01/2020 à 17:26, Tom Coudyzer a écrit : >> > > > > Thanks, got the 3.1.0-SNAPSHOTS libraries now on the classpath but >> > > still >> > > > > the same issue. >> > > > > >> > > > > On Fri, Jan 10, 2020 at 4:23 PM Andrea Cosentino < >> anco...@gmail.com> >> > > > wrote: >> > > > > >> > > > >> The snapshot repository is >> > > > >> >> > > > >> https://repository.apache.org/snapshots/ >> > > > >> >> > > > >> You can also try to build Camel locally. >> > > > >> >> > > > >> Il giorno ven 10 gen 2020 alle ore 16:21 Tom Coudyzer < >> > > > tcdm...@gmail.com> >> > > > >> ha scritto: >> > > > >> >> > > > >>> Hi, >> > > > >>> >> > > > >>> Sorry but, what is the plugin repository for getting access to >> the >> > > > >> SNAPSHOT >> > > > >>> via Maven, guess it's not available from mvnrepository.com? >> > > > >>> >> > > > >>> Thank you. Regards /Tom >> > > > >>> >> > > > >>> On Fri, Jan 10, 2020 at 4:08 PM Francois Papon < >> > > > >>> francois.pa...@openobject.fr> >> > > > >>> wrote: >> > > > >>> >> > > > >>>> Hi, >> > > > >>>> >> > > > >>>> Can you try with the 3.1.0-SNAPSHOT and the -U maven option? >> > > > >>>> >> > > > >>>> regards, >> > > > >>>> >> > > > >>>> François >> > > > >>>> fpa...@apache.org >> > > > >>>> >> > > > >>>> Le 10/01/2020 à 16:02, Tom Coudyzer a écrit : >> > > > >>>>> Hi, >> > > > >>>>> >> > > > >>>>> Still no luck. Changed it to camel-core-engine and cleared the >> > > Maven >> > > > >>>> cache >> > > > >>>>> after that. >> > > > >>>>> >> > > > >>>>> This is the code I'm testing (route + JUnit test) >> > > > >>>>> >> > > > >>>>> Test >> > > > >>>>> ===== >> > > > >>>>> >> > > > >>>>> import java.util.HashMap; >> > > > >>>>> >> > > > >>>>> import org.apache.camel.builder.RouteBuilder; >> > > > >>>>> import org.apache.camel.test.junit4.CamelTestSupport; >> > > > >>>>> import org.junit.Test; >> > > > >>>>> >> > > > >>>>> import com.google.gson.JsonObject; >> > > > >>>>> >> > > > >>>>> import camel.samples.routes; >> > > > >>>>> import camel.samples.utils.GsonUtils; >> > > > >>>>> >> > > > >>>>> public class APIRouteTest extends CamelTestSupport { >> > > > >>>>> >> > > > >>>>> @Override >> > > > >>>>> protected RouteBuilder createRouteBuilder() throws >> Exception { >> > > > >>>>> return new APIRoute(); >> > > > >>>>> } >> > > > >>>>> >> > > > >>>>> >> > > > >>>>> @Test >> > > > >>>>> public void testResponseHasId() { >> > > > >>>>> >> > > > >>>>> HashMap<String, Object> headers = new HashMap<>(); >> > > > >>>>> headers.put("apiURL"," >> > > http://127.0.0.1:18002/api/rest/metadata >> > > > >> "); >> > > > >>>>> String apiResponse = >> > > > >>>> template.requestBodyAndHeaders("direct:apiCall", >> > > > >>>>> "", headers, String.class); >> > > > >>>>> >> > > > >>>>> JsonObject jsonObject = GsonUtils.fromJson( apiResponse, >> > > > >>>>> JsonObject.class); >> > > > >>>>> >> > > > >>>>> assertTrue("Id key exists.", jsonObject.has("id")); >> > > > >>>>> >> > > > >>>>> } >> > > > >>>>> >> > > > >>>>> >> > > > >>>>> Route >> > > > >>>>> ====== >> > > > >>>>> >> > > > >>>>> import org.apache.camel.Exchange; >> > > > >>>>> import org.apache.camel.builder.RouteBuilder; >> > > > >>>>> >> > > > >>>>> >> > > > >>>>> public class APIRoute extends RouteBuilder { >> > > > >>>>> >> > > > >>>>> @Override >> > > > >>>>> public void configure() throws Exception { >> > > > >>>>> >> > > > >>>>> from("direct:apiCall") >> > > > >>>>> .log("URL -> ${header.apiURL}") >> > > > >>>>> .to("log:?level=INFO&showBody=true") >> > > > >>>>> .setHeader(Exchange.HTTP_METHOD, constant("GET")) >> > > > >>>>> .setHeader(Exchange.CONTENT_TYPE, >> constant("application/json")) >> > > > >>>>> .toD("${header.apiURL}") >> > > > >>>>> .to("log:?level=INFO&showBody=true"); >> > > > >>>>> >> > > > >>>>> } >> > > > >>>>> >> > > > >>>>> On Fri, Jan 10, 2020 at 3:54 PM Andrea Cosentino < >> > > anco...@gmail.com> >> > > > >>>> wrote: >> > > > >>>>>> Change camel-core to camel-core-engine. >> > > > >>>>>> >> > > > >>>>>> Il giorno ven 10 gen 2020 alle ore 15:48 Tom Coudyzer < >> > > > >>>> tcdm...@gmail.com> >> > > > >>>>>> ha scritto: >> > > > >>>>>> >> > > > >>>>>>> Hi, >> > > > >>>>>>> >> > > > >>>>>>> This is the POM >> > > > >>>>>>> >> > > > >>>>>>> <project xmlns="http://maven.apache.org/POM/4.0.0" >> > > > >>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> > > > >>>>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >> > > > >>>>>>> http://maven.apache.org/xsd/maven-4.0.0.xsd"> >> > > > >>>>>>> <modelVersion>4.0.0</modelVersion> >> > > > >>>>>>> <groupId>com.xyz</groupId> >> > > > >>>>>>> <artifactId>camel.samples</artifactId> >> > > > >>>>>>> <version>0.0.1-SNAPSHOT</version> >> > > > >>>>>>> <packaging>pom</packaging> >> > > > >>>>>>> >> > > > >>>>>>> <properties> >> > > > >>>>>>> >> > > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> >> > > > >>>>>>> <maven.compiler.source>11</maven.compiler.source> >> > > > >>>>>>> <maven.compiler.target>11</maven.compiler.target> >> > > > >>>>>>> <camel-version>3.0.0</camel-version> >> > > > >>>>>>> <slf4j-version>1.7.29</slf4j-version> >> > > > >>>>>>> <activemq-version>5.15.10</activemq-version> >> > > > >>>>>>> <jackson-version>2.10.0</jackson-version> >> > > > >>>>>>> <spring-version>5.1.6.RELEASE</spring-version> >> > > > >>>>>>> <spring-boot-version>2.1.4.RELEASE</spring-boot-version> >> > > > >>>>>>> <junit-version>4.12</junit-version> >> > > > >>>>>>> <version.undertow>1.4.0.Final</version.undertow> >> > > > >>>>>>> <version.swagger>1.5.10</version.swagger> >> > > > >>>>>>> <version.framework>0.1.1</version.framework> >> > > > >>>>>>> </properties> >> > > > >>>>>>> >> > > > >>>>>>> <dependencies> >> > > > >>>>>>> >> > > > >>>>>>> <!-- Camel --> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.apache.camel</groupId> >> > > > >>>>>>> <artifactId>camel-core</artifactId> >> > > > >>>>>>> <version>${camel-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.apache.camel</groupId> >> > > > >>>>>>> <artifactId>camel-jms</artifactId> >> > > > >>>>>>> <version>${camel-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.apache.camel</groupId> >> > > > >>>>>>> <artifactId>camel-http</artifactId> >> > > > >>>>>>> <version>${camel-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <!-- ActiveMQ --> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.apache.activemq</groupId> >> > > > >>>>>>> <artifactId>activemq-all</artifactId> >> > > > >>>>>>> <version>${activemq-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>com.fasterxml.jackson.core</groupId> >> > > > >>>>>>> <artifactId>jackson-databind</artifactId> >> > > > >>>>>>> <version>${jackson-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <!-- Spring --> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-context</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-test</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-core</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-beans</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-web</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-aop</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-jdbc</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-orm</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-jms</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-context-support</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-tx</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.springframework</groupId> >> > > > >>>>>>> <artifactId>spring-expression</artifactId> >> > > > >>>>>>> <version>${spring-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <!-- Testing --> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>junit</groupId> >> > > > >>>>>>> <artifactId>junit</artifactId> >> > > > >>>>>>> <version>${junit-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.apache.camel</groupId> >> > > > >>>>>>> <artifactId>camel-test</artifactId> >> > > > >>>>>>> <version>${camel-version}</version> >> > > > >>>>>>> <scope>test</scope> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.apache.camel</groupId> >> > > > >>>>>>> <artifactId>camel-test-spring</artifactId> >> > > > >>>>>>> <version>${camel-version}</version> >> > > > >>>>>>> <scope>test</scope> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <!-- Other --> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.slf4j</groupId> >> > > > >>>>>>> <artifactId>slf4j-log4j12</artifactId> >> > > > >>>>>>> <version>${slf4j-version}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>com.google.code.gson</groupId> >> > > > >>>>>>> <artifactId>gson</artifactId> >> > > > >>>>>>> <version>2.8.6</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <!-- Undertow --> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>io.undertow</groupId> >> > > > >>>>>>> <artifactId>undertow-core</artifactId> >> > > > >>>>>>> <version>${version.undertow}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>io.undertow</groupId> >> > > > >>>>>>> <artifactId>undertow-core</artifactId> >> > > > >>>>>>> <version>${version.undertow}</version> >> > > > >>>>>>> <type>test-jar</type> >> > > > >>>>>>> <scope>test</scope> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>io.undertow</groupId> >> > > > >>>>>>> <artifactId>undertow-servlet</artifactId> >> > > > >>>>>>> <version>1.4.13.Final</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>org.apache.httpcomponents</groupId> >> > > > >>>>>>> <artifactId>httpclient</artifactId> >> > > > >>>>>>> <version>4.3.6</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <!-- Swagger --> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>io.swagger</groupId> >> > > > >>>>>>> <artifactId>swagger-annotations</artifactId> >> > > > >>>>>>> <version>${version.swagger}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>com.networknt</groupId> >> > > > >>>>>>> <artifactId>server</artifactId> >> > > > >>>>>>> <version>${version.framework}</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> <!-- Javax --> >> > > > >>>>>>> <dependency> >> > > > >>>>>>> <groupId>com.sun.activation</groupId> >> > > > >>>>>>> <artifactId>javax.activation</artifactId> >> > > > >>>>>>> <version>1.2.0</version> >> > > > >>>>>>> </dependency> >> > > > >>>>>>> >> > > > >>>>>>> </dependencies> >> > > > >>>>>>> >> > > > >>>>>>> <name>Camel Samples</name> >> > > > >>>>>>> <description>Camel Samples - POC</description> >> > > > >>>>>>> <modules> >> > > > >>>>>>> <module>camel.samples.poc</module> >> > > > >>>>>>> </modules> >> > > > >>>>>>> </project> >> > > > >>>>>>> >> > > > >>>>>>> On Fri, Jan 10, 2020 at 3:36 PM Andrea Cosentino >> > > > >>>>>>> <ancosen1...@yahoo.com.invalid> wrote: >> > > > >>>>>>> >> > > > >>>>>>>> What is your POM? >> > > > >>>>>>>> --Andrea Cosentino ----------------------------------Apache >> > > Camel >> > > > >>> PMC >> > > > >>>>>>>> ChairApache Karaf CommitterApache Servicemix PMC >> MemberEmail: >> > > > >>>>>>>> ancosen1985@yahoo.comTwitter: @oscerd2Github: oscerd >> > > > >>>>>>>> >> > > > >>>>>>>> On Friday, January 10, 2020, 3:34:04 PM GMT+1, Tom >> > Coudyzer >> > > < >> > > > >>>>>>>> tcdm...@gmail.com> wrote: >> > > > >>>>>>>> >> > > > >>>>>>>> Thanks Omar for the reply. Cleared the cache unfortunately >> > > still >> > > > >> no >> > > > >>>>>>> luck, >> > > > >>>>>>>> so there must still be something hanging around... >> > > > >>>>>>>> >> > > > >>>>>>>> Regards, >> > > > >>>>>>>> /Tom >> > > > >>>>>>>> >> > > > >>>>>>>> On Fri, Jan 10, 2020 at 3:13 PM Omar Al-Safi < >> > o...@oalsafi.com> >> > > > >>>> wrote: >> > > > >>>>>>>>> Hi, >> > > > >>>>>>>>> >> > > > >>>>>>>>> Java 8 should work at the moment. However, at some point >> in >> > > > >>> upcoming >> > > > >>>>>>>>> versions of 3.x, I think Java 8 support will be dropped. >> > > > >>>>>>>>> Referring to your error, looks like your depencides cache >> are >> > > not >> > > > >>>>>>> updated >> > > > >>>>>>>>> to camel 3.0, this method only exists in 2.14,x but not in >> > 3.0. >> > > > >> You >> > > > >>>>>> can >> > > > >>>>>>>> try >> > > > >>>>>>>>> to remove the maven cache folder and rebuild again? >> > > > >>>>>>>>> >> > > > >>>>>>>>> Regards, >> > > > >>>>>>>>> Omar >> > > > >>>>>>>>> >> > > > >>>>>>>>> On Fri, Jan 10, 2020 at 3:01 PM Tom Coudyzer < >> > > tcdm...@gmail.com> >> > > > >>>>>>> wrote: >> > > > >>>>>>>>>> Hi, >> > > > >>>>>>>>>> >> > > > >>>>>>>>>> Thanks for the reply. Switched to Java 11 (and as told >> > > earlier) >> > > > >>>>>>> checked >> > > > >>>>>>>>> the >> > > > >>>>>>>>>> migration guide, but still not working... >> > > > >>>>>>>>>> >> > > > >>>>>>>>>> Any other ideas? >> > > > >>>>>>>>>> >> > > > >>>>>>>>>> Thanks a lot!! >> > > > >>>>>>>>>> >> > > > >>>>>>>>>> Regards, >> > > > >>>>>>>>>> /Tom >> > > > >>>>>>>>>> >> > > > >>>>>>>>>> On Fri, Jan 10, 2020 at 2:52 PM Jeremy Ross < >> > > > >>>>>> jeremy.g.r...@gmail.com >> > > > >>>>>>>>>> wrote: >> > > > >>>>>>>>>> >> > > > >>>>>>>>>>> Camel 3 requires Java 11, or will soon. >> > > > >>>>>>>>>>> >> > > > >>>>>>>>>>> Also, make sure you've made necessary changes outlined >> here >> > > > >>>>>>>>>>> >> > > > >> >> https://camel.apache.org/manual/latest/camel-3-migration-guide.html >> > . >> > > > >>>>>>>>>>> On Fri, Jan 10, 2020 at 7:49 AM Tom Coudyzer < >> > > > >> tcdm...@gmail.com> >> > > > >>>>>>>>> wrote: >> > > > >>>>>>>>>>>> Hi, >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> Probably a stupid question but seems can't find a >> > solution. >> > > I >> > > > >>>>>>>>> upgraded >> > > > >>>>>>>>>> to >> > > > >>>>>>>>>>>> Camel 3.0 >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> When I run now my test classes (using >> CamelTestSupport) I >> > > get >> > > > >>>>>> the >> > > > >>>>>>>>>>>> stacktrace below >> > > > >>>>>>>>>>>> (Note atm still using Java 8) >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> Any idea what the reason could be? Couldn't find either >> > > > >>>>>> anything >> > > > >>>>>>> in >> > > > >>>>>>>>> the >> > > > >>>>>>>>>>>> migration guide in this area. >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> Many thanks already and sorry again if this is a stupid >> > > > >>>>>> question! >> > > > >>>>>>>>>>>> Regards, >> > > > >>>>>>>>>>>> /Tom >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> Stacktrace >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> java.lang.NoSuchMethodError: >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.CamelContext.getManagementMBeanAssembler()Lorg/apache/camel/spi/ManagementMBeanAssembler; >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.management.DefaultManagementAgent.doStart(DefaultManagementAgent.java:394) >> > > > >>>>>>>>>>>> at >> > > > >> >> > org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:70) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.impl.engine.DefaultManagementStrategy.doStartManagementStrategy(DefaultManagementStrategy.java:200) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.management.JmxManagementStrategy.doStart(JmxManagementStrategy.java:97) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:2900) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2522) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(AbstractCamelContext.java:2445) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2462) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2443) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2352) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.test.junit4.CamelTestSupport.startCamelContext(CamelTestSupport.java:820) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:460) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:336) >> > > > >>>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> > > Method) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> > > > >>>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) >> > > > >>>>>>>>>>>> at >> > > org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) >> > > > >>>>>>>>>>>> at >> > > org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) >> > > > >>>>>>>>>>>> at org.junit.rules.RunRules.evaluate(RunRules.java:20) >> > > > >>>>>>>>>>>> at >> > > > >>>>>> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) >> > > > >>>>>>>>>>>> at >> > > org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>> >> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>> >> > > org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>> >> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>> >> > org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) >> > > > >>>>>>>>>>>> at >> > > > >> >> > org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48) >> > > > >>>>>>>>>>>> at org.junit.rules.RunRules.evaluate(RunRules.java:20) >> > > > >>>>>>>>>>>> at >> > org.junit.runners.ParentRunner.run(ParentRunner.java:363) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463) >> > > > >>>>>>>>>>>> at >> > > > >>>>>>>>>>>> >> > > > >>>>>>>>>>>> >> > > > >> >> > > > >> > > >> > >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209) >> > > > >> > > >> > >> >