AL333Z/DomoScala — pull request #2 by mattibal (2014-07-08 23:08:49+00:00)
Title: Implemented basic integration with the MeshNet library

Try to launch the webapp and check in the terminal if something very bad happens, like crashing the whole JVM.
If it gives a java.lang.IndexOutOfBoundsException it's all ok :-D :dash:

This is my output when Arduino is not connected:

```
[info] play - Application started (Dev)
[info] play - Starting application default Akka system.
Experimental: JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Available serial ports: Vector(/dev/tty.Bluetooth-Incoming-Port, /dev/cu.Bluetooth-Incoming-Port, /dev/tty.Bluetooth-Modem, /dev/cu.Bluetooth-Modem)
[ERROR] [07/09/2014 00:45:57.516] [application-akka.actor.default-dispatcher-2] [akka://application/user/meshnetbase] 0
akka.actor.ActorInitializationException: exception during creation
at akka.actor.ActorInitializationException$.apply(Actor.scala:164)
at akka.actor.ActorCell.create(ActorCell.scala:596)
at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263)
at akka.dispatch.Mailbox.run(Mailbox.scala:219)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.lang.IndexOutOfBoundsException: 0
at scala.collection.immutable.Vector.checkRangeConvert(Vector.scala:132)
at scala.collection.immutable.Vector.apply(Vector.scala:122)
at actors.MeshnetBase.preStart(Meshnet.scala:28)
at akka.actor.Actor$class.aroundPreStart(Actor.scala:470)
at actors.MeshnetBase.aroundPreStart(Meshnet.scala:18)
at akka.actor.ActorCell.create(ActorCell.scala:580)
... 9 more

[INFO] [07/09/2014 00:45:57.521] [application-akka.actor.default-dispatcher-5] [akka://application/user/meshnetbase] Message [actors.MeshnetToDeviceMessage] from Actor[akka://application/deadLetters] to Actor[akka://application/user/meshnetbase#-1118045149] was not delivered. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.
```