-
Notifications
You must be signed in to change notification settings - Fork 15
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
Issue with Dropwizard example #6
Comments
The problem seems to be that the "else" in this if block is never reached for some reason, investigation continues...
|
+1 |
It might be good to include which version of dropwizard you are using. |
I am having the same Issue as of dropwizard 1.3.5. It seems to be an issue with the Jackson Afterburner Module used by Dropwizard. There already is an issue for that. |
This seems to have been resolved in jackson. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason I keep getting the exception below when trying to use JSOG with dropwizard:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "@ref"
I've tried to debug why and can't figure it out, I'll continue this weekend. It stops throwing exceptions when you set:
environment.getObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
But that obviously doesn't solve the problem. I tried it with the current dropwizard example Master (and v0.8.0) and made the following amendments:
(object with reference to itself)
@JsonIdentityInfo(generator=JSOGGenerator.class)
public class Person {
@id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
...
Then in the test:
You can see it's sending the correct JSOG-ed JSON object but if you set logging to debug you can see the exception I'm talking about.
Let me know if you want me to send you a zip of the files or anything.
The text was updated successfully, but these errors were encountered: