-
-
Notifications
You must be signed in to change notification settings - Fork 228
Disabling repairing namespaces makes the serializer fail with JsonGenerationException: Unbound namespace URI '' #376
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
Comments
Workaround is to set WstxInputProperties.P_RETURN_NULL_FOR_DEFAULT_NAMESPACE to true:
|
That sounds like a problem, but what would be needed would be reproduction including value being serialized. "No namespace" case (URI of "") should definitely be handled by writers correctly One thing I would suggest would be using a later woodstox version (I think 5.3.0 is that latest/last 5.x), although that may not solve this issue. So: with little bit more code I might be able to figure out what is going on. |
Forgot to mention: disabling of namespace-repairing is NOT supported -- it must be left enabled. Reference to |
So, as per my earlier note, this may be outside of supported usage, but if I could get bit more complete reproduction (just basically POJO being serialized), I could rule it out. |
Can not reproduce currently, closing; may be reopened with reproduction. |
The following code:
Fails with:
woodstox-core-5.1.0.jar, jackson-dataformat-xml-2.9.9.jar.
It looks to me as if the serializer was complaining about the default empty prefix '' not being mapped, which sounds like something that should be mapped by default.
The text was updated successfully, but these errors were encountered: