Spring MongoDB org.springframework.core.convert.ConvertorNotFoundException
===

I am using Java Spring with MongoDB. Below is the code.

In the Spring Bean Configuration file I have:

<mongo:mongo host="localhost" port="27017" />
<mongo:db-factory dbname="database3" mongo-ref="mongo" />

<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
    <constructor-arg name="mongoDbFactory" />
</bean>


When using mongoTemplate to get data using findOne method I get the following exception

org.springframework.core.convert.ConvertorNotFoundException No convertor found capable of converting from java.lang.Integer to java.lang.String

Data is being added into the database. The Id variable is a String.

Can you help

Any ideas?