Skip to content

Couldn't make a connection #22

Open

Description

@matanos

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

Activity

  1. gkorland commented on Apr 25, 2021

    @gkorland
    Contributor

    @matanos did you manage to create a connection?

  2. bsbodden commented on Jun 6, 2021

    @bsbodden
    Contributor

    @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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions