MongoDB inserting scala Map throws exception -


i have code snippet

val dbobj: basicdbobject = new basicdbobject("mymap",map) //here map scala.collection.mutable.map[string,int]  dbops.bulkwrite.find(document).upsert().update(new basicdbobject("$inc", dbobj)) 

this throws exception:

org.bson.codecs.configurtion.codecconfiguration: can't find codec class scala.collection.immutable.maplike$$anon$2

the first thing noticed exception says immutable map while have mutable map have no idea what's wrong help!


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -