java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'abc.def')

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Ryan Liu, 1 year ago
fields stored in the db can't have . in them. (Bad Key: 'abc.def')
via Spring JIRA by Ryan Liu, 1 year ago
fields stored in the db can't have . in them. (Bad Key: 'abc.def')
via Spring JIRA by Adam Nisenbaum, 1 year ago
fields stored in the db can't have . in them. (Bad Key: 'iPhone 5.0.1')
via Spring JIRA by Adam Nisenbaum, 1 year ago
fields stored in the db can't have . in them. (Bad Key: 'iPhone 5.0.1')
via Spring JIRA by Harley Jordan, 1 year ago
fields stored in the db can't have . in them. (Bad Key: 'event.topics')
via Spring JIRA by Harley Jordan, 1 year ago
fields stored in the db can't have . in them. (Bad Key: 'event.topics')
java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'abc.def')
at com.mongodb.DBCollection.validateKey(DBCollection.java:1203)
at com.mongodb.DBCollection._checkKeys(DBCollection.java:1171)
at com.mongodb.DBCollection._checkKeys(DBCollection.java:1174)
at com.mongodb.DBCollection._checkObject(DBCollection.java:1161)
at com.mongodb.DBCollection.save(DBCollection.java:706)
at com.mongodb.DBCollection.save(DBCollection.java:691)
at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:790)
at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:368)
at org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:784)
at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:720)
at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:707)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
3 times, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.