我正在尝试将数据保存到二进制类型的数据库中。电话是:
val query = BSONDocument("_id" -> binId)
val update = BSONDocument(
"$inc" -> BSONDocument(
"fieldA" -> 1L
))
coll.update(query, update, GetLastError(), upsert = true)
在哪里
binId = BSONBinary(id, UuidSubtype):
我从 reactivemongo 得到异常,它在日志中看起来像这样:
ERROR akka.remote.EndpointWriter ClusterSystem-akka.acto
r.default-dispatcher-3 - Transient association error (association remains live)
java.io.NotSerializableException: reactivemongo.bson.buffer.ArrayReadableBuffer
at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[na:1.7.0_45]
任何提示将不胜感激!