java.lang.NoSuchMethodError: com.mongodb.operation.MixedBulkWriteOperation.bypassDocumentValidation(Ljava/lang/Boolean;)Lcom/mongodb/operation/MixedBulkWriteOperation;

Stack Overflow | Russ | 4 months ago
  1. 0

    Scalatra and Mongo insertOne error - java.lang.NoSuchMethodError: com.mongodb.operation.MixedBulkWriteOperation.bypassDocumentValidation

    Stack Overflow | 4 months ago | Russ
    java.lang.NoSuchMethodError: com.mongodb.operation.MixedBulkWriteOperation.bypassDocumentValidation(Ljava/lang/Boolean;)Lcom/mongodb/operation/MixedBulkWriteOperation;
  2. 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
  3. 0

    Mongo-Scala driver giving No Such method error

    Stack Overflow | 1 year ago | Raman Goyal
    java.lang.NoSuchMethodError: com.mongodb.MongoException.fromThrowable(Ljava/lang/Throwable;)Lcom/mongodb/MongoException;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting java.lang.NoSuchMethodError: com.mongodb.MongoClient.getDatabase(Ljava/lang/String;)Lcom/mongodb/client/MongoDatabase error when using extent.x()

    GitHub | 4 months ago | manjunatha056
    java.lang.NoSuchMethodError: com.mongodb.MongoClient.getDatabase(Ljava/lang/String;)Lcom/mongodb/client/MongoDatabase;
  6. 0

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

    GitHub | 1 year ago | vkozubal
    java.lang.NoSuchMethodError: com.mongodb.DBRef.<init>(Lcom/mongodb/DB;Ljava/lang/String;Ljava/lang/Object;)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.operation.MixedBulkWriteOperation.bypassDocumentValidation(Ljava/lang/Boolean;)Lcom/mongodb/operation/MixedBulkWriteOperation;

      at com.mongodb.async.client.MongoCollectionImpl.executeSingleWriteRequest()
    2. com.mongodb.async
      MongoCollectionImpl.insertOne
      1. com.mongodb.async.client.MongoCollectionImpl.executeSingleWriteRequest(MongoCollectionImpl.java:588)
      2. com.mongodb.async.client.MongoCollectionImpl.insertOne(MongoCollectionImpl.java:314)
      3. com.mongodb.async.client.MongoCollectionImpl.insertOne(MongoCollectionImpl.java:305)
      3 frames
    3. org.mongodb.scala
      ObservableHelper$$anon$2.apply
      1. org.mongodb.scala.MongoCollection$$anonfun$insertOne$1.apply(MongoCollection.scala:251)
      2. org.mongodb.scala.MongoCollection$$anonfun$insertOne$1.apply(MongoCollection.scala:251)
      3. org.mongodb.scala.internal.ObservableHelper$$anon$2.apply(ObservableHelper.scala:42)
      4. org.mongodb.scala.internal.ObservableHelper$$anon$2.apply(ObservableHelper.scala:40)
      4 frames
    4. com.mongodb.async
      AbstractSubscription.request
      1. com.mongodb.async.client.SingleResultCallbackSubscription.requestInitialData(SingleResultCallbackSubscription.java:39)
      2. com.mongodb.async.client.AbstractSubscription.tryRequestInitialData(AbstractSubscription.java:151)
      3. com.mongodb.async.client.AbstractSubscription.request(AbstractSubscription.java:82)
      3 frames
    5. org.mongodb.scala
      Observer$class.onSubscribe
      1. org.mongodb.scala.ObservableImplicits$BoxedSubscription.request(ObservableImplicits.scala:382)
      2. org.mongodb.scala.Observer$class.onSubscribe(Observer.scala:49)
      2 frames
    6. com.syncroness.salesapp
      SalesAppScalatraServlet$$anonfun$1$$anon$1.onSubscribe
      1. com.syncroness.salesapp.SalesAppScalatraServlet$$anonfun$1$$anon$1.onSubscribe(SalesAppScalatraServlet.scala:35)
      1 frame
    7. org.mongodb.scala
      Observer$class.onSubscribe
      1. org.mongodb.scala.Observer$class.onSubscribe(Observer.scala:85)
      1 frame
    8. com.syncroness.salesapp
      SalesAppScalatraServlet$$anonfun$1$$anon$1.onSubscribe
      1. com.syncroness.salesapp.SalesAppScalatraServlet$$anonfun$1$$anon$1.onSubscribe(SalesAppScalatraServlet.scala:35)
      1 frame
    9. com.mongodb.async
      Observables$2.subscribe
      1. com.mongodb.async.client.SingleResultCallbackSubscription.<init>(SingleResultCallbackSubscription.java:34)
      2. com.mongodb.async.client.Observables$2.subscribe(Observables.java:76)
      2 frames
    10. org.mongodb.scala
      ObservableImplicits$BoxedObservable.subscribe
      1. org.mongodb.scala.ObservableImplicits$BoxedObservable.subscribe(ObservableImplicits.scala:366)
      1 frame
    11. com.syncroness.salesapp
      SalesAppScalatraServlet$$anonfun$1.apply
      1. com.syncroness.salesapp.SalesAppScalatraServlet$$anonfun$1.apply$mcV$sp(SalesAppScalatraServlet.scala:35)
      2. com.syncroness.salesapp.SalesAppScalatraServlet$$anonfun$1.apply(SalesAppScalatraServlet.scala:31)
      3. com.syncroness.salesapp.SalesAppScalatraServlet$$anonfun$1.apply(SalesAppScalatraServlet.scala:31)
      3 frames
    12. org.scalatra
      ApiFormats$class.withRouteMultiParams
      1. org.scalatra.ScalatraBase$class.org$scalatra$ScalatraBase$$liftAction(ScalatraBase.scala:285)
      2. org.scalatra.ScalatraBase$$anonfun$invoke$1.apply(ScalatraBase.scala:279)
      3. org.scalatra.ScalatraBase$$anonfun$invoke$1.apply(ScalatraBase.scala:279)
      4. org.scalatra.ApiFormats$class.withRouteMultiParams(ApiFormats.scala:189)
      4 frames
    13. com.syncroness.salesapp
      SalesAppScalatraServlet.withRouteMultiParams
      1. com.syncroness.salesapp.SalesAppScalatraServlet.withRouteMultiParams(SalesAppScalatraServlet.scala:12)
      1 frame
    14. org.scalatra
      ScalatraBase$class.invoke
      1. org.scalatra.ScalatraBase$class.invoke(ScalatraBase.scala:278)
      1 frame
    15. com.syncroness.salesapp
      SalesAppScalatraServlet.org$scalatra$json$JsonSupport$$super$invoke
      1. com.syncroness.salesapp.SalesAppScalatraServlet.org$scalatra$json$JsonSupport$$super$invoke(SalesAppScalatraServlet.scala:12)
      1 frame
    16. org.scalatra.json
      JsonSupport$$anonfun$invoke$1.apply
      1. org.scalatra.json.JsonSupport$$anonfun$invoke$1.apply(JsonSupport.scala:88)
      2. org.scalatra.json.JsonSupport$$anonfun$invoke$1.apply(JsonSupport.scala:82)
      2 frames
    17. org.scalatra
      ApiFormats$class.withRouteMultiParams
      1. org.scalatra.ApiFormats$class.withRouteMultiParams(ApiFormats.scala:189)
      1 frame
    18. com.syncroness.salesapp
      SalesAppScalatraServlet.withRouteMultiParams
      1. com.syncroness.salesapp.SalesAppScalatraServlet.withRouteMultiParams(SalesAppScalatraServlet.scala:12)
      1 frame
    19. org.scalatra.json
      JsonSupport$class.invoke
      1. org.scalatra.json.JsonSupport$class.invoke(JsonSupport.scala:82)
      1 frame
    20. com.syncroness.salesapp
      SalesAppScalatraServlet.invoke
      1. com.syncroness.salesapp.SalesAppScalatraServlet.invoke(SalesAppScalatraServlet.scala:12)
      1 frame
    21. org.scalatra
      ScalatraBase$$anonfun$runRoutes$1$$anonfun$apply$8.apply
      1. org.scalatra.ScalatraBase$$anonfun$runRoutes$1$$anonfun$apply$8.apply(ScalatraBase.scala:253)
      2. org.scalatra.ScalatraBase$$anonfun$runRoutes$1$$anonfun$apply$8.apply(ScalatraBase.scala:251)
      2 frames
    22. Scala
      Option.flatMap
      1. scala.Option.flatMap(Option.scala:171)
      1 frame
    23. org.scalatra
      ScalatraBase$$anonfun$runRoutes$1.apply
      1. org.scalatra.ScalatraBase$$anonfun$runRoutes$1.apply(ScalatraBase.scala:251)
      2. org.scalatra.ScalatraBase$$anonfun$runRoutes$1.apply(ScalatraBase.scala:250)
      2 frames
    24. Scala
      Stream.flatMap
      1. scala.collection.immutable.Stream.flatMap(Stream.scala:489)
      1 frame
    25. org.scalatra
      ScalatraBase$class.runRoutes
      1. org.scalatra.ScalatraBase$class.runRoutes(ScalatraBase.scala:250)
      1 frame
    26. com.syncroness.salesapp
      SalesAppScalatraServlet.runRoutes
      1. com.syncroness.salesapp.SalesAppScalatraServlet.runRoutes(SalesAppScalatraServlet.scala:12)
      1 frame
    27. org.scalatra
      ScalatraBase$class.executeRoutes
      1. org.scalatra.ScalatraBase$class.runActions$1(ScalatraBase.scala:175)
      2. org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply$mcV$sp(ScalatraBase.scala:187)
      3. org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply(ScalatraBase.scala:187)
      4. org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply(ScalatraBase.scala:187)
      5. org.scalatra.ScalatraBase$class.org$scalatra$ScalatraBase$$cradleHalt(ScalatraBase.scala:205)
      6. org.scalatra.ScalatraBase$class.executeRoutes(ScalatraBase.scala:187)
      6 frames
    28. com.syncroness.salesapp
      SalesAppScalatraServlet.executeRoutes
      1. com.syncroness.salesapp.SalesAppScalatraServlet.executeRoutes(SalesAppScalatraServlet.scala:12)
      1 frame
    29. org.scalatra
      ScalatraBase$$anonfun$handle$1.apply
      1. org.scalatra.ScalatraBase$$anonfun$handle$1.apply$mcV$sp(ScalatraBase.scala:126)
      2. org.scalatra.ScalatraBase$$anonfun$handle$1.apply(ScalatraBase.scala:126)
      3. org.scalatra.ScalatraBase$$anonfun$handle$1.apply(ScalatraBase.scala:126)
      3 frames
    30. Scala
      DynamicVariable.withValue
      1. scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
      1 frame
    31. org.scalatra
      DynamicScope$class.withResponse
      1. org.scalatra.DynamicScope$class.withResponse(DynamicScope.scala:78)
      1 frame
    32. com.syncroness.salesapp
      SalesAppScalatraServlet.withResponse
      1. com.syncroness.salesapp.SalesAppScalatraServlet.withResponse(SalesAppScalatraServlet.scala:12)
      1 frame
    33. org.scalatra
      DynamicScope$$anonfun$withRequestResponse$1.apply
      1. org.scalatra.DynamicScope$$anonfun$withRequestResponse$1.apply(DynamicScope.scala:58)
      1 frame
    34. Scala
      DynamicVariable.withValue
      1. scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
      1 frame
    35. org.scalatra
      DynamicScope$class.withRequest
      1. org.scalatra.DynamicScope$class.withRequest(DynamicScope.scala:69)
      1 frame
    36. com.syncroness.salesapp
      SalesAppScalatraServlet.withRequest
      1. com.syncroness.salesapp.SalesAppScalatraServlet.withRequest(SalesAppScalatraServlet.scala:12)
      1 frame
    37. org.scalatra
      DynamicScope$class.withRequestResponse
      1. org.scalatra.DynamicScope$class.withRequestResponse(DynamicScope.scala:57)
      1 frame
    38. com.syncroness.salesapp
      SalesAppScalatraServlet.withRequestResponse
      1. com.syncroness.salesapp.SalesAppScalatraServlet.withRequestResponse(SalesAppScalatraServlet.scala:12)
      1 frame
    39. org.scalatra
      ScalatraBase$class.handle
      1. org.scalatra.ScalatraBase$class.handle(ScalatraBase.scala:125)
      1 frame
    40. com.syncroness.salesapp
      SalesAppScalatraServlet.org$scalatra$servlet$ServletBase$$super$handle
      1. com.syncroness.salesapp.SalesAppScalatraServlet.org$scalatra$servlet$ServletBase$$super$handle(SalesAppScalatraServlet.scala:12)
      1 frame
    41. org.scalatra.servlet
      ServletBase$class.handle
      1. org.scalatra.servlet.ServletBase$class.handle(ServletBase.scala:53)
      1 frame
    42. com.syncroness.salesapp
      SalesAppScalatraServlet.org$scalatra$scalate$ScalateSupport$$super$handle
      1. com.syncroness.salesapp.SalesAppScalatraServlet.org$scalatra$scalate$ScalateSupport$$super$handle(SalesAppScalatraServlet.scala:12)
      1 frame
    43. org.scalatra.scalate
      ScalateSupport$class.handle
      1. org.scalatra.scalate.ScalateSupport$class.handle(ScalateSupport.scala:152)
      1 frame
    44. com.syncroness.salesapp
      SalesAppScalatraServlet.handle
      1. com.syncroness.salesapp.SalesAppScalatraServlet.handle(SalesAppScalatraServlet.scala:12)
      1 frame
    45. org.scalatra
      ScalatraServlet$class.service
      1. org.scalatra.ScalatraServlet$class.service(ScalatraServlet.scala:60)
      1 frame
    46. com.syncroness.salesapp
      SalesAppScalatraServlet.service
      1. com.syncroness.salesapp.SalesAppScalatraServlet.service(SalesAppScalatraServlet.scala:12)
      1 frame
    47. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      1 frame
    48. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:751)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:566)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:498)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199)
      12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
      13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:98)
      14. org.eclipse.jetty.server.Server.handle(Server.java:461)
      15. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284)
      16. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
      17. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534)
      18. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
      19. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
      19 frames
    49. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame