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.
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.