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

Samebug tips

  1. ,

    Use replaceOne instead of updateOne

Solutions on the web

via JIRA by Sebastian Binder, 1 year ago
via Stack Overflow by gstackoverflow
, 3 months ago
via Google Groups by Søren Jepsen, 8 months ago
Invalid BSON field name com.test.iot.common.schema.profile.location.LocationInfo
via Google Groups by axuan, 8 months ago
Invalid BSON field name com.domain.profile.SomeDevice.DeviceType
via Stack Overflow by Aubin
, 9 months ago
java.lang.IllegalArgumentException: Invalid BSON field name $uuid	at org.bson.AbstractBsonWriter.writeName(AbstractBsonWriter.java:494)	at org.bson.codecs.DocumentCodec.writeMap(DocumentCodec.java:188)	at org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:172)	at org.bson.codecs.DocumentCodec.writeMap(DocumentCodec.java:189)	at org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:172)	at org.bson.codecs.DocumentCodec.writeIterable(DocumentCodec.java:197)	at org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:170)	at org.bson.codecs.DocumentCodec.writeMap(DocumentCodec.java:189)	at org.bson.codecs.DocumentCodec.encode(DocumentCodec.java:131)	at org.bson.codecs.DocumentCodec.encode(DocumentCodec.java:45)	at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:63)	at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:29)	at com.mongodb.connection.InsertCommandMessage.writeTheWrites(InsertCommandMessage.java:101)	at com.mongodb.connection.InsertCommandMessage.writeTheWrites(InsertCommandMessage.java:43)	at com.mongodb.connection.BaseWriteCommandMessage.encodeMessageBodyWithMetadata(BaseWriteCommandMessage.java:129)	at com.mongodb.connection.RequestMessage.encodeWithMetadata(RequestMessage.java:160)	at com.mongodb.connection.WriteCommandProtocol.sendMessage(WriteCommandProtocol.java:212)	at com.mongodb.connection.WriteCommandProtocol.execute(WriteCommandProtocol.java:101)	at com.mongodb.connection.InsertCommandProtocol.execute(InsertCommandProtocol.java:67)	at com.mongodb.connection.InsertCommandProtocol.execute(InsertCommandProtocol.java:37)	at com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:159)	at com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:286)	at com.mongodb.connection.DefaultServerConnection.insertCommand(DefaultServerConnection.java:115)	at com.mongodb.operation.MixedBulkWriteOperation$Run$2.executeWriteCommandProtocol(MixedBulkWriteOperation.java:455)	at com.mongodb.operation.MixedBulkWriteOperation$Run$RunExecutor.execute(MixedBulkWriteOperation.java:646)	at com.mongodb.operation.MixedBulkWriteOperation$Run.execute(MixedBulkWriteOperation.java:401)	at com.mongodb.operation.MixedBulkWriteOperation$1.call(MixedBulkWriteOperation.java:179)	at com.mongodb.operation.MixedBulkWriteOperation$1.call(MixedBulkWriteOperation.java:168)