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

JIRA | Bryan Reinero | 12 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

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