notserializable exception when trying to serialize java map converted from scala -


i have method serialize java map map<uuid,string>. works fine. can serialize , deserialize in java.

but have call method scala , calling code.

def customserialize:unit = { serializer.serialize(modmap(scalamap))  def modmap(oldmap : map[uuid,someobject]) : java.util.map[uuid,java.lang.string] = {         oldmap map { case(k,v) => (k->v.name)} } 

the scala map scala.collection.map , using import scala.collection.javaconversions._ doing conversion.

when run code error

java.io.notserializableexception: scala.collection.javaconversions$mapwrapper @ java.io.objectoutputstream.writeobject0(objectoutputstream.java:1180) @ java.io.objectoutputstream.writeobject(objectoutputstream.java:346) 

it looks need 1 more conversion javaconversions$mapwrapper java.util.map. correct? there way this?

personally, i'd open enhancement issue requesting these wrappers serializable. not in short term, but...

have tried stuff in javaconverters instead?


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -