java.lang.IllegalArgumentException: Document field names can't have a . in them. (Bad Key: 'dimensionArray.$.v')

JIRA | Tao Lin | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Using $addToSet and upsert in java for an embedded document having specific JSON

    Stack Overflow | 3 years ago | Ashish Pandey
    java.lang.IllegalArgumentException: Document field names can't start with '$' (Bad Key: '$addToSet')
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    MongoDBSessionStore causes java.lang.IllegalArgumentException in MongoPersistor

    GitHub | 2 years ago | stevemenke
    java.lang.IllegalArgumentException: Document field names can't start with '$' (Bad Key: '$date')
  4. 0

    Alert check errors

    GitHub | 3 years ago | lennartkoopmann
    java.lang.IllegalArgumentException: can't serialize class org.graylog2.plugin.alarms.transports.TransportConfigurationException

    6 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Document field names can't have a . in them. (Bad Key: 'dimensionArray.$.v')

      at com.mongodb.DBCollection.validateKey()
    2. MongoDB Java Driver
      DBCollection.update
      1. com.mongodb.DBCollection.validateKey(DBCollection.java:1843)
      2. com.mongodb.DBCollection._checkKeys(DBCollection.java:1803)
      3. com.mongodb.DBCollection._checkObject(DBCollection.java:1790)
      4. com.mongodb.DBCollectionImpl.update(DBCollectionImpl.java:256)
      5. com.mongodb.DBCollection.update(DBCollection.java:191)
      6. com.mongodb.DBCollection.update(DBCollection.java:224)
      6 frames