Skip to content

google-cloud-recaptchaenterprise 3.80.0 fails at runtime with NoClassDefFoundError: com.google.protobuf.RuntimeVersion$RuntimeDomain (works in 3.79.0) #11936

@nbaiocco

Description

@nbaiocco

Hi team,

After upgrading com.google.cloud:google-cloud-recaptchaenterprise from 3.79.0 to 3.80.0 we get a runtime failure:

java.lang.NoClassDefFoundError: com/google/protobuf/RuntimeVersion$RuntimeDomain
at com.google.recaptchaenterprise.v1.CreateAssessmentRequest.(CreateAssessmentRequest.java:40)
at com.google.cloud.recaptchaenterprise.v1.stub.GrpcRecaptchaEnterpriseServiceStub.(GrpcRecaptchaEnterpriseServiceStub.java:93)
at com.google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient.create(RecaptchaEnterpriseServiceClient.java:601)
...

Caused by: java.lang.ClassNotFoundException: com.google.protobuf.RuntimeVersion$RuntimeDomain

This does not happen with 3.79.0.

Environment

  • Runtime: Keycloak 26.5.2 (Quarkus-based)
  • At runtime, protobuf-java is provided by the container and is com.google.protobuf:protobuf-java:3.25.5
  • Application code only needs to create the client and call CreateAssessment.

Question

  • Is protobuf-java 3.25.5 still supported for google-cloud-recaptchaenterprise 3.80.0?
  • If not, could you please document/enforce the minimum required protobuf-java version (dependency constraints / BOM alignment), since 3.79.0 worked with 3.25.5 and 3.80.0 now fails?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions