java.lang.RuntimeException: An error occurred while executing doInBackground()

Stack Overflow | Kartik Mehta | 7 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.

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    com.mongodb.DBPort$ScramSha1Authenticator$ScramSha1SaslClient

    at com.mongodb.DBPort$ScramSha1Authenticator.createSaslClient()
  2. MongoDB Java Driver
    DBCursor.hasNext
    1. com.mongodb.DBPort$ScramSha1Authenticator.createSaslClient(DBPort.java:639)
    2. com.mongodb.DBPort$SaslAuthenticator.authenticate(DBPort.java:895)
    3. com.mongodb.DBPort.authenticate(DBPort.java:432)
    4. com.mongodb.DBPort.checkAuth(DBPort.java:443)
    5. com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:289)
    6. com.mongodb.DBTCPConnector.call(DBTCPConnector.java:269)
    7. com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84)
    8. com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66)
    9. com.mongodb.DBCursor._check(DBCursor.java:498)
    10. com.mongodb.DBCursor._hasNext(DBCursor.java:621)
    11. com.mongodb.DBCursor.hasNext(DBCursor.java:657)
    11 frames
  3. server.request
    Mongo_Login.setUp
    1. server.request.Mongo_Login.setUp(Mongo_Login.java:36)
    1 frame
  4. com.mongocheck
    MainActivity$mRequestLogin.doInBackground
    1. com.mongocheck.MainActivity$mRequestLogin.doInBackground(MainActivity.java:81)
    2. com.mongocheck.MainActivity$mRequestLogin.doInBackground(MainActivity.java:59)
    2 frames
  5. Android Platform
    AsyncTask$2.call
    1. android.os.AsyncTask$2.call(AsyncTask.java:295)
    1 frame
  6. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    1 frame