I have a AppEngine project that is served using Google Cloud EndPoints.
Some of the Request and Response objects (which I have no control over) have no attributes.
When those endpoints are invoked the call will fail with:
com.google.api.server.spi.handlers.EndpointsMethodHandler$RestHandler handle: exception occurred while invoking backend method
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class au.com.xandar.wylas.licence.endpoint.response.SendUserInviteResponse and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)
Normally I would just get the ObjectMapper on instance startup and call
objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
But I am struggling to work out how to get hold of the ObjectMapper that AppEngine is using.
And note:
- I am not using Spring
- I am not using Guice
I do not want to introduce either of these frameworks into the mix.
How can can I retrieve the ObjectMapper that AppEngine is using so that I can modify it's config?