Daniel Doornekamp
04/16/2024, 8:41 AMApr 16 10:38:28 system java[59202]: 10:38:28.472 [http-nio-8080-exec-5] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [/rc/api] threw exception [Request processing failed; nested exception is dev.cerbos.sdk.CerbosException: RPC exception [Status{code=INTERNAL, description=Panic! This is a bug!, cause=java.lang.NoSuchMethodError: io.grpc.internal.Http2ClientStreamTransportState: method 'void <init>(int, io.grpc.internal.StatsTraceContext, io.grpc.internal.TransportTracer)' not found
Does anyone have a clue what could be the reason we are receiving this error?Charith (Cerbos)
Daniel Doornekamp
04/16/2024, 9:01 AMCharith (Cerbos)
implementation("io.grpc:grpc-core:1.63.0")
Daniel Doornekamp
04/16/2024, 9:09 AMApr 16 11:07:11 system java[60478]: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'overboekingListener': Unsatisfied dependency expressed through field 'rekeningService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'rekeningService' defined in URL [jar:file:/opt/backend-1.0.jar!/BOOT-INF/classes!/nl/rc/service/RekeningService.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'overboekingProducer' defined in URL [jar:file:/opt/backend-1.0.jar!/BOOT-INF/classes!/nl/rc/kafka/OverboekingProducer.class]: Unexpected exception during bean creation; nested exception is java.lang.NoClassDefFoundError: com/google/protobuf/GeneratedMessageV3
Daniel Doornekamp
04/16/2024, 9:22 AMprotobuf:protoc:3.21.0
Charith (Cerbos)
./gradlew dependencies
?Daniel Doornekamp
04/16/2024, 9:44 AMCharith (Cerbos)
+--- mysql:mysql-connector-java:8.0.29
| \--- com.google.protobuf:protobuf-java:3.19.4 -> 4.26.1
I think mysql-connector-java
has been superseded by mysql-connector-j
. You could try replacing that dependency with implementation("com.mysql:mysql-connector-j:8.3.0")
to see if that helps. Otherwise, you might have to downgrade Cerbos to a previous version that uses the older protobuf dependency (0.10.0 or 0.9.0).Daniel Doornekamp
04/16/2024, 10:06 AMDaniel Doornekamp
04/16/2024, 10:07 AMCharith (Cerbos)
Daniel Doornekamp
04/16/2024, 10:12 AMDaniel Doornekamp
04/16/2024, 10:56 AMCharith (Cerbos)
Daniel Doornekamp
04/16/2024, 11:24 AMDaniel Doornekamp
04/16/2024, 11:37 AMApr 16 13:36:22 wilson java[61805]: 13:36:22.419 [http-nio-8080-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [/rc/api] threw exception [Request processing failed; nested exception is dev.cerbos.sdk.CerbosException: RPC exception [Status{code=DEADLINE_EXCEEDED, description=CallOptions deadline exceeded after 0.823372857s. Name resolution delay 0.031060419 seconds. [closed=[], open=[[buffered_nanos=840849531, waiting_for_connection]]], cause=null}]] with root cause
Apr 16 13:36:22 wilson java[61805]: dev.cerbos.sdk.CerbosException: RPC exception [Status{code=DEADLINE_EXCEEDED, description=CallOptions deadline exceeded after 0.823372857s. Name resolution delay 0.031060419 seconds. [closed=[], open=[[buffered_nanos=840849531, waiting_for_connection]]], cause=null}]
Daniel Doornekamp
04/16/2024, 11:38 AMCharith (Cerbos)
Charith (Cerbos)
Daniel Doornekamp
04/16/2024, 12:07 PMDaniel Doornekamp
04/16/2024, 12:31 PMDaniel Doornekamp
04/16/2024, 12:33 PMDaniel Doornekamp
04/16/2024, 12:33 PMDaniel Doornekamp
04/16/2024, 12:34 PMCharith (Cerbos)
Daniel Doornekamp
04/16/2024, 12:35 PMCharith (Cerbos)