raulk / camel-mongodb

MongoDB Camel Component
7 stars 2 forks source link

inserting a List causes a TypeConversionException #3

Open deroude opened 8 years ago

deroude commented 8 years ago

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.