java.lang.NoSuchMethodError: akka.stream.impl.ConstantFun$.scalaAnyTwoToNone()Lscala/Function2;

GitHub | ac2epsilon | 5 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

    akka-http hi level API example fails

    GitHub | 5 months ago | ac2epsilon
    java.lang.NoSuchMethodError: akka.stream.impl.ConstantFun$.scalaAnyTwoToNone()Lscala/Function2;

  1. max_samebug 1 times, last 5 months ago
1 unregistered visitors

Root Cause Analysis

  1. java.lang.NoSuchMethodError

    akka.stream.impl.ConstantFun$.scalaAnyTwoToNone()Lscala/Function2;

    at akka.http.impl.model.parser.HeaderParser$.Settings$default$3()
  2. akka.http.impl
    HeaderParser$.<clinit>
    1. akka.http.impl.model.parser.HeaderParser$.Settings$default$3(HeaderParser.scala:178)
    2. akka.http.impl.model.parser.HeaderParser$.<init>(HeaderParser.scala:194)
    3. akka.http.impl.model.parser.HeaderParser$.<clinit>(HeaderParser.scala)
    3 frames
  3. akka.http.scaladsl
    User$minusAgent$.apply
    1. akka.http.scaladsl.model.headers.ProductVersion$.parseMultiple(ProductVersion.scala:31)
    2. akka.http.scaladsl.model.headers.User$minusAgent$.apply(headers.scala:903)
    2 frames
  4. akka.http.impl
    ClientConnectionSettingsImpl$$anonfun$fromSubConfig$1.apply
    1. akka.http.impl.settings.ClientConnectionSettingsImpl$$anonfun$fromSubConfig$1.apply(ClientConnectionSettingsImpl.scala:40)
    2. akka.http.impl.settings.ClientConnectionSettingsImpl$$anonfun$fromSubConfig$1.apply(ClientConnectionSettingsImpl.scala:40)
    2 frames
  5. Scala
    Option.map
    1. scala.Option.map(Option.scala:146)
    1 frame
  6. akka.http.impl
    SettingsCompanion.apply
    1. akka.http.impl.settings.ClientConnectionSettingsImpl$.fromSubConfig(ClientConnectionSettingsImpl.scala:40)
    2. akka.http.impl.settings.ConnectionPoolSettingsImpl$.fromSubConfig(ConnectionPoolSettingsImpl.scala:44)
    3. akka.http.impl.settings.ConnectionPoolSettingsImpl$.fromSubConfig(ConnectionPoolSettingsImpl.scala:35)
    4. akka.http.impl.util.SettingsCompanion.apply(SettingsCompanion.scala:47)
    4 frames
  7. akka.http.scaladsl
    Http$.createExtension
    1. akka.http.scaladsl.settings.ConnectionPoolSettings$.apply(ConnectionPoolSettings.scala:48)
    2. akka.http.scaladsl.settings.ConnectionPoolSettings$.apply(ConnectionPoolSettings.scala:47)
    3. akka.http.scaladsl.settings.SettingsCompanion$class.apply(SettingsCompanion.scala:16)
    4. akka.http.scaladsl.settings.ConnectionPoolSettings$.apply(ConnectionPoolSettings.scala:47)
    5. akka.http.scaladsl.HttpExt.<init>(Http.scala:49)
    6. akka.http.scaladsl.Http$.createExtension(Http.scala:785)
    7. akka.http.scaladsl.Http$.createExtension(Http.scala:661)
    7 frames
  8. Akka Actor
    ExtensionId$class.apply
    1. akka.actor.ActorSystemImpl.registerExtension(ActorSystem.scala:745)
    2. akka.actor.ExtensionId$class.apply(Extension.scala:79)
    2 frames
  9. akka.http.scaladsl
    Http$.apply
    1. akka.http.scaladsl.Http$.apply(Http.scala:780)
    1 frame
  10. Unknown
    WebServer.main
    1. WebServer$.main(WSServer.scala:29)
    2. WebServer.main(WSServer.scala)
    2 frames
  11. 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