istio-java-api icon indicating copy to clipboard operation
istio-java-api copied to clipboard

istio 1.7.7 and kubernetes-client 5.1.0 , ListOptions Exception

Open lishiyao1998 opened this issue 3 years ago • 2 comments

The version I'm using is

    <!-- istio-client -->
    <dependency>
        <groupId>me.snowdrop</groupId>
        <artifactId>istio-client</artifactId>
        <version>1.7.7</version>
    </dependency>

    <dependency>
        <groupId>io.fabric8</groupId>
        <artifactId>kubernetes-client</artifactId>
        <version>5.1.0</version>
    </dependency>

but ,When I try to list virtualService ,something is wrong ; The code : istioClient.v1alpha3VirtualService().list(listOptions);

The Exception : Exception in thread "main" java.lang.NoSuchMethodError: okhttp3.HttpUrl.get(Ljava/lang/String;)Lokhttp3/HttpUrl; at io.fabric8.kubernetes.client.dsl.base.BaseOperation.fetchListUrl(BaseOperation.java:174) at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:677) at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:85)

When I looked at the source code, I found that the version in the POM was inconsistent with the decompiled source code

lishiyao1998 avatar Apr 30 '21 07:04 lishiyao1998

@metacosm will u support this?

FqqCS avatar Jun 04 '21 10:06 FqqCS

Please try with version 1.7.7.1.

metacosm avatar Jun 04 '21 11:06 metacosm