scala - Why does Play with ReactiveMongo report Disk Write failures due to java.io.NotSerializableException: reactivemongo.bson.BSONObjectID -



scala - Why does Play with ReactiveMongo report Disk Write failures due to java.io.NotSerializableException: reactivemongo.bson.BSONObjectID -

i trying utilize securesocial in combination reactivemongo. however, having problems when comes caching users. during development, user logged out each time play decides recompile files. think due next error:

[error] n.s.e.s.d.diskstoragefactory - disk write of f097d7b2db41b48eb28d73fffe4a0b7af0d5723fd5ea27c3f14c21d559c4f5b7448730955aaa95700df906ac38a4b6833de0dae859d957a368d3e5028208c5ba522ffd779ac8d9e439f2c7ec516dd4ddb0005fda0a4f5cd035c3eedec717807518b4dec5f1e6781ee55125a6ae33db50cba107bb73311078d50ee947bcd92033 failed: java.io.notserializableexception: reactivemongo.bson.bsonobjectid @ java.io.objectoutputstream.writeobject0(objectoutputstream.java:1180) ~[na:1.7.0_21] @ java.io.objectoutputstream.defaultwritefields(objectoutputstream.java:1528) ~[na:1.7.0_21] @ java.io.objectoutputstream.writeserialdata(objectoutputstream.java:1493) ~[na:1.7.0_21] @ java.io.objectoutputstream.writeordinaryobject(objectoutputstream.java:1416) ~[na:1.7.0_21] @ java.io.objectoutputstream.writeobject0(objectoutputstream.java:1174) ~[na:1.7.0_21]

i don't know how solve problem. expecting bsonobjectid serializable default since case class. hints?

if check sources of bsonobjectid turns out isn't case class, , wasn't serializable until 2 of oct when sgodbillon changed prepare bug #144 (the source)

until released, have 3 options:

run snapshot of reactive mongo run patched custom build (that create yourself) change serializing somehow (for illustration using json format or that) not serializing instances of bsonobjectid

scala playframework reactivemongo play-reactivemongo

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -