On Thu, 2018-04-12 at 08:15 +0000, Khare, Aparna wrote:
> Hi,
> 
>   We tried and we are able to get our bundle up with the dependency
> of the httpclient async.. This is not an OSGI but via writing to the
> bundle classpath from pom.
> 
> <httpcore.version>4.4</httpcore.version>
>               <httpclient.version>4.5.4</httpclient.version>
>               <asyncclient.version>4.1.3</asyncclient.version>
>               <commons-logging.version>1.2</commons-logging.version>
>               <commons-io.version>2.4</commons-io.version>
> 
> <dependency>
>                       <groupId>org.apache.httpcomponents</groupId>
>                       <artifactId>httpasyncclient</artifactId>
>                       <version>${asyncclient.version}</version>
>               </dependency>
>               <dependency>
>                       <groupId>org.apache.httpcomponents</groupId>
>                       <artifactId>httpcore</artifactId>
>                       <version>${httpcore.version}</version>
>               </dependency>
>               <dependency>
>                       <groupId>org.apache.httpcomponents</groupId>
>                       <artifactId>httpcore-nio</artifactId>
>                       <version>${httpcore.version}</version>
>               </dependency>
>               <dependency>
>                       <groupId>org.apache.httpcomponents</groupId>
>                       <artifactId>httpclient</artifactId>
>                       <version>${httpclient.version}</version>
>               </dependency>
>               <dependency>
>                       <groupId>commons-logging</groupId>
>                       <artifactId>commons-logging</artifactId>
>                       <version>${commons-logging.version}</version>
>               </dependency>
>               <dependency>
> 
> 
> But when I run my service I'm getting  
> 
> java.lang.NoSuchMethodError:
> org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.<init>(Lo
> rg/apache/http/impl/nio/reactor/IOReactorConfig;Ljava/util/concurrent
> /ThreadFactory;)V
>       org.apache.http.impl.nio.client.IOReactorUtils.create(IOReactor
> Utils.java:43)
>       org.apache.http.impl.nio.client.HttpAsyncClientBuilder.build(Ht
> tpAsyncClientBuilder.java:666)
>       org.apache.http.impl.nio.client.HttpAsyncClients.createDefault(
> HttpAsyncClients.java:60)
> 
> I tried moving to the different version of httpcore.. It still does
> not work.
> 
> Can some please help here
> 

There still must be an older version of HttpCore on your classpath.

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to