java.lang.NoSuchMethodError: org.apache.spark.SparkContext.emptyRDD(Lscala/reflect/ClassTag;)Lorg/apache/spark/rdd/EmptyRDD;

GitHub | Georgehe4 | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 5#252740059

    GitHub | 4 months ago | Georgehe4
    java.lang.NoSuchMethodError: org.apache.spark.SparkContext.emptyRDD(Lscala/reflect/ClassTag;)Lorg/apache/spark/rdd/EmptyRDD;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.spark.SparkContext.emptyRDD(Lscala/reflect/ClassTag;)Lorg/apache/spark/rdd/EmptyRDD;

      at org.bdgenomics.mango.models.LazyMaterialization.put()
    2. org.bdgenomics.mango
      VizServlet$$anonfun$11.apply
      1. org.bdgenomics.mango.models.LazyMaterialization.put(LazyMaterialization.scala:136)
      2. org.bdgenomics.mango.models.LazyMaterialization.getJson(LazyMaterialization.scala:90)
      3. org.bdgenomics.mango.cli.VizServlet$$anonfun$11.apply(VizReads.scala:314)
      3 frames
    3. org.scalatra
      ScalatraBase$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.ScalatraBase$class.withRouteMultiParams(ScalatraBase.scala:356)
      4 frames
    4. org.bdgenomics.mango
      VizServlet.withRouteMultiParams
      1. org.bdgenomics.mango.cli.VizServlet.withRouteMultiParams(VizReads.scala:206)
      1 frame
    5. org.scalatra
      ScalatraBase$class.invoke
      1. org.scalatra.ScalatraBase$class.invoke(ScalatraBase.scala:278)
      1 frame
    6. org.bdgenomics.mango
      VizServlet.invoke
      1. org.bdgenomics.mango.cli.VizServlet.invoke(VizReads.scala:206)
      1 frame
    7. 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
    8. Scala
      Option.flatMap
      1. scala.Option.flatMap(Option.scala:171)
      1 frame
    9. 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
    10. Scala
      Stream.flatMap
      1. scala.collection.immutable.Stream.flatMap(Stream.scala:493)
      1 frame
    11. org.scalatra
      ScalatraBase$class.runRoutes
      1. org.scalatra.ScalatraBase$class.runRoutes(ScalatraBase.scala:250)
      1 frame
    12. org.bdgenomics.mango
      VizServlet.runRoutes
      1. org.bdgenomics.mango.cli.VizServlet.runRoutes(VizReads.scala:206)
      1 frame
    13. 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
    14. org.bdgenomics.mango
      VizServlet.executeRoutes
      1. org.bdgenomics.mango.cli.VizServlet.executeRoutes(VizReads.scala:206)
      1 frame
    15. 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
    16. Scala
      DynamicVariable.withValue
      1. scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
      1 frame
    17. org.scalatra
      DynamicScope$class.withResponse
      1. org.scalatra.DynamicScope$class.withResponse(DynamicScope.scala:78)
      1 frame
    18. org.bdgenomics.mango
      VizServlet.withResponse
      1. org.bdgenomics.mango.cli.VizServlet.withResponse(VizReads.scala:206)
      1 frame
    19. org.scalatra
      DynamicScope$$anonfun$withRequestResponse$1.apply
      1. org.scalatra.DynamicScope$$anonfun$withRequestResponse$1.apply(DynamicScope.scala:58)
      1 frame
    20. Scala
      DynamicVariable.withValue
      1. scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
      1 frame
    21. org.scalatra
      DynamicScope$class.withRequest
      1. org.scalatra.DynamicScope$class.withRequest(DynamicScope.scala:69)
      1 frame
    22. org.bdgenomics.mango
      VizServlet.withRequest
      1. org.bdgenomics.mango.cli.VizServlet.withRequest(VizReads.scala:206)
      1 frame
    23. org.scalatra
      DynamicScope$class.withRequestResponse
      1. org.scalatra.DynamicScope$class.withRequestResponse(DynamicScope.scala:57)
      1 frame
    24. org.bdgenomics.mango
      VizServlet.withRequestResponse
      1. org.bdgenomics.mango.cli.VizServlet.withRequestResponse(VizReads.scala:206)
      1 frame
    25. org.scalatra
      ScalatraBase$class.handle
      1. org.scalatra.ScalatraBase$class.handle(ScalatraBase.scala:125)
      1 frame
    26. org.bdgenomics.mango
      VizServlet.org$scalatra$servlet$ServletBase$$super$handle
      1. org.bdgenomics.mango.cli.VizServlet.org$scalatra$servlet$ServletBase$$super$handle(VizReads.scala:206)
      1 frame
    27. org.scalatra.servlet
      ServletBase$class.handle
      1. org.scalatra.servlet.ServletBase$class.handle(ServletBase.scala:53)
      1 frame
    28. org.bdgenomics.mango
      VizServlet.handle
      1. org.bdgenomics.mango.cli.VizServlet.handle(VizReads.scala:206)
      1 frame
    29. org.scalatra
      ScalatraServlet$class.service
      1. org.scalatra.ScalatraServlet$class.service(ScalatraServlet.scala:60)
      1 frame
    30. org.bdgenomics.mango
      VizServlet.service
      1. org.bdgenomics.mango.cli.VizServlet.service(VizReads.scala:206)
      1 frame
    31. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      1 frame
    32. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      12. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      13. org.eclipse.jetty.server.Server.handle(Server.java:499)
      14. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
      15. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      16. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      17. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      18. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      18 frames
    33. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame