Value sent to redis cannot be null

1,389 views
Skip to first unread message

Sreepathi Prasanna Karnam

unread,
Aug 6, 2015, 11:34:05 PM8/6/15
to Jedis
Hello,

I'm using jedis client 2.7.2. I'm having an issue in pfmerge call. 

pfmerge has this syntax,

pfmerge(String newKey, String...sourceKeys) 

so, when I send a bunch of source keys to pfmerge, i get this exception. 
"value sent to redis cannot be null". What are the possible causes 
for this error message. I'm pretty sure, 'null' is not being sent in the 
sourceKeys parameter. Looking at the code, SafeEncoder, it looks like encodeMany 
checks only if the sourceKeys has 'null' string and then throws the JedisException. 

Is there any other reason that this might throw 'value sent to redis cannot be null'
error message ?

Marcos Lilljedahl

unread,
Aug 7, 2015, 11:16:59 AM8/7/15
to Jedis
Hi, 

Please provide a snippet or an example to reproduce this problem. My guess is that either `newKey` or any of the sourceKeys is `null` but you already said that is not happening.

--
You received this message because you are subscribed to the Google Groups "Jedis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jedis_redis...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages