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

Unable to serialize provided object runing java8 example #110

Open
freakrobot opened this issue Dec 28, 2018 · 4 comments
Open

Unable to serialize provided object runing java8 example #110

freakrobot opened this issue Dec 28, 2018 · 4 comments

Comments

@freakrobot
Copy link

Exception in thread "main" java.io.IOException: Unable to serialize provided object. Failed to find serializer for: class com.dslplatform.maven.Example$Model
	at com.dslplatform.json.DslJson.serialize(DslJson.java:2874)
	at com.dslplatform.maven.Example.main(Example.java:243)

I tried mavenjava8 example,and got this. Same problem when I working on my own.

@zapov
Copy link
Member

zapov commented Dec 28, 2018

Can you provide more info? Which Java? Which maven? From IDE? How do you run it?

@freakrobot
Copy link
Author

Can you provide more info? Which Java? Which maven? From IDE? How do you run it?
Sorry for the late reply.

I got the message with jdk1.8.0_191
using eclipse2018-9 and it's built-in maven, running with debug as

@zapov
Copy link
Member

zapov commented Jan 7, 2019

It seems Eclipse has it's own build methodology to run stuff ;(
You could enable annotation processor from project properties and configure it all, or you can right click pom.xml and run as Maven install
After that project should run as expected.

I'll look if there is some tweak which can be done so Eclipse copes better with DSL-JSON, but it seems to be a common problem ;(
https://stackoverflow.com/questions/14869771/how-to-run-annotation-processor-in-eclipse-on-save

@zapov
Copy link
Member

zapov commented Jan 15, 2019

I didn't have time to look into it for v1.8.5
It would be great if someone more knowledgable about Eclipse looks into it and recommends something to improve

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

No branches or pull requests

2 participants