Help needed to upgrade to latest Dropwizard 4.0.x version #277
Unanswered
sandeepk-veritas
asked this question in
Q&A
Replies: 1 comment
-
Like exception says, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know this may not be correct place to start a discussion, but may be someone here can at least give me some pointer. I am getting error from Jackson databind in Dropwizard application.
I have already posted about the error in Dropwizard discussion forum, but so far not received any responses. Link: dropwizard/dropwizard#10095
Our application is currently using Dropwizard 4.0.7 on Java 11 and we are unable to get past this version (i.e. anything from 4.0.8 to 4.0.13) because of an issue observed with most probably a behaviour of Jackson. But I may be wrong here
I have created a couple of sample applications which can show the issue in isolation.
Working version with Dropwizard 4.0.7: https://github.com/sandeepk-veritas/dropwziardAuditingExample407
Non-working version with Dropwizard 4.0.13: https://github.com/sandeepk-veritas/dropwziardAuditingExample4013
Only difference between the two versions is upgrade of Dropwizard and Wiremock. Everything else is exactly the same.
Sample application has following functionality:
It has 1 resource class with 1 GET and 1 POST methods defined.
1 GET method (count) which does not accept any parameter and returns a JSON response.
1 POST method (randomInt) which accepts 1 body parameter (class object) and returns a JSON response.
Auditing for the resource class can be enabled/disabled.
Integration tests are written with and without auditing enabled.
For integration tests with auditing enabled, we are making use of Wiremock as auditing server.
There are two integration tests written. One is with auditing disabled, another one with auditing enabled.
We see failures for integration test with auditing enabled for POST method. GET method shows no issues. Failure message is like:
For auditing, we are making use of filters to get information about calls to the API. For this particular example, I have enabled audits for both GET and POST. In our actual application, we only audit POST/PUT/DELETE methods only.
I have tried to go over the release notes for Jackson and could not find anything useful for understanding the reason for this failure. The first time this error occurred for 4.0.8 where the version of Jackson was increased from 2.16.1 to 2.17.2. I have gone over all the release notes for in between version, but no luck so far to understand what is going wrong.
I was hoping that this error will go away with newer versions of Dropwizard (which will include newer Jackson), but so far we are still facing the issue, hence the need to ask for help.
Any pointers what could be wrong will be appreciated. Do let me know if any more information is needed from my side.
Beta Was this translation helpful? Give feedback.
All reactions