title: Create an actor
body: <p>This is probably an extremely simple error but I can't get it to work properly.
  I am using akka 2.2.3 to create an actor based application in scala.</p>
  
  <p>The simplified setup is the following:</p>
  
  <pre><code>object Main {
    def main(args: Array[String]) = {
      val system = ActorSystem("Test")
      val discoverer = system.actorOf(Props[Discoverer], "discoverer")
  
      implicit val timeout = Timeout(5.seconds)
  
      val not = discoverer ? Messages.Find(something)
  
      not.onComplete {
        case Success(va) =&gt; println(va)
        case Failure(err) =&gt; println(err)
      }
      ...
    }
  }
  </code></pre>
  
  <p>And the main actor</p>
  
  <pre><code>class Discoverer extends Actor {
    override def preStart() = {
      val refresher = context.actorOf(Props[Refresher], "refresher")
      refresher ! Refresh
    }
  
    def receive = {
      case _ =&gt; sender ! Answer
    }
  }
  </code></pre>
  
  <p>And the <code>Refresher</code> actor</p>
  
  <pre><code> class Refresher extends Actor {
     ...
   }
  </code></pre>
  
  <p>What you should take away from this is that none of my actors has parameterized constructors.</p>
  
  <p>However if I try to run my application it fails with</p>
  
  <pre><code>[ERROR] [12/09/2013 13:17:06.893] [Test-akka.actor.default-dispatcher-3] 
   [akka://Test/user/discoverer] no matching constructor found on 
    class Discoverer$Refresher for arguments []
  </code></pre>
  
  <p>What is my error here? Am I not supposed to create my actors with <code>.actorOf(Props[Class], "actorname")</code>?</p>