Reputation: 59
I am very new to scala programming language and i am getting
[ERROR] [06/26/2016 14:52:36.448] [default-akka.remote.default-remote-dispatcher-5] [NettyTransport(akka://default)] failed to bind to /127.0.0.1:16000, shutting down Netty transport
[ERROR] [06/26/2016 14:52:36.458] [ForkJoinPool-4-worker-7] [akka.remote.Remoting] Remoting error: [Startup failed] [
akka.remote.RemoteTransportException: Startup failed
Whenever i connect to redis using rediscala
Following is the code i am using to get the redis connection
import redis.RedisClient
import scala.concurrent.{Future, Await}
import scala.concurrent.duration._
import scala.concurrent._
import scala.concurrent.ExecutionContext.Implicits.global
object RedisConnection {
implicit val akkaSystem = akka.actor.ActorSystem()
def connect(): RedisClient = {
RedisClient("localhost", 6379)
}
def close(): Unit = {
akkaSystem.terminate()
}
}
Please help me i have wasted a lot of time to figure the problem
Upvotes: 0
Views: 209