Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Milvus client create fail: Provider io.grpc.xds.WeightedRoundRobinLoadBalancerProvider could not be instantiated #566

Open
hundanLi opened this issue Jul 28, 2023 · 2 comments

Comments

@hundanLi
Copy link

Exception in thread "main" java.util.ServiceConfigurationError: io.grpc.LoadBalancerProvider: Provider io.grpc.xds.WeightedRoundRobinLoadBalancerProvider could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232)
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at io.grpc.ServiceProviders.loadAll(ServiceProviders.java:67)
at io.grpc.LoadBalancerRegistry.getDefaultRegistry(LoadBalancerRegistry.java:102)
at io.grpc.internal.AutoConfiguredLoadBalancerFactory.(AutoConfiguredLoadBalancerFactory.java:53)
at io.grpc.internal.ManagedChannelImpl.(ManagedChannelImpl.java:635)
at io.grpc.internal.ManagedChannelImplBuilder.build(ManagedChannelImplBuilder.java:630)
at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:297)
at io.milvus.client.MilvusServiceClient.(MilvusServiceClient.java:52)
at com.tcl.ai.gpt.milvus.MilvusVectorServiceImpl.init(MilvusVectorServiceImpl.java:38)
at com.tcl.ai.gpt.milvus.MilvusVectorServiceImpl.main(MilvusVectorServiceImpl.java:27)
Caused by: java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
... 11 more

@hundanLi hundanLi changed the title Milvus client create fail: Provider io.grpc.xds.WeightedRoundRobinLoadBalancerProvider could not be instantiated Milvus client create fail: Provider io.grpc.xds.WeightedRoundRobinLoadBalancerProvider could not be instantiated version Jul 28, 2023
@hundanLi hundanLi changed the title Milvus client create fail: Provider io.grpc.xds.WeightedRoundRobinLoadBalancerProvider could not be instantiated version Milvus client create fail: Provider io.grpc.xds.WeightedRoundRobinLoadBalancerProvider could not be instantiated Jul 28, 2023
@hundanLi
Copy link
Author

hundanLi commented Jul 28, 2023

Client Version 2.2.5
Server version 2.2.8

@yhmo
Copy link
Contributor

yhmo commented Sep 13, 2023

I have no idea. Might related to the local Java environment.

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

No branches or pull requests

2 participants