Hi Greg, it seems that you are running your Puller using the “scala” script, which happens to put all kinds of libraries from its Scala distribution on the boot classpath—including an earlier version of the Config library. I would recommend running your app using “java -cp ...” directly (or employing a build tool like sbt to do that for you).
Regards, Roland 30 jan 2014 kl. 23:11 skrev tigerfoot <[email protected]>: > Hello, > > I'm getting the exception below from 2.3.0-RC1, triggered by this code: > > val cfg = ConfigFactory.parseString(s""" > akka.remote.netty.tcp.port = $port > spray { > can { > server { > request-timeout > = 120s > } > client { > request-timeout > = 120s > } > } > } > """).withFallback(ConfigFactory.load) > val system = ActorSystem("httpAS",cfg) > > where my application.conf file is a standard affair--worked fine in 2.3-M2. > > I detect that RC1 moved to typesafe Config 1.2.0, so I've updated my > dependencies and clean-rebuilt, confirming that Config 1.2.0 is in my path. > > Anything else I'm missing? > > Greg > > java.lang.NoSuchMethodError: > com.typesafe.config.Config.getDuration(Ljava/lang/String;Ljava/util/concurrent/TimeUnit;)J > at > akka.util.Helpers$ConfigOps$.akka$util$Helpers$ConfigOps$$getDuration$extension(Helpers.scala:122) > at > akka.util.Helpers$ConfigOps$.getMillisDuration$extension(Helpers.scala:117) > at akka.actor.ActorSystem$Settings.<init>(ActorSystem.scala:171) > at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:498) > at akka.actor.ActorSystem$.apply(ActorSystem.scala:141) > at akka.actor.ActorSystem$.apply(ActorSystem.scala:118) > at > br.core.plugins.etl.Puller$.br$core$plugins$etl$Puller$$findActorSystem(PullerApp.scala:87) > at br.core.plugins.etl.Puller$delayedInit$body.apply(PullerApp.scala:22) > 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(TraversableForwarder.scala:32) > at scala.App$class.main(App.scala:71) > at br.core.plugins.etl.Puller$.main(PullerApp.scala:9) > at br.core.plugins.etl.Puller.main(PullerApp.scala) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:71) > at > scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31) > at > scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:139) > at > scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:71) > at > scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:139) > at scala.tools.nsc.CommonRunner$class.run(ObjectRunner.scala:28) > at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:45) > at scala.tools.nsc.CommonRunner$class.runAndCatch(ObjectRunner.scala:35) > at scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:45) > at > scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:74) > at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:96) > at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:105) > at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala) > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: http://akka.io/faq/ > >>>>>>>>>> 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 http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/groups/opt_out. Dr. Roland Kuhn Akka Tech Lead Typesafe – Reactive apps on the JVM. twitter: @rolandkuhn -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> 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 http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
