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
I get this error when my controller return an exception : No registration for controller type: MyGqlController$$SpringCGLIB$$0
In this error we can see $$SpringCGLIB$$0 at the end of the class name and it should be the reason for this message.
In my controller I have
@MutationMappingpublicMono<Object> testMethod() {
returnMono.error(newNoSessionException("User is not logged on !"));
}
@GraphQlExceptionHandlerpublicGraphQLErrorhandle(NoSessionExceptionex) {
returnGraphqlErrorException.newErrorException()
.message(ex.getLocalizedMessage())
.errorClassification(ErrorType.NOT_FOUND)
.build();
}
In the AnnotatedControllerExceptionResolver , in resolveException the this.controllerCache key was the original class name, not the proxy class name. So the controller (proxy) class was not found in controllerCache.
The text was updated successfully, but these errors were encountered:
rstoyanchev
changed the title
No registration for controller type: MyGqlController$$SpringCGLIB$$0
@GraphQlExceptionHandler method fails with "No registration for controller type" message if controller has proxy
May 31, 2023
rstoyanchev
changed the title
@GraphQlExceptionHandler method fails with "No registration for controller type" message if controller has proxy@GraphQlExceptionHandler method fails with "No registration for controller type" message if controller has proxy
May 31, 2023
Hi,
I get this error when my controller return an exception :
No registration for controller type: MyGqlController$$SpringCGLIB$$0
In this error we can see
$$SpringCGLIB$$0
at the end of the class name and it should be the reason for this message.In my controller I have
In the AnnotatedControllerExceptionResolver , in
resolveException
thethis.controllerCache
key was the original class name, not the proxy class name. So the controller (proxy) class was not found incontrollerCache
.The text was updated successfully, but these errors were encountered: