Can't find a codec for class scala.collection.immutable.Map$Map3

Hi,

I have an application using Play 2.7, Java 8, MongoDB with Morphia, and everything has been running fine. Recently, I have tried to upgrade the app to Play 2.8. For the most part, things are fine, except for one case. When writing to the database, I am getting the following error:

org.bson.codecs.configuration.CodecConfigurationException: Can’t find a codec for class scala.collection.immutable.Map$Map3

Now I know this is not exactly an issue with Play per se, and if I am understanding this correctly, seems like Scala Map is being used instead of Java Map (perhaps?) as the default. So wondering if there is a setting change with 2.7 and 2.8.

Thanks
Patrick