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 Stack Overflow by IndyStef
, 1 year ago
Exception authenticating MongoCredential{mechanism=null, userName='sokrates', source='homeControl', password=<hidden>, mechanismProperties={}}
via Stack Overflow by user2777473
, 2 months ago
Exception authenticating MongoCredential{mechanism=null, userName='admin', source='admin', password=<hidden>, mechanismProperties={}}
via Google Groups by Unknown author, 1 year ago
Exception authenticating MongoCredential{mechanism=null, userName='<username>', source='<db>', password=<hidden>, mechanismProperties={}}
via GitHub by sunhongzhen
, 1 year ago
Exception authenticating MongoCredential{mechanism=null, userName='ADC137C6AF4D40F0B004CE7D4806C5ED', source='ADC137C6AF4D40F0B004CE7D4806C5ED', password=<hidden>, mechanismProperties={}}
via howtobuildsoftware.com by Unknown author, 2 years ago
Exception authenticating MongoCredential{mechanism=null, userName='<user>', source='<source>', password=<hidden>, mechanismProperties={}}
com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='sokrates', source='homeControl', password=<hidden>, mechanismProperties={}} at com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:61)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.DefaultAuthenticator.authenticate(DefaultAuthenticator.java:32)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.InternalStreamConnectionInitializer.authenticateAll(InternalStreamConnectionInitializer.java:99)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:44)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:128)[mongodb-driver-core-3.2.2.jar:na] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_92]Caused by: com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server localhost:27017. The full response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." } at com.mongodb.connection.CommandHelper.createCommandFailureException(CommandHelper.java:170)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.CommandHelper.receiveCommandResult(CommandHelper.java:123)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.CommandHelper.executeCommand(CommandHelper.java:32)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:95)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:45)[mongodb-driver-core-3.2.2.jar:na] ... 6 more