You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I follow the PubSubServer.scala, I divide Subscriber and Publisher to two individual classes,
but in the Sub.scala (object Sub), like below:
...................
object Sub {
val actorSystem = ActorSystem("PubSubActorSystem")
println("starting subscription service...")
var r = new RedisClient("localhost",6379)
var s = actorSystem.actorOf(Props(new Subscriber(r)))
^
this line have strange error:
"overloaded method value apply with alternatives: (creator: () => akka.actor.Actor,dispatcher: String,routerConfig: akka.routing.RouterConfig,deploy: akka.actor.Deploy)akka.actor.Props (behavior: akka.actor.ActorContext => akka.actor.Actor.Receive)akka.actor.Props (creator: akka.japi.Creator[_ <: akka.actor.Actor])akka.actor.Props (creator: => akka.actor.Actor)akka.actor.Props (actorClass: Class[_ <: akka.actor.Actor])akka.actor.Props [T <: akka.actor.Actor](implicit evidence$1: ClassManifest[T])akka.actor.Props cannot be applied to (org.sample.pubsub.Subscriber) Sub.scala /pub_sub_scala/src/org/sample/pubsub line 12 Scala Problem"
.................
Anyone know what's happened?
sorry for the mess, hope someone can help me
Thank you for your time!
The text was updated successfully, but these errors were encountered:
Hi, I follow the PubSubServer.scala, I divide Subscriber and Publisher to two individual classes,
but in the Sub.scala (object Sub), like below:
...................
object Sub {
val actorSystem = ActorSystem("PubSubActorSystem")
println("starting subscription service...")
var r = new RedisClient("localhost",6379)
var s = actorSystem.actorOf(Props(new Subscriber(r)))
^
this line have strange error:
"overloaded method value apply with alternatives: (creator: () => akka.actor.Actor,dispatcher: String,routerConfig: akka.routing.RouterConfig,deploy: akka.actor.Deploy)akka.actor.Props (behavior: akka.actor.ActorContext => akka.actor.Actor.Receive)akka.actor.Props (creator: akka.japi.Creator[_ <: akka.actor.Actor])akka.actor.Props (creator: => akka.actor.Actor)akka.actor.Props (actorClass: Class[_ <: akka.actor.Actor])akka.actor.Props [T <: akka.actor.Actor](implicit evidence$1: ClassManifest[T])akka.actor.Props cannot be applied to (org.sample.pubsub.Subscriber) Sub.scala /pub_sub_scala/src/org/sample/pubsub line 12 Scala Problem"
.................
Anyone know what's happened?
sorry for the mess, hope someone can help me
Thank you for your time!
The text was updated successfully, but these errors were encountered: