Hi all, together with a developer of my company, w...
# help
d
Hi all, together with a developer of my company, we are trying to integrate Cerbos into an old spring boot project. We created a CerbosAuthorizationService.java that references to PreAuthorize. This way, the request goes through the Authorization service to check permissions. At the moment we are receiving the following error: Caused by: java.lang.AbstractMethodError: Receiver class io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder$NettyTransportFactory does not define or inherit an implementation of the resolved method 'abstract java.util.Collection getSupportedSocketAddressTypes()' of interface io.grpc.internal.ClientTransportFactory. This seems to be an error of the GRPC dependency. This is the setup in our build.gradle file: implementation 'dev.cerboscerbos sdk java0.+' implementation 'io.grpcgrpc core1.+' Do you have any idea on how to resolve this issue?
c
Do you have other dependencies that use a different version of grpc? Looking at the output of
./gradlew dependencies
would show you those. Try changing the grpc dependency to
implementation 'io.grpc:grpc-core:1.60.0'
to see if that helps too.