JBoss EAP 6.2 + HttpAsyncClient - org.jboss.resteasy.spi.UnhandledException: java.lang.NoSuchMethodError: org.apache.http.util.Asserts.check(ZLjava/lang/String;Ljava/lang/Object;)V

Posted on

I am using jboss eap 6.2, java 1.7. I have implemented HttpAsyncClient by following documentation. (https://hc.apache.org/httpcomponents-asyncclie)nt-4.1.x/httpasyncclient/examples/org/apache/http/examples/nio/client/AsyncClientHttpExchangeFutureCallback.java) For this i have used httpclient -4.4.1
httpcore - 4.4.6
httpclient-osgi - 4.3
httpcore-nio - 4.4.3
httpasyncclient - 4.1.3
While executing httpClient.execute() method its throwing following exception.
Exception in thread "pool-13-thread-1" java.lang.NoSuchMethodError: org.apache.http.util.Asserts.check(ZLjava/lang/String;Ljava/lang/Object;)V

I tried the solution given in following thread.(I fixed this using slot. I created a new directory on httpcomponents module named "4.4" and added new jars and module.xml. I update the standalone.xml:)
https://developer.jboss.org/thread/267622

Even i replaced default jars under modules\system\layers\base\org\apache\httpcomponents\main and put 4.4.1 jars.

I tired editing module.xml in modules\system\layers\base\org\jboss\resteasy\resteasy-jaxrs\main

But still i am facing the same issue.
Please help me to resolve this.

Thanks,
Ananthi.
jboss console

inside war

Exception in restclient

replaced jar file in modules

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.