predixy icon indicating copy to clipboard operation
predixy copied to clipboard

Springboot Jedis not working

Open notfication opened this issue 6 years ago • 4 comments

Is it possible to connect to jedis java client (springboot) to predixy ? Please give me some tips

notfication avatar Mar 14 '19 14:03 notfication

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

notfication avatar Mar 14 '19 15:03 notfication

paste the predixy log

fortrue avatar Mar 16 '19 02:03 fortrue

./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

notfication avatar Mar 18 '19 08:03 notfication

./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.

arctan90 avatar Jul 22 '20 13:07 arctan90