I have a problem where a String field contains a period. This causes the following exception:
Caused by: java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'Stock6.tm.Azimuth') which I believe stems from restrictions in the depths of the mongo! The solution seems to be to convert the character to something else (e.g. a comma) before inserting and back again after finding. Does this seem like something the camel-mongo component should offer as an option, or even silently deal with by default? Could it be a change in the type converters? I think that uses Jackson to build the DB object and therefore could filter out and replace periods. I suppose a user could run into problems if they overrode the converters with their own. I don't know how camel works under the covers so this might not work, especially if the converters aren't used to create a real object from the DBObject returned by Mongo.