I'm not using any mutable data structures. This exception happens when
iterating through the result cusor and making a List out of it.
The code that does that looks like this:
val monthly = statsAggregatedColl.find(
(("statDate" $gte (DateTime.now -
12.months).withDayOfMonth(1).withTime(0,0,0,0)) ++
("range" -> "month")),
MongoDBObject(
"statDate" -> 1,
"totals" -> 1,
"uniqueVisitors" -> 1)).toList
statDate is the Date object, totals is an object that contains two
Long values, uniqueVisitors is a Long value. That's it.
As the stack trace shows, the exception is thrown when the code in org/
bson/BSON.java (static method applyDecodingHooks()) is iterating
through a List<Transformer>. That's not under my control.