Giter Site home page Giter Site logo

Comments (9)

nmorel avatar nmorel commented on July 29, 2024

Are you using JsonFormat.Value or JsonAutoDetect.Visibility.isVisible() in your project ?
I can see these errors in a sample project but only in log level info. The compilation is still working.

from gwt-jackson.

meriouma avatar meriouma commented on July 29, 2024

Hmm no, in fact I only added the maven dependency and the gwt inherits :/

from gwt-jackson.

nmorel avatar nmorel commented on July 29, 2024

Well, I'll super source these annotations to get rid of the errors. The missing classes are not used directly anyway, the annotations are still usable.

from gwt-jackson.

nmorel avatar nmorel commented on July 29, 2024

Can you retry with the last 0.2.0-SNAPSHOT please ? The snapshot repository is indicated on README.

from gwt-jackson.

meriouma avatar meriouma commented on July 29, 2024

Thank you for your fast answers and commits!

Well now I'm getting some other problems. It is not directly related to this library, but with the usage of gwt-jackson and restygwt together. Since the com.fasterxml.jackson.annotation package is included in gwt compilation, it seems to try to create a Serializer for com.fasterxml.jackson.annotation.ObjectIdGenerators and fails there

from gwt-jackson.

nmorel avatar nmorel commented on July 29, 2024

Do you have any Object property in the object you are trying to serialize ?
If you try to serialize an Object, gwt-jackson is currently a bit stupid and will try to create a serializer for all the subtype of Object (ie all the class in the classpath).

from gwt-jackson.

meriouma avatar meriouma commented on July 29, 2024

Yeah that could be it, though it's hard to say because I have goda-time's code inside my project which has a lot of dtos. I've tried with another project and 0.2.0-SNAPSHOT is working perfectly, Thank you!

from gwt-jackson.

nmorel avatar nmorel commented on July 29, 2024

I'm glad to hear it :)
I'll see if I can throw an exception with a clear message in case the generator encounters a java.lang.Object to serialize/deserialize.

from gwt-jackson.

nmorel avatar nmorel commented on July 29, 2024

Done. In the future, it could be nice to accept Object but restrict it to basic type and maybe some configurable packages.

from gwt-jackson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.