java.lang.IllegalStateException: state should be: w is an Integer

Spring JIRA | Christoph Strobl | 1 year 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.IllegalStateException

    state should be: w is an Integer

    at com.mongodb.assertions.Assertions.isTrue()
  2. MongoDB Java Driver
    WriteConcern.getW
    1. com.mongodb.assertions.Assertions.isTrue(Assertions.java:70)
    2. com.mongodb.WriteConcern.getW(WriteConcern.java:343)
    2 frames
  3. Spring Data MongoDB - Core
    MongoTemplate.prepareWriteConcern
    1. org.springframework.data.mongodb.core.MongoTemplate.prepareWriteConcern(MongoTemplate.java:781)
    1 frame