java.lang.NoSuchMethodError: com.mongodb.DBRef.<init>(Lcom/mongodb/DB;Ljava/lang/String;Ljava/lang/Object;)V*

Google Groups | Milson Munakami | 1 year ago
  1. 0

    Error using Reference Mapping

    Google Groups | 1 year ago | Milson Munakami
    java.lang.NoSuchMethodError: com.mongodb.DBRef.<init>(Lcom/mongodb/DB;Ljava/lang/String;Ljava/lang/Object;)V*
  2. 0

    Update to the latest version of mongo-java-driver.

    GitHub | 2 years ago | vkozubal
    java.lang.NoSuchMethodError: com.mongodb.DBRef.<init>(Lcom/mongodb/DB;Ljava/lang/String;Ljava/lang/Object;)V
  3. 0

    @Reference throws java.lang.NoSuchMethodError: com.mongodb.DBRef.<init>(Ljava/lang/String;Ljava/lang/Object;)V

    GitHub | 1 year ago | LmV4corbeau
    java.lang.NoSuchMethodError: com.mongodb.DBRef.<init>(Ljava/lang/String;Ljava/lang/Object;)V
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GPMONGODB-74: Exception in starting app java.lang.NoSuchMethodError: org.springframework.data.document.mongodb.MongoTemplate

    GitHub | 5 years ago | graemerocher
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoDatastore': FactoryBean threw exception on object creation; nested exception is java.lang.NoSuchMethodError: org.springframework.data.document.mongodb.MongoTemplate.<init>(Lcom/mongodb/Mongo;Ljava/lang/String;Ljava/lang/String;)V
  6. 0

    Support Mongo Java Driver 3.2.x

    GitHub | 12 months ago | rzanner
    java.lang.NoSuchMethodError: com.mongodb.MongoDatabaseImpl.<init>(Ljava/lang/String;Lorg/bson/codecs/configuration/CodecRegistry;Lcom/mongodb/ReadPreference;Lcom/mongodb/WriteConcern;Lcom/mongodb/operation/OperationExecutor;)V

    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.NoSuchMethodError

      com.mongodb.DBRef.<init>(Lcom/mongodb/DB;Ljava/lang/String;Ljava/lang/Object;)V*

      at com.google.code.morphia.mapping.Mapper.keyToRef()
    2. morphia
      DatastoreImpl.save
      1. com.google.code.morphia.mapping.Mapper.keyToRef(Mapper.java:559)
      2. com.google.code.morphia.mapping.ReferenceMapper.writeSingle(ReferenceMapper.java:51)
      3. com.google.code.morphia.mapping.ReferenceMapper.toDBObject(ReferenceMapper.java:45)
      4. com.google.code.morphia.mapping.Mapper.writeMappedField(Mapper.java:529)
      5. com.google.code.morphia.mapping.Mapper.toDBObject(Mapper.java:442)
      6. com.google.code.morphia.mapping.Mapper.toDBObject(Mapper.java:426)
      7. com.google.code.morphia.DatastoreImpl.entityToDBObj(DatastoreImpl.java:674)
      8. com.google.code.morphia.DatastoreImpl.save(DatastoreImpl.java:722)
      9. com.google.code.morphia.DatastoreImpl.save(DatastoreImpl.java:793)
      10. com.google.code.morphia.DatastoreImpl.save(DatastoreImpl.java:787)
      10 frames
    3. gpms.gui
      MorphiaReferenceExample.main
      1. gpms.gui.MorphiaReferenceExample.main(MorphiaReferenceExample.java:81)
      1 frame