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
We've configured Dropwizard not to register default exception mappers by setting registerDefaultExceptionMappers: false in the yml file. However it's still mapping org.glassfish.jersey.server.validation.internal.ValidationExceptionMapper and is messing with our catch-all exception handler.
Why is this not excluded and is there a way to remove it?
The text was updated successfully, but these errors were encountered:
registerDefaultExceptionMappers is for toggling if dropwizard should register its own exception mappers, it doesn't make reference to any of Jersey's internal exception mappers (eg: ValidationExceptionMapper).
I looked into it a little bit, and I'm not sure if using standard dropwizard code if ValidationExceptionMapper will be registered in the first place. Looking at the Jersey source code, it appears it is only registered if ValidationFeature is registered (which dropwizard doesn't). So I'd check if you're are registering either ValidationFeature or ValidationBinder (and if so, remove them)
We've configured Dropwizard not to register default exception mappers by setting
registerDefaultExceptionMappers: false
in theyml
file. However it's still mappingorg.glassfish.jersey.server.validation.internal.ValidationExceptionMapper
and is messing with our catch-all exception handler.Why is this not excluded and is there a way to remove it?
The text was updated successfully, but these errors were encountered: