-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Upgrade to Jackson 2.7.1 #1449
Upgrade to Jackson 2.7.1 #1449
Conversation
Error in https://travis-ci.org/dropwizard/dropwizard/builds/107434037#L4784-L4872:
|
@arteam Unfortunately that didn't help. |
This line in the exception chain indicates that none of the config fields inherited from
Those six fields are defined in |
@evnm One suggestion is to try whether problem triggers without Afterburner registration. If it still fails, my guess would be that the type resolution (construction of |
@cowtowncoder Removing the Jackson Afterburner module unfortunately didn't fix the issue. |
@joschi Ok. Then I would need to trimmed down unit test; given that I would expect it to likely be easy to find and fix the problem. I would think that creating local I'll try to reproduce this locally from DW trunk as well, in parallel |
I started trying to tease out whatever is causing this: I can reproduce the issue locally wrt DW tests. |
Hoping that this: FasterXML/jackson-databind#1128 is related. Have been able to fix part of the problem so far, but it does not seem to resolve this problem. What would be useful from Jackson perspective would be to have an isolated test case I could play with. |
jackson-datatype-jdk7 has been merged into jackson-databind: FasterXML/jackson-databind#957
Looks like the same error occurs with Jackson 2.7.2. |
@nickbabcock Unfortunately fix to a seemingly related problem was not a fix to whatever is causing this failure. At this point I do not have a simple reproduction of the problem, unfortunately, and I am beginning to wonder if this could be either:
I suspect it is most likely to be (2), but have forgotten where to look. There was some magic in DW code to look for specific annotations, found via class-scanning, to sort of auto-register subtypes of various polymorphic types that standard configuration has. |
DiscoverableSubtypeResolver is what is currently being used. I'll have to look up what it means for jackson to resolve sub-types before creating a test-case |
@nickbabcock ah yes, that's it. I am suspecting that perhaps some aspects of subtype-refinement might have issues, if and when polymorphic types are being used. This is not a widely used thing, but I think DW configs are quite elaborate. |
Looking at code on Jackson side I suspect this is indeed where the problem arises. Also, haven't seen anything particularly suspicious on DW side (at least wrt this problem). Hoping to cobble up a stand-alone test case from that. |
Still no luck. Simple subtype/supertype via annotations does not cause problems it seems. |
With some more work, debugging, was able to finally reproduce the issue. It is a combination of things, but basically:
in this case, that would be An earlier fix alleviated the problem for other cases, but this one was not covered; full fix for problem that makes clean resolution harder will go in Jackson 2.8 (since it needs further changes to internal APIs), but I'll figure out a way to make it work at very least for this particular type of problem. Issue on |
Thanks, @cowtowncoder, for tackling this issue! |
Fixed for Jackson 2.7.3; will try to see what else could be fixed, then issue 2.7.3 hopefully by this weekend. |
Superseded by #1479. |
Bumps [assertj-core](https://github.com/joel-costigliola/assertj-core) from 3.12.0 to 3.12.1. <details> <summary>Commits</summary> - [`8cc755f`](assertj/assertj@8cc755f) [maven-release-plugin] prepare release assertj-core-3.12.1 - [`14384ec`](assertj/assertj@14384ec) Avoid generating a module-info class. Fixes [#1448](https://github-redirect.dependabot.com/joel-costigliola/assertj-core/issues/1448) - [`fb75625`](assertj/assertj@fb75625) anySatisfy: do not continue evaluating elements once we found a match - [`c8a6798`](assertj/assertj@c8a6798) fix a minor typo ([#1449](https://github-redirect.dependabot.com/joel-costigliola/assertj-core/issues/1449)) - [`4e32776`](assertj/assertj@4e32776) Fail with error message if the given expectedStringTemplate is null ([#1450](https://github-redirect.dependabot.com/joel-costigliola/assertj-core/issues/1450)) - [`2cba38f`](assertj/assertj@2cba38f) fix some more javadoc errors ([#1447](https://github-redirect.dependabot.com/joel-costigliola/assertj-core/issues/1447)) - [`50e2e3a`](assertj/assertj@50e2e3a) Use String#join where possible - [`fa94bf2`](assertj/assertj@fa94bf2) Javadoc fixes ([#1444](https://github-redirect.dependabot.com/joel-costigliola/assertj-core/issues/1444)) - [`e3c2a57`](assertj/assertj@e3c2a57) Update Memory File System to 2.1.0 - [`2c57b2b`](assertj/assertj@2c57b2b) Fix javadoc and reenable Javadoc doclint verification ([#1438](https://github-redirect.dependabot.com/joel-costigliola/assertj-core/issues/1438)) - Additional commits viewable in [compare view](assertj/assertj@assertj-core-3.12.0...assertj-core-3.12.1) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=org.assertj:assertj-core&package-manager=maven&previous-version=3.12.0&new-version=3.12.1)](https://dependabot.com/compatibility-score.html?dependency-name=org.assertj:assertj-core&package-manager=maven&previous-version=3.12.0&new-version=3.12.1) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot. </details>
This PR upgrades dropwizard-jackson to Jackson 2.7.1.
Release notes: https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.7