-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
MismatchedInputException
encountered while deserializing XML to an Enum type using a factory method
#682
Comments
Another issue with a similar |
Probably not same root cause, but good to reference nonetheless. That one seems like invalid issue (but understandable; 2.18 changing behavior but in this case -- seems to me -- fixing it). |
Note to self: jackson-databind
which handles special XML-ness aspects. But this is probably not handled for factory case, for some reason. |
Do you have any suggestions for a workaround or where I should be looking at to check if I can add one temporary? |
@WannabeSoftwareEngineer No, unfortunately I can't think of an obvious work-around here. |
MismatchedInputException
encountered while deserializing XML to an Enum type using a factory method
Fixed via FasterXML/jackson-databind#4807 (and added tests to verify via #685). Will be in 2.18.2. |
Hello,
I'm trying to serialize an Enum type to XML, then read it back, but I get an input mismatch error related to JsonCreator.
Could someone provide insights into why deserialization fails?
Any help would is appreciated. Thank you.
Error
Test
Country.java
library:
com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.17.1
original report submitted here: https://groups.google.com/g/jackson-user/c/xXgyb_uKbGg/m/fCcNz9WOCAAJ
The text was updated successfully, but these errors were encountered: