Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Springboot Jedis not working #75

Open
notfication opened this issue Mar 14, 2019 · 4 comments
Open

Springboot Jedis not working #75

notfication opened this issue Mar 14, 2019 · 4 comments

Comments

@notfication
Copy link

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

@notfication
Copy link
Author

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

@fortrue
Copy link
Member

fortrue commented Mar 16, 2019

paste the predixy log

@notfication
Copy link
Author

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

@arctan90
Copy link

arctan90 commented Jul 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants