java.lang.IllegalArgumentException: fields stored in the db can't start with '$' (Bad Key: '$cglib_prop_propertyName')

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 GitHub by tiagoboldt
, 2 years ago
fields stored in the db can't start with '$' (Bad Key: '$outer')
via GitHub by rktoomey
, 11 months ago
fields stored in the db can't have . in them. (Bad Key: '_id.ticker')
via GitHub by Gottexbrokerssa
, 2 years ago
fields stored in the db can't have . in them. (Bad Key: '_id.ticker')
via GitHub by Gottexbrokerssa
, 11 months ago
fields stored in the db can't have . in them. (Bad Key: '_id.ticker')
java.lang.IllegalArgumentException: fields stored in the db can't start with '$' (Bad Key: '$cglib_prop_propertyName')
at com.mongodb.DBCollection.validateKey(DBCollection.java:1450)
at com.mongodb.DBCollection._checkKeys(DBCollection.java:1410)
at com.mongodb.DBCollection._checkObject(DBCollection.java:1397)
at com.mongodb.DBCollection.save(DBCollection.java:800)
at com.mongodb.DBCollection.save(DBCollection.java:786)

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

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