Aurélien Pupier created CAMEL-23156:
---------------------------------------

             Summary: Upgrade to protobuf 4.x
                 Key: CAMEL-23156
                 URL: https://issues.apache.org/jira/browse/CAMEL-23156
             Project: Camel
          Issue Type: Dependency upgrade
    Affects Versions: 4.19.0
            Reporter: Aurélien Pupier


Upgrade to protobuf 4.x, with 4.34.0, there are these compilation failures:

{noformat}
Error:  Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.15.0:compile (default-compile) 
on project camel-kserve: Compilation failure: Compilation failure: 
Error:  
/home/runner/work/camel/camel/components/camel-ai/camel-kserve/src/main/java/org/apache/camel/component/kserve/KServeProducer.java:[47,34]
 incompatible types: bad type in switch expression
Error:      inference.GrpcPredictV2.ModelInferResponse cannot be converted to 
com.google.protobuf.GeneratedMessageV3
Error:  
/home/runner/work/camel/camel/components/camel-ai/camel-kserve/src/main/java/org/apache/camel/component/kserve/KServeProducer.java:[48,45]
 incompatible types: bad type in switch expression
Error:      inference.GrpcPredictV2.ModelReadyResponse cannot be converted to 
com.google.protobuf.GeneratedMessageV3
Error:  
/home/runner/work/camel/camel/components/camel-ai/camel-kserve/src/main/java/org/apache/camel/component/kserve/KServeProducer.java:[49,51]
 incompatible types: bad type in switch expression
Error:      inference.GrpcPredictV2.ModelMetadataResponse cannot be converted 
to com.google.protobuf.GeneratedMessageV3
Error:  
/home/runner/work/camel/camel/components/camel-ai/camel-kserve/src/main/java/org/apache/camel/component/kserve/KServeProducer.java:[50,47]
 incompatible types: bad type in switch expression
Error:      inference.GrpcPredictV2.ServerReadyResponse cannot be converted to 
com.google.protobuf.GeneratedMessageV3
Error:  
/home/runner/work/camel/camel/components/camel-ai/camel-kserve/src/main/java/org/apache/camel/component/kserve/KServeProducer.java:[51,45]
 incompatible types: bad type in switch expression
Error:      inference.GrpcPredictV2.ServerLiveResponse cannot be converted to 
com.google.protobuf.GeneratedMessageV3
Error:  
/home/runner/work/camel/camel/components/camel-ai/camel-kserve/src/main/java/org/apache/camel/component/kserve/KServeProducer.java:[52,53]
 incompatible types: bad type in switch expression
Error:      inference.GrpcPredictV2.ServerMetadataResponse cannot be converted 
to com.google.protobuf.GeneratedMessageV3

{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to