Discussion:
[akka-user][deprecated] I get a NoSuchMethodError when trying to run the project from the Akka docs - Getting Started Tutorial (Scala): First Chapter
Jackie88
2018-08-16 18:10:18 UTC
Permalink
Hi there

I am trying to run this project:

https://doc.akka.io/docs/akka/2.0/intro/getting-started-first-scala.html

I am using Windows and sbt.

I get a NoSuchMethodError :

[info] Running Pi
*[error] (run-main-0) java.lang.NoSuchMethodError*:
scala.Predef$.augmentString(Lj
ava/lang/String;)Lscala/collection/immutable/StringOps;
java.lang.NoSuchMethodError:
scala.Predef$.augmentString(Ljava/lang/String;)Lsca
la/collection/immutable/StringOps;
at akka.util.Duration$.<init>(Duration.scala:76)
at akka.util.Duration$.<clinit>(Duration.scala)
at akka.actor.ActorSystem$Settings.<init>(ActorSystem.scala:120)
at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:424)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:103)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:89)
at Pi$.calculate(Pi.scala:16)
at Pi$delayedInit$body.apply(Pi.scala:10)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at
scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:
12)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.collection.immutable.List.foreach(List.scala:318)
at
scala.collection.generic.TraversableForwarder$class.foreach(Traversab
leForwarder.scala:32)
at scala.App$class.main(App.scala:71)
at Pi$.main(Pi.scala:8)
at Pi.main(Pi.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

Has anyone managed to run this project?

Thanks
Jackie
--
*****************************************************************************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user google-group soon.
** This group will soon be put into read-only mode, and replaced by discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*****************************************************************************************************
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 akka-user+***@googlegroups.com.
To post to this group, send email to akka-***@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Patrik Nordwall
2018-08-16 19:43:37 UTC
Permalink
Try a newer version of Akka. Here is the starting point:
https://akka.io/try-akka/

Cheers,
Patrik
Post by Jackie88
Hi there
https://doc.akka.io/docs/akka/2.0/intro/getting-started-first-scala.html
I am using Windows and sbt.
[info] Running Pi
scala.Predef$.augmentString(Lj
ava/lang/String;)Lscala/collection/immutable/StringOps;
scala.Predef$.augmentString(Ljava/lang/String;)Lsca
la/collection/immutable/StringOps;
at akka.util.Duration$.<init>(Duration.scala:76)
at akka.util.Duration$.<clinit>(Duration.scala)
at akka.actor.ActorSystem$Settings.<init>(ActorSystem.scala:120)
at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:424)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:103)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:89)
at Pi$.calculate(Pi.scala:16)
at Pi$delayedInit$body.apply(Pi.scala:10)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at
12)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.collection.immutable.List.foreach(List.scala:318)
at
scala.collection.generic.TraversableForwarder$class.foreach(Traversab
leForwarder.scala:32)
at scala.App$class.main(App.scala:71)
at Pi$.main(Pi.scala:8)
at Pi.main(Pi.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
Has anyone managed to run this project?
Thanks
Jackie
--
*****************************************************************************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user google-group soon.
** This group will soon be put into read-only mode, and replaced by discuss.akka.io
https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*****************************************************************************************************
Read the docs: http://akka.io/docs/
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
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
--
Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> - Reactive apps on the JVM
Twitter: @patriknw
--
*****************************************************************************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user google-group soon.
** This group will soon be put into read-only mode, and replaced by discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*****************************************************************************************************
Post by Jackie88
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 akka-user+***@googlegroups.com.
To post to this group, send email to akka-***@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Jacqueline Hubbard
2018-08-17 19:35:35 UTC
Permalink
Hi Patrik

That worked, thank you very much!! :)

Regards
Jackie
Post by Patrik Nordwall
https://akka.io/try-akka/
Cheers,
Patrik
Post by Jackie88
Hi there
https://doc.akka.io/docs/akka/2.0/intro/getting-started-first-scala.html
I am using Windows and sbt.
[info] Running Pi
scala.Predef$.augmentString(Lj ava/lang/String;)Lscala/
collection/immutable/StringOps;
java.lang.NoSuchMethodError: scala.Predef$.augmentString(
Ljava/lang/String;)Lsca la/collection/immutable/StringOps;
at akka.util.Duration$.<init>(Duration.scala:76)
at akka.util.Duration$.<clinit>(Duration.scala)
at akka.actor.ActorSystem$Settings.<init>(ActorSystem.scala:120)
at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:424)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:103)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:89)
at Pi$.calculate(Pi.scala:16)
at Pi$delayedInit$body.apply(Pi.scala:10)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$
sp(AbstractFunction0.scala: 12)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.generic.TraversableForwarder$class.foreach(Traversab
leForwarder.scala:32)
at scala.App$class.main(App.scala:71)
at Pi$.main(Pi.scala:8)
at Pi.main(Pi.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
Has anyone managed to run this project?
Thanks
Jackie
--
************************************************************
*****************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user google-group soon.
** This group will soon be put into read-only mode, and replaced by discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-
announced
************************************************************
*****************************************
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
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
--
Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> - Reactive apps on the JVM
--
************************************************************
*****************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user google-group soon.
** This group will soon be put into read-only mode, and replaced by discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-
announced
************************************************************
*****************************************
Post by Jackie88
Read the docs: http://akka.io/docs/
Check the FAQ: http://doc.akka.io/docs/akka/
current/additional/faq.html
Post by Jackie88
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
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
--
*****************************************************************************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user google-group soon.
** This group will soon be put into read-only mode, and replaced by discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*****************************************************************************************************
Post by Patrik Nordwall
Post by Jackie88
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 akka-user+***@googlegroups.com.
To post to this group, send email to akka-***@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Loading...