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

Couldn't make a connection #22

Open
matanos opened this issue May 12, 2020 · 2 comments
Open

Couldn't make a connection #22

matanos opened this issue May 12, 2020 · 2 comments

Comments

@matanos
Copy link

matanos commented May 12, 2020

Hi ,

I've started a redis-redisjson container and loaded the module as seen below:
image

now when trying to reach out the server from my java client - using 1.2.0 version I
keep get this message inside the JreJSON client:
java.lang.Exception
at org.apache.commons.pool2.impl.BaseGenericObjectPool.(BaseGenericObjectPool.java:147)
at org.apache.commons.pool2.impl.GenericObjectPool.(GenericObjectPool.java:110)
at redis.clients.jedis.util.Pool.initPool(Pool.java:45)
at redis.clients.jedis.util.Pool.(Pool.java:24)
at redis.clients.jedis.JedisPoolAbstract.(JedisPoolAbstract.java:15)
at redis.clients.jedis.JedisPool.(JedisPool.java:221)
at redis.clients.jedis.JedisPool.(JedisPool.java:165)
at redis.clients.jedis.JedisPool.(JedisPool.java:137)
at redis.clients.jedis.JedisPool.(JedisPool.java:76)
at redis.clients.jedis.JedisPool.(JedisPool.java:120)
at redis.clients.jedis.JedisPool.(JedisPool.java:103)
at redis.clients.jedis.JedisPool.(JedisPool.java:26)
at com.redislabs.modules.rejson.JReJSON.(JReJSON.java:99)
at io.redis.jedis.jedisdemo.JedisDemoApplication.start(JedisDemoApplication.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:305)
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:190)
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:153)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360)
at org.springframework.boot.context.event.EventPublishingRunListener.running(EventPublishingRunListener.java:103)
at org.springframework.boot.SpringApplicationRunListeners.running(SpringApplicationRunListeners.java:77)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:330)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at io.redis.jedis.jedisdemo.JedisDemoApplication.main(JedisDemoApplication.java:47) .

The code is trivial as in your examples and my container is listening to port 6379
`` JReJSON client = new JReJSON();
JReJSON client1 = new JReJSON("localhost", 6379);
JReJSON client2 = new JReJSON("127.0.0.1", 6379);
all these clients are failing .
May you please advise?

Thanks

@gkorland
Copy link
Contributor

@matanos did you manage to create a connection?

@bsbodden
Copy link
Contributor

bsbodden commented Jun 6, 2021

@matanos can you connect to your container using the local redis-cli? or telnet? I suspect it's a docker networking issue.

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

No branches or pull requests

3 participants