Skip to content

Make BaseDocument serializable #595

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

Closed
m4ttek opened this issue Jan 14, 2025 · 1 comment · Fixed by #596
Closed

Make BaseDocument serializable #595

m4ttek opened this issue Jan 14, 2025 · 1 comment · Fixed by #596

Comments

@m4ttek
Copy link

m4ttek commented Jan 14, 2025

Is there any specific reason why BaseDocument is not serializable? It's just a wrapper for a map type.

Caused by: java.io.NotSerializableException: com.arangodb.entity.BaseDocument
	at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1187)
	at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1572)
	at java.base/java.io.ObjectOutputStream.writeRecordData(ObjectOutputStream.java:1490)
	at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1434)
	at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1181)
	at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)
	at org.apache.flink.util.InstantiationUtil.serializeObject(InstantiationUtil.java:553)
	at org.apache.flink.util.InstantiationUtil.clone(InstantiationUtil.java:624)
@rashtao
Copy link
Collaborator

rashtao commented Jan 16, 2025

Thanks for reporting, I have implemented this in #596

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

Successfully merging a pull request may close this issue.

2 participants