Skip to content

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
namsoo2 pushed a commit to namsoo2/spring-ai that referenced this pull request Jun 9, 2025
Milvus from 2.5.7 to 2.5.8

Signed-off-by: Chengcheng Wu <[email protected]>
Signed-off-by: minsoo.nam <[email protected]>
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 2025
Milvus from 2.5.7 to 2.5.8

Signed-off-by: Chengcheng Wu <[email protected]>
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