JedisConnectionException: Unknown Reply

109 views
Skip to first unread message

garv...@iiitd.ac.in

unread,
Jun 26, 2014, 3:01:37 AM6/26/14
to jedis...@googlegroups.com
I am trying to connect a jedis client application to a remote redis server. Attached is the code for the client:

public static void main(String[] args) {

    Jedis jedis = new Jedis("192.168.1.40",9124);   
    if(jedis.isConnected())
        System.out.println("connected");
    jedis.ping();
}

The code worked fine earlier and used to work fine. But suddenly there seems to be a problem with the application. I am getting the following stack trace when running it now:

Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: Unknown reply: 
at redis.clients.jedis.Protocol.process(Protocol.java:141)
at redis.clients.jedis.Protocol.read(Protocol.java:200)
at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:285)
at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:184)
at redis.clients.jedis.BinaryJedis.ping(BinaryJedis.java:66)
at TestJedis.main(TestJedis.java:43)edis.BinaryJedis.ping(BinaryJedis.java:66)
at TestJedis.main(TestJedis.java:43)

I have checked my remote server. It is running local clients are able to access the server. The jedis client is able to connect to the server but it cannot execute any command on redis. not able to ping the remote server and had it been a connectivity issue, it would have given a socket timeout error. I am not able to figure out the cause of this problem. Can anyone please help me resolve this issue?

Thanks in advance!



Reply all
Reply to author
Forward
0 new messages