Furer Alexander
Furer Alexander
You will need to specify them as per-service interceptor.
Please use `gradlew build`
Did you import build.gradle in intellij idea?
Can you please try to debug to see the private handler discovered [here](https://github.com/LogNet/grpc-spring-boot-starter/blob/d70346be2035131b41997594657776c7619427dc/grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/recovery/GRpcExceptionHandlerMethodResolver.java?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L42) for your `TempUrlService` service bean ? The actual handler then resolved [here](https://github.com/LogNet/grpc-spring-boot-starter/blob/d70346be2035131b41997594657776c7619427dc/grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/recovery/GRpcExceptionHandlerMethodResolver.java?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L73)
for unary call it's called from [here](https://github.com/LogNet/grpc-spring-boot-starter/blob/d70346be2035131b41997594657776c7619427dc/grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/recovery/GRpcExceptionHandlerInterceptor.java?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L89)
Ohh, I think the issue is [this ](https://github.com/LogNet/grpc-spring-boot-starter/blob/d70346be2035131b41997594657776c7619427dc/grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/recovery/GRpcExceptionHandlerMethodResolver.java?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L46) line , I should also check the `privateResolvers`
Meanwhile, please add dummy global handler as temporary workaround to proceed [here ](https://github.com/LogNet/grpc-spring-boot-starter/blob/d70346be2035131b41997594657776c7619427dc/grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/recovery/GRpcExceptionHandlerInterceptor.java?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L34)..
The problem is [this line ](https://github.com/LogNet/grpc-spring-boot-starter/blob/d70346be2035131b41997594657776c7619427dc/grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/recovery/GRpcExceptionHandlerMethodResolver.java?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L46), it should check private resolvers as well. So, meanwhile, you can workaround the bug by adding dummy `@GRpcServiceAdvice` with `@GRpcServiceAdvice` method, it will force...
You should have both `@GRpcExceptionHandler` : global and private. Your private handler will be called
You also should wrap your exception with `throw new GRpcRuntimeExceptionWrapper(new TestException(),"myHint")`, the `RuntimeException` is caught...