Atmos trace error sbt dist

85 views
Skip to first unread message

Manas Kar

unread,
Jan 16, 2014, 4:38:50 PM1/16/14
to typesafe...@googlegroups.com
Hi, 
 I have a sbt build(0.13.1) with the following configuration in the build.scala.(Attached)

 In essence I have two separate builds called ARC and ARCWorker. I want to be able to use Typesafe console to monitor my application that runs in microkernel. I found a help here (https://github.com/pvlugter/akka-atmos-dist)

When I run my start-with-atmos(created by build.scala) it throws an error given below. I am trying to figure out if I did not follow an instruction correctly or I have a dependency issue.

The part of application.conf that affects atmos trace and akka is attached as well.


Starting Akka...
Running Akka 2.2.3
Deploying file:/usr/local/exactEarth/ARC/deploy/arc_2.10-1.0.jar
Deploying file:/usr/local/exactEarth/ARC/deploy/arc_2.10-0.1-SNAPSHOT.jar
Exception in thread "main" java.lang.NoSuchMethodError: com.typesafe.atmos.trace.Trace.<init>(Lcom/typesafe/atmos/trace/Trace$Settings;Z)V
        at com.typesafe.atmos.trace.DefaultExecutionContextTracer.<init>(ExecutionContextTracer.scala:39)
        at com.typesafe.atmos.trace.ExecutionContextTracer$.create(ExecutionContextTracer.scala:20)
        at com.typesafe.atmos.trace.ExecutionContextTracer$.<init>(ExecutionContextTracer.scala:12)
        at com.typesafe.atmos.trace.ExecutionContextTracer$.<clinit>(ExecutionContextTracer.scala)
        at com.typesafe.atmos.trace.ExecutionContextTracer.global(ExecutionContextTracer.scala)
        at com.typesafe.atmos.trace.FutureTraceAspect.ajc$before$com_typesafe_atmos_trace_FutureTraceAspect$1$4427e8(FutureTraceAspect.aj:73)
        at scala.concurrent.impl.Promise$DefaultPromise.<init>(Promise.scala:153)
        at scala.concurrent.Promise$.apply(Promise.scala:127)
        at akka.pattern.PromiseActorRef$.apply(AskSupport.scala:330)
        at akka.pattern.AskableActorRef$.ask$extension_aroundBody0(AskSupport.scala:139)
        at akka.pattern.AskableActorRef$.ask$extension_aroundBody1$advice(AskSupport.scala:593)
        at akka.pattern.AskableActorRef$.ask$extension(AskSupport.scala:1)
        at akka.pattern.AskableActorRef$.$qmark$extension(AskSupport.scala:146)
        at akka.event.LoggingBus$class.akka$event$LoggingBus$$addLogger(Logging.scala:188)
        at akka.event.LoggingBus$$anonfun$4$$anonfun$apply$4.apply(Logging.scala:117)
        at akka.event.LoggingBus$$anonfun$4$$anonfun$apply$4.apply(Logging.scala:116)
        at scala.util.Success$$anonfun$map$1.apply(Try.scala:206)
        at scala.util.Try$.apply(Try.scala:161)
        at scala.util.Success.map(Try.scala:206)
        at akka.event.LoggingBus$$anonfun$4.apply(Logging.scala:116)
        at akka.event.LoggingBus$$anonfun$4.apply(Logging.scala:113)
        at scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:722)
        at scala.collection.Iterator$class.foreach(Iterator.scala:727)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
        at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
        at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
        at scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:721)
        at akka.event.LoggingBus$class.startDefaultLoggers(Logging.scala:113)
        at akka.event.EventStream.startDefaultLoggers(EventStream.scala:26)
        at akka.actor.LocalActorRefProvider.init(ActorRefProvider.scala:623)
        at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:579)
        at akka.actor.ActorSystemImpl._start(ActorSystem.scala:577)
        at akka.actor.ActorSystemImpl.start_aroundBody6(ActorSystem.scala:588)
        at akka.actor.ActorSystemImpl$AjcClosure7.run(ActorSystem.scala:1)
        at com.typesafe.atmos.trace.ActorTraceAspect.ajc$around$com_typesafe_atmos_trace_ActorTraceAspect$2$e9def30proceed(ActorTraceAspect.aj:92)
        at com.typesafe.atmos.trace.ActorTraceAspect.ajc$around$com_typesafe_atmos_trace_ActorTraceAspect$2$e9def30(ActorTraceAspect.aj:94)
        at akka.actor.ActorSystemImpl.start(ActorSystem.scala:588)
        at akka.actor.ActorSystem$.apply(ActorSystem.scala:111)
        at akka.actor.ActorSystem$.apply(ActorSystem.scala:104)
        at com.typesafe.atmos.trace.AtmosSystem$$anon$1.create(AtmosSystem.scala:44)
        at com.typesafe.atmos.trace.AtmosSystem$$anon$1.create(AtmosSystem.scala:43)
        at com.typesafe.atmos.util.OnDemand.access(OnDemand.scala:18)
        at com.typesafe.atmos.trace.AtmosSystem$.create(AtmosSystem.scala:54)
        at com.typesafe.atmos.trace.DispatcherTrace.<init>(DispatcherTrace.scala:17)
        at com.typesafe.atmos.trace.DefaultActorSystemTracer.<init>(ActorSystemTracer.scala:59)
        at com.typesafe.atmos.trace.ActorSystemTracer$.create(ActorSystemTracer.scala:26)
        at com.typesafe.atmos.trace.ActorSystemTracer.create(ActorSystemTracer.scala)
        at com.typesafe.atmos.trace.ActorTraceAspect.ajc$before$com_typesafe_atmos_trace_ActorTraceAspect$1$dba35327(ActorTraceAspect.aj:80)
        at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:460)
        at akka.actor.ActorSystem$.apply(ActorSystem.scala:111)
        at akka.actor.ActorSystem$.apply(ActorSystem.scala:93)
        at ARCKernel.<init>(ARCKernel.scala:58)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at java.lang.Class.newInstance(Class.java:374)
        at akka.kernel.Main$$anonfun$1.apply(Main.scala:82)
        at akka.kernel.Main$$anonfun$1.apply(Main.scala:82)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.Iterator$class.foreach(Iterator.scala:727)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
        at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
        at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
        at scala.collection.AbstractTraversable.map(Traversable.scala:105)
        at akka.kernel.Main$.main(Main.scala:82)
        at akka.kernel.Main.main(Main.scala)


Any help or idea is appreciated. If I missed any information please let me know.
I would very much like to see how messages are flowing though my newly created Actor system. 

Thanks
Manas


build.scala
application.conf

Manas Kar

unread,
Jan 16, 2014, 10:48:10 PM1/16/14
to typesafe...@googlegroups.com
Found out that it was because the build.scala had multiple Akka version.
Line 18 had Akka version 2.2.0 where as every where else 2.2.3 is used. Using one version solves the problem.
Hope this helps someone.

..Manas

Henrik Engström

unread,
Jan 17, 2014, 9:26:20 AM1/17/14
to Manas Kar, typesafe...@googlegroups.com
Thanks for sharing the information.
Cheers,
Henrik


--
You received this message because you are subscribed to the Google Groups "Typesafe Console User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to typesafe-conso...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages