java.lang.IllegalArgumentException: No match for read preference of primaryPreferred

JIRA | Bryan Reinero | 10 months ago
  1. 0

    Load data into MongoDB

    GitHub | 4 months ago | apaytuvi
    java.lang.IllegalArgumentException: No match for read preference of ${CELLBASE.DB.MONGODB.READPREFERENCE}
  2. 0
    samebug tip
    Probably you try to create an actor using actorSystem.actorOf(Props(classOf[AnyActor], args...)) where args does not match AnyActor constructor parameters.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    This is mostly caused by an async call trying to load something to an object that's already been destroyed. Use a pauseRequests() on the onDestroy method.
    via GitHub by rsaphala

    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

      No match for read preference of primaryPreferred

      at com.mongodb.ReadPreference.valueOf()
    2. MongoDB Java Driver
      ReadPreference.valueOf
      1. com.mongodb.ReadPreference.valueOf(ReadPreference.java:237)
      1 frame