java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder()Lorg/apache/commons/cli/Option$Builder;

GitHub | is03wlei | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    java binary uses the wrong version of runtime dependency

    GitHub | 7 months ago | is03wlei
    java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder()Lorg/apache/commons/cli/Option$Builder;
  2. 0

    HiBench spark run.sh issue

    GitHub | 2 months ago | kkuser
    java.lang.NoSuchMethodError: scala.reflect.api.JavaUniverse.runtimeMirror(Ljava/lang/ClassLoader;)Lscala/reflect/api/JavaMirrors$JavaMirror;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.commons.cli.Option.builder()Lorg/apache/commons/cli/Option$Builder;

      at com.didi.anomaly.GmmEM.getOptions()
    2. com.didi.anomaly
      GmmEM.main
      1. com.didi.anomaly.GmmEM.getOptions(GmmEM.java:68)
      2. com.didi.anomaly.GmmEM.gmmRun(GmmEM.java:117)
      3. com.didi.anomaly.GmmEM.main(GmmEM.java:104)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    4. Spark
      SparkSubmit.main
      1. org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
      2. org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
      3. org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
      4. org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
      5. org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
      5 frames