com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=PLAIN, userName='admin', source='yapdns', password=<hidden>, mechanismProperties={}}

Stack Overflow | Nerotix | 11 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    MongoDB elasticsearch mongolastic error

    Stack Overflow | 11 months ago | Nerotix
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=PLAIN, userName='admin', source='yapdns', password=<hidden>, mechanismProperties={}}
  2. 0

    Error with getting info from mongo

    GitHub | 11 months ago | nerotix
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=PLAIN, userName='admin', source='yapdns', password=<hidden>, mechanismProperties={}}
  3. 0

    MongoDB 3.2.1 not getting connected from Java code

    Stack Overflow | 1 year ago | Abhinab Kanrar
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='root', source='app', password=<hidden>, mechanismProperties={}}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Check MongoDB authentication with Java 3.0 driver - Stack Overflow

    xluat.com | 2 years ago
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='<user>', source='<source>', password=<hidden>, mechanismProperties={}}
  6. 0

    Java - Check MongoDB authentication with Java 3.0 driver

    howtobuildsoftware.com | 1 year ago
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='<user>', source='<source>', password=<hidden>, mechanismProperties={}}

  1. pulse00 3 times, last 5 days ago
  2. Dunmer 147 times, last 2 months ago
8 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. com.mongodb.MongoCommandException

    Command failed with error 59: 'no such cmd: saslStart' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "no such cmd: saslStart", "code" : 59, "bad cmd" : { "saslStart" : 1, "mechanism" : "PLAIN", "payload" : { "$binary" : "YWRtaW4AYWRtaW4AYWRtaW4xMjM=", "$type" : "0" } } }

    at com.mongodb.connection.CommandHelper.createCommandFailureException()
  2. MongoDB Java Driver
    DefaultServerMonitor$ServerMonitorRunnable.run
    1. com.mongodb.connection.CommandHelper.createCommandFailureException(CommandHelper.java:170)
    2. com.mongodb.connection.CommandHelper.receiveCommandResult(CommandHelper.java:123)
    3. com.mongodb.connection.CommandHelper.executeCommand(CommandHelper.java:32)
    4. com.mongodb.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:95)
    5. com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:45)
    6. com.mongodb.connection.InternalStreamConnectionInitializer.authenticateAll(InternalStreamConnectionInitializer.java:99)
    7. com.mongodb.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:44)
    8. com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)
    9. com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:128)
    9 frames
  3. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame