Skip to content

Update dependencies for milvus stores #3009

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

Merged
merged 1 commit into from
May 8, 2025

Conversation

AntonyCheng
Copy link
Contributor

Milvus from 2.5.7 to 2.5.8

Solved the following error:
java.lang.NoSuchMethodError: 'boolean com.google.protobuf.GeneratedMessageV3.isStringEmpty(java.lang.Object)'
at io.milvus.grpc.ClientInfo.getSerializedSize(ClientInfo.java:402) ~[milvus-sdk-java-2.5.7.jar:na]
at com.google.protobuf.CodedOutputStream.computeMessageSizeNoTag(CodedOutputStream.java:916) ~[protobuf-java-3.6.1.jar:na]
at com.google.protobuf.CodedOutputStream.computeMessageSize(CodedOutputStream.java:668) ~[protobuf-java-3.6.1.jar:na]
at io.milvus.grpc.ConnectRequest.getSerializedSize(ConnectRequest.java:129) ~[milvus-sdk-java-2.5.7.jar:na]
at io.grpc.protobuf.lite.ProtoInputStream.available(ProtoInputStream.java:108) ~[grpc-protobuf-lite-1.59.1.jar:1.59.1]
at io.grpc.internal.MessageFramer.getKnownLength(MessageFramer.java:208) ~[grpc-core-1.59.1.jar:1.59.1]

Milvus from 2.5.7 to 2.5.8

Signed-off-by: Chengcheng Wu <[email protected]>
@dev-jonghoonpark
Copy link
Contributor

Could it be a version issue?
Could you provide a link to the related Milvus issue regarding the error mentioned above?

@AntonyCheng
Copy link
Contributor Author

AntonyCheng commented May 6, 2025

I think it is a version problem for Spring AI. I can't find a similar problem in Milvus. When I only introduce the following dependency, an error will be reported:

<dependency>
      <groupId>org.springframework.ai</groupId>
      <artifactId>spring-ai-milvus-store</artifactId>
      <version>1.0.0-SNAPSHOT-</version>
</dependency>

But when I exclude the 2.5.7 version of Milvus and reference the latest version (2.5.8) of Milvus, this problem is solved. The dependency reference is as follows:

<dependency>
      <groupId>org.springframework.ai</groupId>
      <artifactId>spring-ai-milvus-store</artifactId>
      <version>1.0.0-SNAPSHOT</version>
      <exclusions>
            <exclusion>
                  <groupId>io.milvus</groupId> 
                  <artifactId>milvus-sdk-java</artifactId> 
            </exclusion> 
      </exclusions>
</dependency>
<dependency> 
      <groupId>io.milvus</groupId> 
      <artifactId>milvus-sdk-java</artifactId> 
      <version>2.5.8</version>
</dependency>

So I submitted this PR, and the specific error is as follows:

image

@ilayaperumalg
Copy link
Member

@AntonyCheng Thanks for the PR!

@ilayaperumalg ilayaperumalg merged commit 2c9214b into spring-projects:main May 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants