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

Throwing an exception when serializing a large object #1003

Closed
1ssqq1lxr opened this issue Aug 14, 2023 · 3 comments
Closed

Throwing an exception when serializing a large object #1003

1ssqq1lxr opened this issue Aug 14, 2023 · 3 comments

Comments

@1ssqq1lxr
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Provide a minimal reproducible example of the problem, ideally in the form of a runnable test-case.

Environment:

  • OS: [e.g. Ubuntu]
  • JDK Version: [8]
  • Kryo Version: [e.g. 5.4.0]

Additional context
Exception in thread "main" java.lang.ArrayStoreException: java.lang.Float
at com.esotericsoftware.kryo.serializers.DefaultArraySerializers$ObjectArraySerializer.read(DefaultArraySerializers.java:356)
at com.esotericsoftware.kryo.serializers.DefaultArraySerializers$ObjectArraySerializer.read(DefaultArraySerializers.java:299)
at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:777)
at io.github.quickmsg.common.serialize.kryo.KryoObjectSerializer.read(KryoObjectSerializer.java:41)
at io.github.quickmsg.eventbus.TransportProcessor.read(TransportProcessor.java:27)
at io.github.quickmsg.Test.main(Test.java:35)

@1ssqq1lxr
Copy link
Author

If it is a serialized small object, then there is no problem

@1ssqq1lxr
Copy link
Author

I am a serialized object array. If I report an error of 100 when it is less than the serialization capacity of 1000, everything will be normal

@theigl
Copy link
Collaborator

theigl commented Aug 14, 2023

Could you please provide a simple test-case that reproduces the issue?

@theigl theigl closed this as completed Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants