Skip to content
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

Provide actionable error message when Jackson can't serialize in native-mode #18628

Merged
merged 2 commits into from
Jul 13, 2021

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Jul 12, 2021

The idea here is to gives users an actionable error message when Jackson throws something like the following:

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.acme.rest.json.Legume and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)

which users would likely not know what to do with

@geoand geoand requested review from stuartwdouglas and FroMage and removed request for stuartwdouglas July 12, 2021 17:00
@geoand geoand merged commit eca263e into quarkusio:main Jul 13, 2021
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jul 13, 2021
@geoand geoand deleted the rr-jackson-serialize-erros branch July 13, 2021 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants