java.lang.NoSuchMethodError: Sum.add(Ljava/lang/Short;)V | 2 months ago
  1. 0

    Autoboxing, Unboxing, and NoSuchMethodError | JavaWorld | 2 months ago
    java.lang.NoSuchMethodError: Sum.add(Ljava/lang/Short;)V
  2. 0

    Getting a weird java.lang.NoSuchMethodError for my classes

    Stack Overflow | 2 years ago | Zach
    java.lang.NoSuchMethodError: BST.<init>(I)V
  3. 0

    Issues with figaro | 3 months ago
    java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object Ljava/lang/Object; at Main$.<init>(lst-1-1.scala:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    There are several methods on List that will compile when called from Java, but fail at runtime with a NoSuchMethodError. For example: {code:title=src/SomeScala.scala} object SomeScala { def list = List(1, 2, 3) } {code} {code:title=src-java/} public class Main { public static void main(String[] args) { System.out.println(SomeScala.list().tail()); System.out.println(SomeScala.list().par()); System.out.println(SomeScala.list().init()); } } {code} All 3 of those methods will fail at runtime: list().tail(): {noformat} Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.immutable.List.tail()Lscala/collection/Traversable; at Main.main( {noformat} list().par() {noformat} Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.immutable.List.par()Lscala/collection/parallel/ParIterable; at Main.main( {noformat} list().init() {noformat} Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.immutable.List.init()Lscala/collection/Traversable; at Main.main( {noformat} The runtime type of the list is scala.collection.immutable.$colon$colon. If you were to cast it to that type, then tail() will compile and run: {code:title=src-java/} public class Main { public static void main(String[] args) { scala.collection.immutable.$colon$colon colon = (scala.collection.immutable.$colon$colon) (Object) SomeScala.list(); System.out.println(colon.tail()); //successfully prints List(2, 3) } } {code} I found this when unit tests failed when calling tail() and tried out a few other methods to find par() and init(). I assume there are other methods that would fail like this, but I didn't see any pattern. For example, both "init()" and "inits()" show up as methods on "TraversableLike", but "inits()" works.

    Scala JIRA | 4 years ago | Donny Nadolny
    java.lang.NoSuchMethodError: scala.collection.immutable.List.tail()Lscala/collection/Traversable;
  6. 0

    NoSuchMethodError? Works on a other computer??

    Oracle Community | 7 years ago | 843810
    java.lang.NoSuchMethodError: com.ib.client.EClientSocket.<init>(Lcom/ib/client/EWrapper;)V

    1 unregistered visitors
    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


      at Main.main()
    2. Unknown
      1. Main.main(
      1 frame