Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

camel-connect - NoSuchMethodError #796

Open
vharcq opened this issue Jan 10, 2017 · 0 comments
Open

camel-connect - NoSuchMethodError #796

vharcq opened this issue Jan 10, 2017 · 0 comments

Comments

@vharcq
Copy link

vharcq commented Jan 10, 2017

Hi
I am on Forge 3.4.0.Final
I do addon-install --coordinate io.fabric8.forge:camel
wich gives me SUCCESS Addon io.fabric8.forge:camel,2.3.83 was installed successfully.
Then I use camel-connect --url http://.../jolokia
And I got a NoSuchMethodError on org.apache.http (see below)

After kicking out httpclient-4.5.2.jar out of my .forge/addons/io-fabric8-forge-camel-commands-2-3-83,it works like a charm

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
at io.fabric8.forge.camel.commands.jolokia.ConnectCommand_$$javassist_2dc2464b-9ae4-447e-b8f7-9dedf7b55c13.execute(ConnectCommand$$_javassist_2dc2464b-9ae4-447e-b8f7-9dedf7b55c13.java)
at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:94)
at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:97)
at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:88)
at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: org.apache.http.impl.conn.CPool.setValidateAfterInactivity(I)V
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:176)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:158)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:149)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:137)
at org.jolokia.client.J4pClientBuilder.createPoolingConnectionManager(J4pClientBuilder.java:491)
at org.jolokia.client.J4pClientBuilder.createHttpClient(J4pClientBuilder.java:410)
at org.jolokia.client.J4pClientBuilder.build(J4pClientBuilder.java:404)
at org.apache.camel.commands.jolokia.JolokiaClientFactory.createJolokiaClient(JolokiaClientFactory.java:46)
at org.apache.camel.commands.jolokia.DefaultJolokiaCamelController.connect(DefaultJolokiaCamelController.java:87)
at io.fabric8.forge.camel.commands.jolokia.ConnectCommand.execute(ConnectCommand.java:76)
... 16 more

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant