Totally agree .. However, maybe explaining my error better, can give me a clue.
I suspect that my mistake can be due to two things: (1) Some conversion between scala - java8, given the new "compatibility" between scala 12 and java 8 .. (2) The fact that scala 2.11 and 2.12 are not binary compatible ---------------------------- For (1): See: "Scala and Java 8 interop is also improved for functional code, the methods that take functions can easily be called in both directions using lambda syntax. SAM types are treated uniformly - from type checking through code generation. In the class file is generated for lambda; invokedynamic is used instead. ( http://www.scala-lang.org/news/2.12.0 ) Maybe some issue still unknown? I am not sure about this point, but I mention it just in case ---------------------------- In this case, the line on which I am failing is: TlsSupport.atop (tls) "Previously, the defined bidiflows are: Val tlsSupport: BidiFlow [ByteString, TLSProtocol.SslTlsOutbound, TLSProtocol.SslTlsInbound, ByteString, NotUsed] = BidiFlow.fromFlows ( Flow [ByteString] .map (TLSProtocol.SendBytes (_)), Flow [TLSProtocol.SslTlsInbound] .collect (pf)) Val tls: BidiFlow [TLSProtocol.SslTlsOutbound, ByteString, ByteString, TLSProtocol.SslTlsInbound, NotUsed] = TLS (sslContext, firstSession, role) " Anyway, I'll look at the dependencies. Thank you El miércoles, 15 de marzo de 2017, 10:50:38 (UTC-3), Konrad Malawski escribió: > > Uhm... please use some serious dependency management tool. > You're missing ssl-config. > > Please read the dependencies that the projects have, you simply are > missing things from your dependencies. > > -- > Konrad `ktoso` Malawski > Akka <http://akka.io> @ Lightbend <http://lightbend.com> > > On 15 March 2017 at 14:42:15, Pablo Milanese ([email protected] > <javascript:>) wrote: > > Buenas! > > Java 1.8.0_121 > Scala 2.12.1 > > > I have no SBT .. We use Ivy in a local repository: > > For example: <dependency org="com.typesafe.akka" name="akka-bundle" > rev="2.4.17"/> > > (All the next jars, are for scala 2.12.. for example: akka-stream_2.12) > > Jars: > > akka-actor.jar > akka-camel.jar > akka-protobuf.jar > akka-remote.jar > akka-slf4j.jar > akka-stream-testkit.jar > akka-stream.jar > akka-testkit.jar > config.jar > reactive-streams.jar > scala-java8-compat_2.12-0.8.0.jar > ssl-config-core_2.12.0-M3-0.2.1.jar > scala-compiler.jar > scala-library-sources.jar > scala-library.jar > scala-parser-combinators.jar > scala-reflect.jar > scala-xml.jar > scalap.jar > > > I think these are the most important. > > Thank you ! > > > > > El miércoles, 15 de marzo de 2017, 7:41:08 (UTC-3), Rafał Krzewski > escribió: >> >> What JVM and Scala versions are you using? What are your project's >> dependency versions? >> hint: >> os shell> java -version >> sbt> scalaVersion >> sbt> libraryDependencies >> >> cheers, >> Rafał >> >> W dniu wtorek, 14 marca 2017 20:23:15 UTC+1 użytkownik Pablo Milanese >> napisał: >>> >>> Hi Konrad, >>> >>> At the first view, I think the could not fnid any error .. but please >>> take into account that I am a scala beginner :) >>> Now, I am trying to test the code, and I am having a problem whe I >>> execute the line: >>> >>> val sslConfig: AkkaSSLConfig = AkkaSSLConfig.get(system) >>> >>> >>> java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: >>> scala/runtime/java8/JFunction1 >>> at >>> com.typesafe.sslconfig.util.ConfigLoader$.<init>(Configuration.scala:180) >>> at >>> com.typesafe.sslconfig.util.ConfigLoader$.<clinit>(Configuration.scala) >>> at com.typesafe.sslconfig.ssl.SSLConfigParser.parse(Config.scala:495) >>> at com.typesafe.sslconfig.ssl.SSLConfigFactory$.parse(Config.scala:483) >>> at >>> com.typesafe.sslconfig.akka.AkkaSSLConfig$.defaultSSLConfigSettings(AkkaSSLConfig.scala:34) >>> at >>> com.typesafe.sslconfig.akka.AkkaSSLConfig$.createExtension(AkkaSSLConfig.scala:29) >>> at >>> com.typesafe.sslconfig.akka.AkkaSSLConfig$.createExtension(AkkaSSLConfig.scala:19) >>> at akka.actor.ActorSystemImpl.registerExtension(ActorSystem.scala:899) >>> at akka.actor.ExtensionId.apply(Extension.scala:79) >>> at akka.actor.ExtensionId.apply$(Extension.scala:79) >>> at >>> com.typesafe.sslconfig.akka.AkkaSSLConfig$.apply(AkkaSSLConfig.scala:24) >>> at >>> com.typesafe.sslconfig.akka.AkkaSSLConfig$.apply(AkkaSSLConfig.scala:19) >>> at akka.actor.ExtensionId.get(Extension.scala:91) >>> at akka.actor.ExtensionId.get$(Extension.scala:91) >>> at com.typesafe.sslconfig.akka.AkkaSSLConfig$.get(AkkaSSLConfig.scala:23) >>> at >>> com.paytrue.swakka.actors.channels.AbstractTcpServer.tlsStage(TcpServer.scala:88) >>> at >>> com.paytrue.swakka.actors.channels.AbstractTcpServer.$anonfun$handler$1(TcpServer.scala:67) >>> at >>> com.paytrue.swakka.actors.channels.AbstractTcpServer.$anonfun$handler$1$adapted(TcpServer.scala:64) >>> at akka.stream.impl.fusing.Map$$anon$8.onPush(Ops.scala:43) >>> at >>> akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:747) >>> at >>> akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:710) >>> at >>> akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:616) >>> at >>> akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:471) >>> at >>> akka.stream.impl.fusing.GraphInterpreterShell.receive(ActorGraphInterpreter.scala:423) >>> at >>> akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:603) >>> at >>> akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:618) >>> at akka.actor.Actor.aroundReceive(Actor.scala:497) >>> at akka.actor.Actor.aroundReceive$(Actor.scala:495) >>> at >>> akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:529) >>> at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526) >>> at akka.actor.ActorCell.invoke(ActorCell.scala:495) >>> at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257) >>> at akka.dispatch.Mailbox.run(Mailbox.scala:224) >>> at akka.dispatch.Mailbox.exec(Mailbox.scala:234) >>> at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) >>> at >>> java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) >>> at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) >>> at >>> java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) >>> Caused by: java.lang.NoClassDefFoundError: scala/runtime/java8/JFunction1 >>> ... 38 more >>> Caused by: java.lang.ClassNotFoundException: >>> scala.runtime.java8.JFunction1 >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) >>> ... 38 more >>> >>> >>> Any idea ? >>> Thank you! >>> >>> El lunes, 13 de marzo de 2017, 22:13:57 (UTC-3), Pablo Milanese >>> escribió: >>>> >>>> Hello Konrad, >>>> >>>> Of course! No problem. >>>> I will take a look to the code. >>>> >>>> Thank you a lot ! >>>> >>>> >>>> >>>> El lunes, 13 de marzo de 2017, 18:28:42 (UTC-3), Konrad Malawski >>>> escribió: >>>>> >>>>> (did the conversion in a rush) >>>>> >>>>> -- >>>>> Konrad `ktoso` Malawski >>>>> Akka <http://akka.io> @ Lightbend <http://lightbend.com> >>>>> >>>>> On 13 March 2017 at 22:26:51, Pablo Milanese ([email protected]) >>>>> wrote: >>>>> >>>>> >>>>> https://github.com/typesafehub/activator-akka-stream-java8/blob/master/src/main/java/sample/stream/TcpTLSEcho.java >>>>> >>>>> -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
