java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.mapping.MongoPersistentEntity.hasVersionProperty()Z

Stack Overflow | anukuls | 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.
  1. 0

    java.lang.NoSuchMethodError Error while connecting mongoDb through Spring

    Stack Overflow | 7 months ago | anukuls
    java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.mapping.MongoPersistentEntity.hasVersionProperty()Z

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.springframework.data.mongodb.core.mapping.MongoPersistentEntity.hasVersionProperty()Z

      at org.springframework.data.mongodb.core.MongoTemplate.initializeVersionProperty()
    2. Spring Data MongoDB - Core
      MongoTemplate.insert
      1. org.springframework.data.mongodb.core.MongoTemplate.initializeVersionProperty(MongoTemplate.java:669)
      2. org.springframework.data.mongodb.core.MongoTemplate.doInsert(MongoTemplate.java:651)
      3. org.springframework.data.mongodb.core.MongoTemplate.insert(MongoTemplate.java:613)
      4. org.springframework.data.mongodb.core.MongoTemplate.insert(MongoTemplate.java:604)
      4 frames
    3. com.storeApp.core
      StoreMainApp.main
      1. com.storeApp.core.StoreMainApp.main(StoreMainApp.java:33)
      1 frame