-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Getting "type not supported as root type by protobuf" for serialization of short and UUID types #68
Comments
I can't say off-hand what could be causing this. Which version is this with? |
Currently, 2.8.1 but also tried the latest version 2.9.0.pr2 |
@eldadru then it probably exists in 2.8.7 too. If easy enough would be nice to double-check, but if not this is fine. |
Sorry, I already refactored the code |
@eldadru that's ok, I should be able to reproduce this easily. |
Yes, I can reproduce this. Should work, not sure yet why it does not. |
Ok. Fixing may take a while since this is part of code I did not write (it's a contribution), and some of the logic is bit difficult to follow. Fix for |
There was a bit bigger issue, but things should work significantly better after fix. Will be in 2.9.0.pr3. |
@cowtowncoder Thanks! |
@eldadru Thank you for reporting this: handling was basically wrong and could only support a small number of primitives, regular POJOs and Lists/arrays. What needed to be added was actual handling of typing as indicated by callbacks, so that (for example) date/time values are indicate as types that they would be encoded in JSON (if written as textual timestamps, then String, if I suspect there may some other rough edges but I hope these can be located and fixed over time as well. |
Hi,
I'm trying to serialize to following class to protobuf using jackson dataformats:
With the following code:
The bold line throws this exception:
Any ideas why I can't serialize those types? I couldn't find any online resource about that issue.
Thanks
The text was updated successfully, but these errors were encountered: