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

Compatibility with armeria and grpc 4.26.0 versions is broken. #5504

Open
cj848 opened this issue Mar 13, 2024 · 1 comment
Open

Compatibility with armeria and grpc 4.26.0 versions is broken. #5504

cj848 opened this issue Mar 13, 2024 · 1 comment
Milestone

Comments

@cj848
Copy link

cj848 commented Mar 13, 2024

The following exception occurred during application running:
When the grpc library was updated
GeneratedMessageV3 has been deprecated. link
[Java] The base class for generated messages will be GeneratedMessage, not GeneratedMessageV3.

please fix it

  Caused by:
             java.lang.NoClassDefFoundError: Could not initialize class com.linecorp.armeria.server.grpc.DefaultHttpJsonTranscodingOptions
                 at com.linecorp.armeria.server.grpc.HttpJsonTranscodingOptions.of(HttpJsonTranscodingOptions.java:42)
                 at com.linecorp.armeria.server.grpc.GrpcServiceBuilder.<init>(GrpcServiceBuilder.java:129)
                 at com.linecorp.armeria.server.grpc.GrpcService.builder(GrpcService.java:56)
                 at lasco.configuration.ArmeriaConfig.armeriaServerConfigurator$lambda$3(ArmeriaConfig.kt:42)
                 at com.linecorp.armeria.internal.spring.ArmeriaConfigurationUtil.lambda$configureServerWithArmeriaSettings$0(ArmeriaConfigurationUtil.java:140)
                 at com.linecorp.armeria.internal.shaded.guava.collect.ImmutableList.forEach(ImmutableList.java:423)
                 at com.linecorp.armeria.internal.spring.ArmeriaConfigurationUtil.configureServerWithArmeriaSettings(ArmeriaConfigurationUtil.java:140)
                 at com.linecorp.armeria.spring.web.reactive.ArmeriaReactiveWebServerFactory.getWebServer(ArmeriaReactiveWebServerFactory.java:161)
                 at org.springframework.boot.web.reactive.context.WebServerManager.<init>(WebServerManager.java:50)
                 at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.createWebServer(ReactiveWebServerApplicationContext.java:96)
                 at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.onRefresh(ReactiveWebServerApplicationContext.java:81)
                 ...98 more

                 Caused by:
                 java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: com/google/protobuf/GeneratedMessageV3 [in thread "Test worker"]
                     at java.base/java.lang.ClassLoader.defineClass1(Native Method)
                     at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)
                     at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
                    ... more
@ikhoon ikhoon added this to the 1.28.0 milestone Mar 14, 2024
@jrhee17
Copy link
Contributor

jrhee17 commented Apr 11, 2024

Armeria's gRPC module depends heavily on grpc-java. We'll probably move on to protobuf 26.0 once grpc-java also moves on.

https://github.com/grpc/grpc-java/blob/34e241a60e7dd54195daaec3a16decae0dd702cc/gradle/libs.versions.toml#L8

@jrhee17 jrhee17 modified the milestones: 1.28.0, 1.29.0 Apr 11, 2024
@minwoox minwoox modified the milestones: 1.29.0, 1.30.0 May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants