-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Problem serializing JsonMappingException
due to addition of non-ignored processor
property
#1368
Comments
Since there is If there is an actual problem (which sounds like there is), a reproducible test case would be helpful, especially to guard against future regressions. But also to make sure I understand the specific problem. |
This example is with Jackson 2.8.0 I believe (whatever the latest AWS SDK is using).
|
Thank you! I'll see if it occurs with 2.7 as well (most likely does); original description makes more sense with code now. Note on |
Ah yes. You are right about need for Quite odd that this wasn't reported earlier for 2.7, but better late than never. |
JsonMappingException
due to addition of non-ignored processor
property
I have a pull request with regression test open if that's of any use to you. On Sep 12, 2016 10:46 PM, "Tatu Saloranta" notifications@github.com wrote:
|
@jecaplan it is indeed. |
I notice that, e.g., JsonMappingException has several bidirectional links in internal fields like _processor.
Why not annotate those fields with @JsonIgnore? You've already got the Java serialization "transient" on them.
One symptom of not eating your own dog food here is that AWS SWF Flow Framework is broken. If it attempts to deserialize the result of an activity and that attempt fails with a JsonMappingException, the framework then attempts to serialize the resulting DataConverterException via Jackson...which fails with a different JsonMappingException (StackOverflowError) because of the embedded JsonMappingException.
I see no reason why a serde framework should not be able to serde itself.
The text was updated successfully, but these errors were encountered: