java.lang.NoSuchMethodError: scala.collection.Seq$.unapplySeq(Lscala/collection/Seq;)Lscala/Some;

ffii.org | 7 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

    Implementation #2433: Compile demo application into jar file. - OpenCoin - tasks.ffii.org

    ffii.org | 7 months ago
    java.lang.NoSuchMethodError: scala.collection.Seq$.unapplySeq(Lscala/collection/Seq;)Lscala/Some;
  2. 0

    finagle ClientBuilder fails at runtime with scala 2.9.x

    GitHub | 6 years ago | mkhq
    java.lang.NoSuchMethodError: scala.collection.Seq$.unapplySeq(Lscala/collection/Seq;)Lscala/Some;
  3. 0

    Getting a weird java.lang.NoSuchMethodError for my classes

    Stack Overflow | 2 years ago | Zach
    java.lang.NoSuchMethodError: BST.<init>(I)V
  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/Main.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(Main.java:3) {noformat} list().par() {noformat} Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.immutable.List.par()Lscala/collection/parallel/ParIterable; at Main.main(Main.java:4) {noformat} list().init() {noformat} Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.immutable.List.init()Lscala/collection/Traversable; at Main.main(Main.java:5) {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/Main.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

    problem when running JAXB RI samples

    Oracle Community | 1 decade ago | 843834
    java.lang.NoSuchMethodError: javax.xml.parsers.SAXParserFactory.getS chema()Ljavax/xml/validation/Schema; [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.<init>( Unknown Source) [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl. newSAXParser(Unknown Source) [java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.getXMLReader( AbstractUnmarshallerImpl.java:80) [java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Abs tractUnmarshallerImpl.java:131) [java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Abs tractUnmarshallerImpl.java:178) [java]

    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

      scala.collection.Seq$.unapplySeq(Lscala/collection/Seq;)Lscala/Some;

      at com.twitter.finagle.stats.RollupStatsReceiver.com$twitter$finagle$stats$RollupStatsReceiver$$tails()
    2. finagle-core
      ClientBuilder$$anonfun$10.apply
      1. com.twitter.finagle.stats.RollupStatsReceiver.com$twitter$finagle$stats$RollupStatsReceiver$$tails(StatsReceiver.scala:107)
      2. com.twitter.finagle.stats.RollupStatsReceiver$$anon$5.<init>(StatsReceiver.scala:123)
      3. com.twitter.finagle.stats.RollupStatsReceiver.stat(StatsReceiver.scala:122)
      4. com.twitter.finagle.stats.NameTranslatingStatsReceiver.stat(StatsReceiver.scala:139)
      5. com.twitter.finagle.channel.ChannelServiceFactory.<init>(ChannelService.scala:148)
      6. com.twitter.finagle.builder.ClientBuilder$$anonfun$10.apply(ClientBuilder.scala:659)
      7. com.twitter.finagle.builder.ClientBuilder$$anonfun$10.apply(ClientBuilder.scala:638)
      7 frames
    3. Scala
      List.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
      3. scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
      4. scala.collection.immutable.List.foreach(List.scala:76)
      5. scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
      6. scala.collection.immutable.List.map(List.scala:76)
      6 frames
    4. finagle-core
      ClientBuilder.build
      1. com.twitter.finagle.builder.SocketAddressCluster.mkFactories(Cluster.scala:49)
      2. com.twitter.finagle.builder.ClientBuilder.buildFactory(ClientBuilder.scala:638)
      3. com.twitter.finagle.builder.ClientBuilder.build(ClientBuilder.scala:733)
      3 frames
    5. com.twitter.finagle
      Client.main
      1. com.twitter.finagle.opencoin.Client.Client$.main(Client.scala:36)
      2. com.twitter.finagle.opencoin.Client.Client.main(Client.scala)
      2 frames
    6. Unknown
      Main.main
      1. Main.main(Main.java:8)
      1 frame