Skip to content
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

Can't serialize LinkedMap with Jackson Databind #8

Closed
ikitommi opened this issue May 28, 2018 · 11 comments
Closed

Can't serialize LinkedMap with Jackson Databind #8

ikitommi opened this issue May 28, 2018 · 11 comments

Comments

@ikitommi
Copy link
Contributor

isEmpty() is not implemented:

java.lang.AbstractMethodError: Method linked/map/LinkedMap.isEmpty()Z is abstract
  linked.map.LinkedMap.isEmpty(map.cljc)
  com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:627)
  com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:33)
  com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:718)
  com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:639)
  com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:33)
  com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)
  com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)
  com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3893)
  com.fasterxml.jackson.databind.ObjectMapper.writeValueAsBytes(ObjectMapper.java:3231)
  jsonista.core$write_value_as_bytes.invokeStatic(core.clj:227)
  jsonista.core$write_value_as_bytes.invoke(core.clj:219)
@ikitommi
Copy link
Contributor Author

also, .entrySet() is needed.

ikitommi added a commit to ikitommi/linked that referenced this issue Jun 15, 2018
@alexandergunnarson
Copy link

alexandergunnarson commented Jun 18, 2018

Related are serialization issues with Transit, in which .keySet() is needed.

@ikitommi
Copy link
Contributor Author

Porting all our libs to use Jsonista, and tests with linked are currently failing. Would it be possible to cut a release with tye fix?

@frankiesardo
Copy link
Owner

frankiesardo commented Jun 18, 2018 via email

@ikitommi
Copy link
Contributor Author

The projects are still on Leiningen and about to release new versions that depend on this. Would it be possible to cut a release?

@frankiesardo
Copy link
Owner

Sure I can, but the app is broken on the boot infrastructure and I have no idea why https://circleci.com/gh/frankiesardo/linked/63 If you can help me fix this I have an automated job that pushes it to clojars

@ikitommi
Copy link
Contributor Author

not a boot fan and no idea why it fails. but could it be pushed manually? Off to vacation today, would like to flush all things out before that

@ro6
Copy link

ro6 commented Oct 25, 2018

@frankiesardo Any more progress on a release incorporating ikitommi@ea58ccf? I'm depending on the @ikitommi fork ([ikitommi/linked "1.3.1-alpha1"]) for now, but would love to get back on the main line.

@martinffx
Copy link

@ikitommi was this fixed in Jsonista, I'm still getting this error when setting up a swagger in compojure api?

@ikitommi
Copy link
Contributor Author

What was the fix in jsonista? Can't recall..

@martinffx
Copy link

I excluded this lib and pulled in your copy of the jar with the fix in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants