predixy
predixy copied to clipboard
Springboot Jedis not working
Is it possible to connect to jedis java client (springboot) to predixy ? Please give me some tips
I've got an error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/boot/autoconfigure/session/RedisSessionConfiguration$SpringBootRedisHttpSessionC onfiguration.class]: Invocation of init method failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: ERR argument wrong; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR argument wrong
paste the predixy log
./predixy conf/predixy.conf 2019-03-18 09:06:03.522385 N Proxy.cpp:112 predixy listen in 0.0.0.0:7617 2019-03-18 09:06:03.522474 N Proxy.cpp:143 predixy running with Name:PredixyExample Workers:1 2019-03-18 09:06:16.308965 N Handler.cpp:371 h 0 accept c 192.168.0.246:59885 5 assign to h 0 2019-03-18 09:06:16.360917 N Handler.cpp:212 h 0 remove c 192.168.0.246:59885 5 with status 1 None
./predixy conf/predixy.conf 2019-03-18 09:06:03.522385 N Proxy.cpp:112 predixy listen in 0.0.0.0:7617 2019-03-18 09:06:03.522474 N Proxy.cpp:143 predixy running with Name:PredixyExample Workers:1 2019-03-18 09:06:16.308965 N Handler.cpp:371 h 0 accept c 192.168.0.246:59885 5 assign to h 0 2019-03-18 09:06:16.360917 N Handler.cpp:212 h 0 remove c 192.168.0.246:59885 5 with status 1 None
I just fixed this thing. The predixy overided the native command 'config', which is used by spring boot . So your next steps should be:
1st in Command.h add ConfigL, in enum Type
2nd in Command.cpp add {ConfigL, "configl", 2, 4, Admin},
- the above steps help you to move predixy 'config' to 'configL'
3rd in Handler.cpp modify "case Command::Config:" to "case Command::ConfigL:"
- the last step help you to walking through the predixy command filter.