-
Notifications
You must be signed in to change notification settings - Fork 433
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
NPE thrown when trying to discover annotations on AOP Proxy objects #28
Comments
… searching for the @GRpcService annotation.
Hi @pluppens |
@jvmlet Awesome, thanks. I'll give it a spin later today. |
Would you please share your AOP configuraltion ? |
Hi @jvmlet, unfortunately, I didn't have time yet to verify things (will probably happen during the weekend). But just as a heads up - we're using Javanica annotations on our service methods, which caused the behaviour reported above. |
Thanks for the update. I'll give Javanica a try. |
Other than that, I can confirm that things are working fine for us in 0.0.7. Thanks again! |
In version 0.0.6, the org.lognet.springboot.grpc.GRpcServerRunner#run method tries to discover the
@GRpcService
annotation. However, this fails if thebindableService
is wrapped as an AOP proxy.A possible fix would be to check if the
bindableService
is a Proxy, and use its target class instead to find the@GRpcService
annotation.The text was updated successfully, but these errors were encountered: