inserting a List causes a TypeConversionException
deroude opened this issue · 0 comments
deroude commented
in MongoDbProducer.doInsert, there is this line:
Object insert = exchange.getIn().getBody(DBObject.class);
that throws exception instead of silently outputting null.
The body is of type ArrayList -- so the call exchange.getIn().getBody(List.class) would be successful, but it never gets there.