You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Even if staying in the same version that grpc-java uses please update the code to remove that GeneratedMessageV3 usage as recommended by grpc-java team here: grpc/grpc-java#11015 (comment)
That would allow an smoother migration path and applications can updated to the latest protobuf libraries and generated code if they want.
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
The text was updated successfully, but these errors were encountered: