Closed proyb2 closed 11 years ago
con't...
[info] org.hyperic.sigar.SigarNotImplementedException: This method has not been implemented on this platform
[info] at org.hyperic.sigar.SigarNotImplementedException.
That's coming from Sigar, the library used for system metrics, and there may be no way for it to get loadAverage information on windows. We'll see if we can quieten the exceptions. I expect that everything else is working okay. Do you get everything displaying okay in the console UI?
The exception from ActorA is expected and part of the sample application.
I can see the console UI with all showing "Loading..." status in each sections.
What version of windows?
Windows 7.
Update: On Linux, true enough, the ActorA is the problem:
[proyb2@test abc]$ sbt atmos:run [info] Loading project definition from /home/proyb2/Desktop/sbt-atmos-0.1.2/sample/abc/project [info] Set current project to ABC Sample (in build file:/home/proyb2/Desktop/sbt-atmos-0.1.2/sample/abc/) [info] Starting Atmos and Typesafe Console ... [info] Typesafe Console is available at http://localhost:9900 [info] Running com.typesafe.atmos.sample.Sample [info] [ERROR] [08/09/2013 23:27:20.177] [Sample-akka.actor.default-dispatcher-7] [akka://Sample/user/ActorA] Simulated exception in ActorA [info] java.lang.RuntimeException: Simulated exception in ActorA [info] at com.typesafe.atmos.sample.ActorA$$anonfun$receive$1.applyOrElse(Sample.scala:49) [info] at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498) [info] at akka.actor.ActorCell.invoke_aroundBody2(ActorCell.scala:456) [info] at akka.actor.ActorCell.invoke_aroundBody3$advice(ActorCell.scala:539) [info] at akka.actor.ActorCell.invoke(ActorCell.scala:1) [info] at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237) [info] at akka.dispatch.Mailbox.run(Mailbox.scala:219) [info] at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) [info] at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [info] at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [info] at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [info] at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [info]
Okay, thanks. Earlier testing on Windows 8 worked okay. I'll try Windows 7.
Note that there's no problem with the exception from ActorA. This is expected and part of the sample. It's there to show what errors look like in the Console UI and traces.
Oh, that a good demo! Comment out that ActorA will remove the error?
The error in the sample is scheduled here:
And thrown here:
You can change the behaviour at those points.
I tried running the sample on a clean Windows 7 VM, with JDK 7 and sbt 0.12.4 installed. I got the exceptions from Sigar about loadAverage not being implemented. We'll keep those quiet. Everything else worked fine, and the Console UI displayed correctly.
The sigar not implemented exceptions are now listed as warnings. Available in sbt-atmos 0.2.0 (with atmos 1.2.1).
C:\Users\scala\Desktop\sbt-atmos-0.1.2\sample\abc>sbt atmos:run [info] Loading project definition from C:\Users\scala\Desktop\sbt-atmos-0.1.2\sample\abc\project [info] Set current project to ABC Sample (in build file:/C:/Users/scala/Desktop/sbt-atmos-0.1.2/sample/abc/) [info] Starting Atmos and Typesafe Console ... [info] Typesafe Console is available at http://localhost:9900 [info] Running com.typesafe.atmos.sample.Sample [info] [ERROR] [08/09/2013 11:47:42.006] [atmos-atmos-trace-dispatcher-8] [akka://atmos/user/2_SystemMetricsMonitor] Couldn't monitor [systemLoadAverage]. Due to [This method has not been implemented on this platform] ...