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

Deserialization of a simple case class containing one Double field and one Float field fails #3

Open
crumbpicker opened this issue Sep 16, 2014 · 0 comments

Comments

@crumbpicker
Copy link

Here is an example:
case class Prim(c3:Double, c2:Float)
val prim = Prim(0.32434234234, 43.43234f)
val encoded = prim.pickle
val decoded = encoded.unpickle[Prim]

Here is the throw Exception:
Exception in thread "main" java.nio.BufferOverflowException
at java.nio.Buffer.nextPutIndex(Buffer.java:521)
at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:169)
at scala.pickling.msgpack.MsgPackOutputArray.writeByte(MsgPackWriter.scala:241)
at scala.pickling.msgpack.MsgPackOutputArray.writeInt32(MsgPackWriter.scala:253)
at scala.pickling.msgpack.MsgPackPickleBuilder$$anonfun$beginEntry$1.apply(package.scala:219)
at scala.pickling.msgpack.MsgPackPickleBuilder$$anonfun$beginEntry$1.apply(package.scala:145)
at scala.pickling.PickleTools$class.withHints(Tools.scala:436)
at scala.pickling.msgpack.MsgPackPickleBuilder.withHints(package.scala:130)
at scala.pickling.msgpack.MsgPackPickleBuilder.beginEntry(package.scala:145)
at scala.pickling.msgpack.MsgPackPickleBuilder.beginEntry(package.scala:130)
at scala.pickling.CorePicklersUnpicklers$PrimitivePicklerUnpickler.pickle(Custom.scala:368)
at scala.pickling.msgpack.MsgPackPickleBuilder.putField(package.scala:250)
at scala.pickling.msgpack.MsgPackPickleBuilder.putField(package.scala:130)

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

1 participant