Skip to content

Error when creating APACHE_HTTP_CLIENT, fall back to HTTP_URL_CONNECTION #1881

@rahulraka

Description

@rahulraka

I have introduced a new HTTP5 Client in my project, after adding it If I am doing any Save or read call I am getting below error.

Error when creating APACHE_HTTP_CLIENT, fall back to HTTP_URL_CONNECTION java.lang.NoClassDefFoundError: org/apache/hc/client5/http/config/ConnectionConfig at com.clickhouse.client.http.ApacheHttpConnectionImpl$HttpConnectionManager.(ApacheHttpConnectionImpl.java:377) at com.clickhouse.client.http.ApacheHttpConnectionImpl.newConnection(ApacheHttpConnectionImpl.java:95) at com.clickhouse.client.http.ApacheHttpConnectionImpl.(ApacheHttpConnectionImpl.java:82) at com.clickhouse.client.http.ClickHouseHttpConnectionFactory.createConnection(ClickHouseHttpConnectionFactory.java:32) at com.clickhouse.client.http.ClickHouseHttpClient.newConnection(ClickHouseHttpClient.java:119) at com.clickhouse.client.http.ClickHouseHttpClient.newConnection(ClickHouseHttpClient.java:35) at com.clickhouse.client.AbstractClient.getConnection(AbstractClient.java:198) at com.clickhouse.client.http.ClickHouseHttpClient.send(ClickHouseHttpClient.java:163) at com.clickhouse.client.AbstractClient.execute(AbstractClient.java:280) at com.clickhouse.client.ClickHouseClientBuilder$Agent.sendOnce(ClickHouseClientBuilder.java:282) at com.clickhouse.client.ClickHouseClientBuilder$Agent.send(ClickHouseClientBuilder.java:294) at com.clickhouse.client.ClickHouseClientBuilder$Agent.execute(ClickHouseClientBuilder.java:349) at com.clickhouse.client.ClickHouseClient.executeAndWait(ClickHouseClient.java:878) at com.clickhouse.client.ClickHouseRequest.executeAndWait(ClickHouseRequest.java:2154) at com.clickhouse.jdbc.internal.Click, HouseStatementImpl.executeInsert(ClickHouseStatementImpl.java:336) at

Not sure why it is happening, Below are the conflicting dependencies

org.apache.httpcomponents.core5 httpcore5 5.1
    <dependency>
        <groupId>com.clickhouse</groupId>
        <artifactId>clickhouse-jdbc</artifactId>
        <version>0.6.1</version>
    </dependency>,
    
    not sure if it is a bug, can anyone help me with it...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions