application.yml

spring:
  redis:
    host: 127.0.0.1
    port: 6379

Got errors:

org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379

  at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:966)
  at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:934)
  at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:786)
  at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:300)
  at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:132)
  at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:95)
  at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:82)
  at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:211)
  at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:184)
  at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:95)
  at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:48)
  at cn.xiaoman.recommendation.admin.test.HdfsTest.redisTest(HdfsTest.java:38)
  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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
  at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
  at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:73)
  at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:83)
  at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
  at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
  at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
  at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
  at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
  at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
  at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
  at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
  at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
  at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
  at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
  at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
  at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379
  at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56)
  at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:233)
  at io.lettuce.core.RedisClient.connectStandalone(RedisClient.java:253)
  at io.lettuce.core.RedisClient.connect(RedisClient.java:202)
  at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:56)
  at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:959)
  ... 41 more
Caused by: java.nio.channels.UnresolvedAddressException
  at sun.nio.ch.Net.checkAddress(Net.java:101)
  at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:622)
  at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:242)
  at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:205)
  at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1226)
  at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:550)
  at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:535)
  at io.netty.channel.ChannelDuplexHandler.connect(ChannelDuplexHandler.java:50)
  at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:550)
  at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:535)
  at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:47)
  at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:550)
  at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:535)
  at io.netty.channel.ChannelDuplexHandler.connect(ChannelDuplexHandler.java:50)
  at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:550)
  at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:535)
  at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:517)
  at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:970)
  at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:215)
  at io.netty.bootstrap.Bootstrap$2.run(Bootstrap.java:166)
  at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:408)
  at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:455)
  at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
  at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
  at java.lang.Thread.run(Thread.java:745)

If I use Jedis instead, anything is OK.

Comment From: wilkinsona

Thanks for the report, but this is the issue tracker for Spring Boot and Lettuce is managed as a separate project. Its issue tracker is here. If I have misunderstood, and you have already determined that the problem is in Spring Boot rather than Lettuce, please share your findings with us and we can re-open this issue if necessary.

Comment From: mp911de

Looks like you have netty 4.0 and 4.1 on the classpath. Please remove netty 4.0. This is, in any case, not a Spring Boot or Spring Data Redis issue.

Comment From: bethunebtj

Agree with @mp911de . This is not a Spring issue, cause I've been using Lettuce separately and I got this too. It's just you have netty 4.0( or lower ) and 4.1 on your classpath. Maybe lettuce should mention it in the documentation.

Comment From: mambaJun

me too?Then how to do?If I use Jedis instead, anything is OK. I don't understand @mp911de's means.

Comment From: wilkinsona

@xajhwj Lettuce depends on Netty for its network IO. If you have the same problem as @lovebing, then you have two different versions of Netty on the classpath; 4.0 and 4.1. You can use mvn dependency:tree or ./gradlew dependencies to check your project's dependencies and identify why that's happening and then update your pom.xml or build.gradle to exclude Netty 4.0. If you need any more help with this, please follow up on Gitter or Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.

Comment From: angkar

Hi

I am facing the same error (intermittently) - and I see I've only one netty in my classpath - what else I might be missing?

Thanks

``` compile - Dependencies for source set 'main' (deprecated, use 'implementation' instead).

+--- com.univocity:univocity-parsers:2.7.6 +--- javax.annotation:javax.annotation-api:1.3.2 +--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.5 | +--- org.apache.httpcomponents:httpcore:4.4.9 | +--- commons-logging:commons-logging:1.2 | --- commons-codec:commons-codec:1.10 +--- com.amazonaws:aws-lambda-java-core:1.2.0 +--- com.fasterxml.jackson.core:jackson-databind:2.8.3 | +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0 | --- com.fasterxml.jackson.core:jackson-core:2.8.3 -> 2.9.8 +--- biz.paluch.redis:lettuce:4.2.2.Final | +--- io.reactivex:rxjava:1.1.9 | +--- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-transport:4.0.40.Final | | --- io.netty:netty-buffer:4.0.40.Final | | --- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-handler:4.0.40.Final | | +--- io.netty:netty-buffer:4.0.40.Final () | | +--- io.netty:netty-transport:4.0.40.Final () | | --- io.netty:netty-codec:4.0.40.Final | | --- io.netty:netty-transport:4.0.40.Final () | --- com.google.guava:guava:18.0 +--- org.slf4j:slf4j-api:1.7.25 +--- org.apache.logging.log4j:log4j-core:2.11.2 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- org.apache.logging.log4j:log4j-slf4j-impl:2.11.2 | +--- org.slf4j:slf4j-api:1.7.25 | +--- org.apache.logging.log4j:log4j-api:2.11.2 | --- org.apache.logging.log4j:log4j-core:2.11.2 () +--- com.splunk.logging:splunk-library-javalogging:1.7.3 | +--- org.apache.httpcomponents:httpclient:4.5.5 () | +--- org.apache.httpcomponents:httpasyncclient:4.1.3 | | +--- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpcore-nio:4.4.6 | | | --- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpclient:4.5.3 -> 4.5.5 () | | --- commons-logging:commons-logging:1.2 | +--- org.apache.logging.log4j:log4j-api:2.10.0 -> 2.11.2 | +--- org.apache.logging.log4j:log4j-core:2.10.0 -> 2.11.2 (*) | +--- com.googlecode.json-simple:json-simple:1.1.1 | | --- junit:junit:4.10 | | --- org.hamcrest:hamcrest-core:1.1 | --- com.google.code.gson:gson:2.2.4 --- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 +--- org.yaml:snakeyaml:1.23 --- com.fasterxml.jackson.core:jackson-core:2.9.8

compileClasspath - Compile classpath for source set 'main'. +--- com.univocity:univocity-parsers:2.7.6 +--- javax.annotation:javax.annotation-api:1.3.2 +--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.5 | +--- org.apache.httpcomponents:httpcore:4.4.9 | +--- commons-logging:commons-logging:1.2 | --- commons-codec:commons-codec:1.10 +--- com.amazonaws:aws-lambda-java-core:1.2.0 +--- com.fasterxml.jackson.core:jackson-databind:2.8.3 | +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0 | --- com.fasterxml.jackson.core:jackson-core:2.8.3 -> 2.9.8 +--- biz.paluch.redis:lettuce:4.2.2.Final | +--- io.reactivex:rxjava:1.1.9 | +--- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-transport:4.0.40.Final | | --- io.netty:netty-buffer:4.0.40.Final | | --- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-handler:4.0.40.Final | | +--- io.netty:netty-buffer:4.0.40.Final () | | +--- io.netty:netty-transport:4.0.40.Final () | | --- io.netty:netty-codec:4.0.40.Final | | --- io.netty:netty-transport:4.0.40.Final () | --- com.google.guava:guava:18.0 +--- org.slf4j:slf4j-api:1.7.25 +--- org.apache.logging.log4j:log4j-core:2.11.2 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- org.apache.logging.log4j:log4j-slf4j-impl:2.11.2 | +--- org.slf4j:slf4j-api:1.7.25 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- com.splunk.logging:splunk-library-javalogging:1.7.3 | +--- org.apache.httpcomponents:httpclient:4.5.5 () | +--- org.apache.httpcomponents:httpasyncclient:4.1.3 | | +--- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpcore-nio:4.4.6 | | | --- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpclient:4.5.3 -> 4.5.5 () | | --- commons-logging:commons-logging:1.2 | +--- org.apache.logging.log4j:log4j-api:2.10.0 -> 2.11.2 | +--- org.apache.logging.log4j:log4j-core:2.10.0 -> 2.11.2 () | +--- com.googlecode.json-simple:json-simple:1.1.1 | | --- junit:junit:4.10 | | --- org.hamcrest:hamcrest-core:1.1 | --- com.google.code.gson:gson:2.2.4 --- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 +--- org.yaml:snakeyaml:1.23 --- com.fasterxml.jackson.core:jackson-core:2.9.8

compileOnly - Compile only dependencies for source set 'main'. No dependencies

default - Configuration for default artifacts. +--- com.univocity:univocity-parsers:2.7.6 +--- javax.annotation:javax.annotation-api:1.3.2 +--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.5 | +--- org.apache.httpcomponents:httpcore:4.4.9 | +--- commons-logging:commons-logging:1.2 | --- commons-codec:commons-codec:1.10 +--- com.amazonaws:aws-lambda-java-core:1.2.0 +--- com.fasterxml.jackson.core:jackson-databind:2.8.3 | +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0 | --- com.fasterxml.jackson.core:jackson-core:2.8.3 -> 2.9.8 +--- biz.paluch.redis:lettuce:4.2.2.Final | +--- io.reactivex:rxjava:1.1.9 | +--- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-transport:4.0.40.Final | | --- io.netty:netty-buffer:4.0.40.Final | | --- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-handler:4.0.40.Final | | +--- io.netty:netty-buffer:4.0.40.Final () | | +--- io.netty:netty-transport:4.0.40.Final () | | --- io.netty:netty-codec:4.0.40.Final | | --- io.netty:netty-transport:4.0.40.Final () | --- com.google.guava:guava:18.0 +--- org.slf4j:slf4j-api:1.7.25 +--- org.apache.logging.log4j:log4j-core:2.11.2 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- org.apache.logging.log4j:log4j-slf4j-impl:2.11.2 | +--- org.slf4j:slf4j-api:1.7.25 | +--- org.apache.logging.log4j:log4j-api:2.11.2 | --- org.apache.logging.log4j:log4j-core:2.11.2 () +--- com.splunk.logging:splunk-library-javalogging:1.7.3 | +--- org.apache.httpcomponents:httpclient:4.5.5 () | +--- org.apache.httpcomponents:httpasyncclient:4.1.3 | | +--- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpcore-nio:4.4.6 | | | --- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpclient:4.5.3 -> 4.5.5 () | | --- commons-logging:commons-logging:1.2 | +--- org.apache.logging.log4j:log4j-api:2.10.0 -> 2.11.2 | +--- org.apache.logging.log4j:log4j-core:2.10.0 -> 2.11.2 (*) | +--- com.googlecode.json-simple:json-simple:1.1.1 | | --- junit:junit:4.10 | | --- org.hamcrest:hamcrest-core:1.1 | --- com.google.code.gson:gson:2.2.4 --- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 +--- org.yaml:snakeyaml:1.23 --- com.fasterxml.jackson.core:jackson-core:2.9.8

implementation - Implementation only dependencies for source set 'main'. (n) No dependencies

runtime - Runtime dependencies for source set 'main' (deprecated, use 'runtimeOnly' instead). +--- com.univocity:univocity-parsers:2.7.6 +--- javax.annotation:javax.annotation-api:1.3.2 +--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.5 | +--- org.apache.httpcomponents:httpcore:4.4.9 | +--- commons-logging:commons-logging:1.2 | --- commons-codec:commons-codec:1.10 +--- com.amazonaws:aws-lambda-java-core:1.2.0 +--- com.fasterxml.jackson.core:jackson-databind:2.8.3 | +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0 | --- com.fasterxml.jackson.core:jackson-core:2.8.3 -> 2.9.8 +--- biz.paluch.redis:lettuce:4.2.2.Final | +--- io.reactivex:rxjava:1.1.9 | +--- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-transport:4.0.40.Final | | --- io.netty:netty-buffer:4.0.40.Final | | --- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-handler:4.0.40.Final | | +--- io.netty:netty-buffer:4.0.40.Final () | | +--- io.netty:netty-transport:4.0.40.Final () | | --- io.netty:netty-codec:4.0.40.Final | | --- io.netty:netty-transport:4.0.40.Final () | --- com.google.guava:guava:18.0 +--- org.slf4j:slf4j-api:1.7.25 +--- org.apache.logging.log4j:log4j-core:2.11.2 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- org.apache.logging.log4j:log4j-slf4j-impl:2.11.2 | +--- org.slf4j:slf4j-api:1.7.25 | +--- org.apache.logging.log4j:log4j-api:2.11.2 | --- org.apache.logging.log4j:log4j-core:2.11.2 () +--- com.splunk.logging:splunk-library-javalogging:1.7.3 | +--- org.apache.httpcomponents:httpclient:4.5.5 () | +--- org.apache.httpcomponents:httpasyncclient:4.1.3 | | +--- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpcore-nio:4.4.6 | | | --- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpclient:4.5.3 -> 4.5.5 () | | --- commons-logging:commons-logging:1.2 | +--- org.apache.logging.log4j:log4j-api:2.10.0 -> 2.11.2 | +--- org.apache.logging.log4j:log4j-core:2.10.0 -> 2.11.2 (*) | +--- com.googlecode.json-simple:json-simple:1.1.1 | | --- junit:junit:4.10 | | --- org.hamcrest:hamcrest-core:1.1 | --- com.google.code.gson:gson:2.2.4 --- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 +--- org.yaml:snakeyaml:1.23 --- com.fasterxml.jackson.core:jackson-core:2.9.8

runtimeClasspath - Runtime classpath of source set 'main'. +--- com.univocity:univocity-parsers:2.7.6 +--- javax.annotation:javax.annotation-api:1.3.2 +--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.5 | +--- org.apache.httpcomponents:httpcore:4.4.9 | +--- commons-logging:commons-logging:1.2 | --- commons-codec:commons-codec:1.10 +--- com.amazonaws:aws-lambda-java-core:1.2.0 +--- com.fasterxml.jackson.core:jackson-databind:2.8.3 | +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0 | --- com.fasterxml.jackson.core:jackson-core:2.8.3 -> 2.9.8 +--- biz.paluch.redis:lettuce:4.2.2.Final | +--- io.reactivex:rxjava:1.1.9 | +--- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-transport:4.0.40.Final | | --- io.netty:netty-buffer:4.0.40.Final | | --- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-handler:4.0.40.Final | | +--- io.netty:netty-buffer:4.0.40.Final () | | +--- io.netty:netty-transport:4.0.40.Final () | | --- io.netty:netty-codec:4.0.40.Final | | --- io.netty:netty-transport:4.0.40.Final () | --- com.google.guava:guava:18.0 +--- org.slf4j:slf4j-api:1.7.25 +--- org.apache.logging.log4j:log4j-core:2.11.2 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- org.apache.logging.log4j:log4j-slf4j-impl:2.11.2 | +--- org.slf4j:slf4j-api:1.7.25 | +--- org.apache.logging.log4j:log4j-api:2.11.2 | --- org.apache.logging.log4j:log4j-core:2.11.2 () +--- com.splunk.logging:splunk-library-javalogging:1.7.3 | +--- org.apache.httpcomponents:httpclient:4.5.5 () | +--- org.apache.httpcomponents:httpasyncclient:4.1.3 | | +--- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpcore-nio:4.4.6 | | | --- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpclient:4.5.3 -> 4.5.5 () | | --- commons-logging:commons-logging:1.2 | +--- org.apache.logging.log4j:log4j-api:2.10.0 -> 2.11.2 | +--- org.apache.logging.log4j:log4j-core:2.10.0 -> 2.11.2 (*) | +--- com.googlecode.json-simple:json-simple:1.1.1 | | --- junit:junit:4.10 | | --- org.hamcrest:hamcrest-core:1.1 | --- com.google.code.gson:gson:2.2.4 --- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 +--- org.yaml:snakeyaml:1.23 --- com.fasterxml.jackson.core:jackson-core:2.9.8

runtimeElements - Elements of runtime for main. (n) No dependencies

runtimeOnly - Runtime only dependencies for source set 'main'. (n) No dependencies

shadow No dependencies

testAnnotationProcessor - Annotation processors and their dependencies for source set 'test'. No dependencies

testCompile - Dependencies for source set 'test' (deprecated, use 'testImplementation' instead). +--- com.univocity:univocity-parsers:2.7.6 +--- javax.annotation:javax.annotation-api:1.3.2 +--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.5 | +--- org.apache.httpcomponents:httpcore:4.4.9 | +--- commons-logging:commons-logging:1.2 | --- commons-codec:commons-codec:1.10 +--- com.amazonaws:aws-lambda-java-core:1.2.0 +--- com.fasterxml.jackson.core:jackson-databind:2.8.3 | +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0 | --- com.fasterxml.jackson.core:jackson-core:2.8.3 -> 2.9.8 +--- biz.paluch.redis:lettuce:4.2.2.Final | +--- io.reactivex:rxjava:1.1.9 | +--- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-transport:4.0.40.Final | | --- io.netty:netty-buffer:4.0.40.Final | | --- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-handler:4.0.40.Final | | +--- io.netty:netty-buffer:4.0.40.Final () | | +--- io.netty:netty-transport:4.0.40.Final () | | --- io.netty:netty-codec:4.0.40.Final | | --- io.netty:netty-transport:4.0.40.Final () | --- com.google.guava:guava:18.0 +--- org.slf4j:slf4j-api:1.7.25 +--- org.apache.logging.log4j:log4j-core:2.11.2 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- org.apache.logging.log4j:log4j-slf4j-impl:2.11.2 | +--- org.slf4j:slf4j-api:1.7.25 | +--- org.apache.logging.log4j:log4j-api:2.11.2 | --- org.apache.logging.log4j:log4j-core:2.11.2 () +--- com.splunk.logging:splunk-library-javalogging:1.7.3 | +--- org.apache.httpcomponents:httpclient:4.5.5 () | +--- org.apache.httpcomponents:httpasyncclient:4.1.3 | | +--- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpcore-nio:4.4.6 | | | --- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpclient:4.5.3 -> 4.5.5 () | | --- commons-logging:commons-logging:1.2 | +--- org.apache.logging.log4j:log4j-api:2.10.0 -> 2.11.2 | +--- org.apache.logging.log4j:log4j-core:2.10.0 -> 2.11.2 (*) | +--- com.googlecode.json-simple:json-simple:1.1.1 | | --- junit:junit:4.10 | | --- org.hamcrest:hamcrest-core:1.1 | --- com.google.code.gson:gson:2.2.4 +--- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 | +--- org.yaml:snakeyaml:1.23 | --- com.fasterxml.jackson.core:jackson-core:2.9.8 --- org.mockito:mockito-core:2.1.0+ -> 2.1.0 +--- net.bytebuddy:byte-buddy:1.4.26 +--- net.bytebuddy:byte-buddy-agent:1.4.26 --- org.objenesis:objenesis:2.4

testCompileClasspath - Compile classpath for source set 'test'. +--- com.univocity:univocity-parsers:2.7.6 +--- javax.annotation:javax.annotation-api:1.3.2 +--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.5 | +--- org.apache.httpcomponents:httpcore:4.4.9 | +--- commons-logging:commons-logging:1.2 | --- commons-codec:commons-codec:1.10 +--- com.amazonaws:aws-lambda-java-core:1.2.0 +--- com.fasterxml.jackson.core:jackson-databind:2.8.3 | +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0 | --- com.fasterxml.jackson.core:jackson-core:2.8.3 -> 2.9.8 +--- biz.paluch.redis:lettuce:4.2.2.Final | +--- io.reactivex:rxjava:1.1.9 | +--- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-transport:4.0.40.Final | | --- io.netty:netty-buffer:4.0.40.Final | | --- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-handler:4.0.40.Final | | +--- io.netty:netty-buffer:4.0.40.Final () | | +--- io.netty:netty-transport:4.0.40.Final () | | --- io.netty:netty-codec:4.0.40.Final | | --- io.netty:netty-transport:4.0.40.Final () | --- com.google.guava:guava:18.0 +--- org.slf4j:slf4j-api:1.7.25 +--- org.apache.logging.log4j:log4j-core:2.11.2 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- org.apache.logging.log4j:log4j-slf4j-impl:2.11.2 | +--- org.slf4j:slf4j-api:1.7.25 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- com.splunk.logging:splunk-library-javalogging:1.7.3 | +--- org.apache.httpcomponents:httpclient:4.5.5 () | +--- org.apache.httpcomponents:httpasyncclient:4.1.3 | | +--- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpcore-nio:4.4.6 | | | --- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpclient:4.5.3 -> 4.5.5 () | | --- commons-logging:commons-logging:1.2 | +--- org.apache.logging.log4j:log4j-api:2.10.0 -> 2.11.2 | +--- org.apache.logging.log4j:log4j-core:2.10.0 -> 2.11.2 () | +--- com.googlecode.json-simple:json-simple:1.1.1 | | --- junit:junit:4.10 -> 4.12 | | --- org.hamcrest:hamcrest-core:1.3 | --- com.google.code.gson:gson:2.2.4 +--- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 | +--- org.yaml:snakeyaml:1.23 | --- com.fasterxml.jackson.core:jackson-core:2.9.8 +--- org.mockito:mockito-core:2.1.0+ -> 2.1.0 +--- junit:junit:4.12 (*) --- org.junit.jupiter:junit-jupiter-api:5.1.0 +--- org.apiguardian:apiguardian-api:1.0.0 +--- org.opentest4j:opentest4j:1.0.0 --- org.junit.platform:junit-platform-commons:1.1.0 --- org.apiguardian:apiguardian-api:1.0.0

testCompileOnly - Compile only dependencies for source set 'test'. --- junit:junit:4.12 --- org.hamcrest:hamcrest-core:1.3

testImplementation - Implementation only dependencies for source set 'test'. (n) --- org.junit.jupiter:junit-jupiter-api:5.1.0 (n)

testRuntime - Runtime dependencies for source set 'test' (deprecated, use 'testRuntimeOnly' instead). +--- com.univocity:univocity-parsers:2.7.6 +--- javax.annotation:javax.annotation-api:1.3.2 +--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.5 | +--- org.apache.httpcomponents:httpcore:4.4.9 | +--- commons-logging:commons-logging:1.2 | --- commons-codec:commons-codec:1.10 +--- com.amazonaws:aws-lambda-java-core:1.2.0 +--- com.fasterxml.jackson.core:jackson-databind:2.8.3 | +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0 | --- com.fasterxml.jackson.core:jackson-core:2.8.3 -> 2.9.8 +--- biz.paluch.redis:lettuce:4.2.2.Final | +--- io.reactivex:rxjava:1.1.9 | +--- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-transport:4.0.40.Final | | --- io.netty:netty-buffer:4.0.40.Final | | --- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-handler:4.0.40.Final | | +--- io.netty:netty-buffer:4.0.40.Final () | | +--- io.netty:netty-transport:4.0.40.Final () | | --- io.netty:netty-codec:4.0.40.Final | | --- io.netty:netty-transport:4.0.40.Final () | --- com.google.guava:guava:18.0 +--- org.slf4j:slf4j-api:1.7.25 +--- org.apache.logging.log4j:log4j-core:2.11.2 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- org.apache.logging.log4j:log4j-slf4j-impl:2.11.2 | +--- org.slf4j:slf4j-api:1.7.25 | +--- org.apache.logging.log4j:log4j-api:2.11.2 | --- org.apache.logging.log4j:log4j-core:2.11.2 () +--- com.splunk.logging:splunk-library-javalogging:1.7.3 | +--- org.apache.httpcomponents:httpclient:4.5.5 () | +--- org.apache.httpcomponents:httpasyncclient:4.1.3 | | +--- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpcore-nio:4.4.6 | | | --- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpclient:4.5.3 -> 4.5.5 () | | --- commons-logging:commons-logging:1.2 | +--- org.apache.logging.log4j:log4j-api:2.10.0 -> 2.11.2 | +--- org.apache.logging.log4j:log4j-core:2.10.0 -> 2.11.2 (*) | +--- com.googlecode.json-simple:json-simple:1.1.1 | | --- junit:junit:4.10 | | --- org.hamcrest:hamcrest-core:1.1 | --- com.google.code.gson:gson:2.2.4 +--- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 | +--- org.yaml:snakeyaml:1.23 | --- com.fasterxml.jackson.core:jackson-core:2.9.8 --- org.mockito:mockito-core:2.1.0+ -> 2.1.0 +--- net.bytebuddy:byte-buddy:1.4.26 +--- net.bytebuddy:byte-buddy-agent:1.4.26 --- org.objenesis:objenesis:2.4

testRuntimeClasspath - Runtime classpath of source set 'test'. +--- com.univocity:univocity-parsers:2.7.6 +--- javax.annotation:javax.annotation-api:1.3.2 +--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.5 | +--- org.apache.httpcomponents:httpcore:4.4.9 | +--- commons-logging:commons-logging:1.2 | --- commons-codec:commons-codec:1.10 +--- com.amazonaws:aws-lambda-java-core:1.2.0 +--- com.fasterxml.jackson.core:jackson-databind:2.8.3 | +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0 | --- com.fasterxml.jackson.core:jackson-core:2.8.3 -> 2.9.8 +--- biz.paluch.redis:lettuce:4.2.2.Final | +--- io.reactivex:rxjava:1.1.9 | +--- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-transport:4.0.40.Final | | --- io.netty:netty-buffer:4.0.40.Final | | --- io.netty:netty-common:4.0.40.Final | +--- io.netty:netty-handler:4.0.40.Final | | +--- io.netty:netty-buffer:4.0.40.Final () | | +--- io.netty:netty-transport:4.0.40.Final () | | --- io.netty:netty-codec:4.0.40.Final | | --- io.netty:netty-transport:4.0.40.Final () | --- com.google.guava:guava:18.0 +--- org.slf4j:slf4j-api:1.7.25 +--- org.apache.logging.log4j:log4j-core:2.11.2 | --- org.apache.logging.log4j:log4j-api:2.11.2 +--- org.apache.logging.log4j:log4j-slf4j-impl:2.11.2 | +--- org.slf4j:slf4j-api:1.7.25 | +--- org.apache.logging.log4j:log4j-api:2.11.2 | --- org.apache.logging.log4j:log4j-core:2.11.2 () +--- com.splunk.logging:splunk-library-javalogging:1.7.3 | +--- org.apache.httpcomponents:httpclient:4.5.5 () | +--- org.apache.httpcomponents:httpasyncclient:4.1.3 | | +--- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpcore-nio:4.4.6 | | | --- org.apache.httpcomponents:httpcore:4.4.6 -> 4.4.9 | | +--- org.apache.httpcomponents:httpclient:4.5.3 -> 4.5.5 () | | --- commons-logging:commons-logging:1.2 | +--- org.apache.logging.log4j:log4j-api:2.10.0 -> 2.11.2 | +--- org.apache.logging.log4j:log4j-core:2.10.0 -> 2.11.2 () | +--- com.googlecode.json-simple:json-simple:1.1.1 | | --- junit:junit:4.10 -> 4.12 | | --- org.hamcrest:hamcrest-core:1.3 | --- com.google.code.gson:gson:2.2.4 +--- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 | +--- org.yaml:snakeyaml:1.23 | --- com.fasterxml.jackson.core:jackson-core:2.9.8 +--- org.mockito:mockito-core:2.1.0+ -> 2.1.0 | +--- net.bytebuddy:byte-buddy:1.4.26 | +--- net.bytebuddy:byte-buddy-agent:1.4.26 | --- org.objenesis:objenesis:2.4 +--- org.junit.jupiter:junit-jupiter-api:5.1.0 | +--- org.apiguardian:apiguardian-api:1.0.0 | +--- org.opentest4j:opentest4j:1.0.0 | --- org.junit.platform:junit-platform-commons:1.1.0 | --- org.apiguardian:apiguardian-api:1.0.0 +--- org.junit.jupiter:junit-jupiter-engine:5.1.0 | +--- org.apiguardian:apiguardian-api:1.0.0 | +--- org.junit.platform:junit-platform-engine:1.1.0 | | +--- org.apiguardian:apiguardian-api:1.0.0 | | +--- org.junit.platform:junit-platform-commons:1.1.0 () | | --- org.opentest4j:opentest4j:1.0.0 | --- org.junit.jupiter:junit-jupiter-api:5.1.0 () --- org.junit.vintage:junit-vintage-engine:5.1.0 +--- org.apiguardian:apiguardian-api:1.0.0 +--- org.junit.platform:junit-platform-engine:1.1.0 () --- junit:junit:4.12 (*)

testRuntimeOnly - Runtime only dependencies for source set 'test'. (n) +--- org.junit.jupiter:junit-jupiter-engine:5.1.0 (n) --- org.junit.vintage:junit-vintage-engine:5.1.0 (n)

(*) - dependencies omitted (listed previously)

(n) - Not resolved (configuration is not meant to be resolved)


**Comment From: wilkinsona**

@angkar Please read our [guidelines for contributing](https://github.com/spring-projects/spring-boot/blob/master/CONTRIBUTING.adoc#using-github-issues) and the existing comments on the issue before adding one of your own. As [already noted above](https://github.com/spring-projects/spring-boot/issues/14307#issuecomment-418646408), this is a Lettuce problem and has nothing to do with Spring Boot. Even more so in your case, as Spring Boot is not in your dependencies.

**Comment From: angkar**

Apologies - will move it to the lettuce issues

**Comment From: Marviszhao**

> Looks like you have netty 4.0 and 4.1 on the classpath. Please remove netty 4.0. This is, in any case, not a Spring Boot or Spring Data Redis issue.

I meet the same problem conflict with hbase-client 1.2.0 thanks!

**Comment From: Hick-Salmon**

I met the same problem conflict when I use `spring-boot-starter-data-redis`.

This is my `RedisConfig`

```java 
package org.xtj.question.questionOne.config;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;

@Component
public class RedisConfig {
    @Resource
    RedisTemplate<String, String> redisTemplate;


    public String get(String key) {
        if ("".equals(key)) {
            return null;
        }
        return redisTemplate.opsForValue().get(key);
    }

    public void set(String key, String value) {
        if ("".equals(key) || "".equals(value)) {
            return;
        }
        redisTemplate.opsForValue().set(key, value);
    }
}

and this is my application.yml

server:
  port: 80
spring:
  redis:
    host: *.*.*.* #I used my own server
    port: 6377
    database: 0
    timeout: 30000

and in my own server I can get the test value with the right key,when I through progress,It always appear this case.I am a new development,I had build another redis test again,but this case appeared again,please help me,thank you very much.

Comment From: Hick-Salmon

org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to **here is my server IP:port**
    at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.translateException(LettuceConnectionFactory.java:1553)
    at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1461)
    at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1247)
    at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1230)
    at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:979)
    at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:359)
    at org.springframework.data.redis.core.RedisConnectionUtils.fetchConnection(RedisConnectionUtils.java:193)
    at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:144)
    at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:105)
    at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:209)
    at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:189)
    at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:96)
    at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:53)
    at org.xtj.question.questionOne.config.RedisConfig.get(RedisConfig.java:52)
    at org.xtj.question.questionOne.service.RedisService.get(RedisService.java:30)
    at org.xtj.question.questionOne.controller.RedisController.getValue(RedisController.java:15)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1061)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:961)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to **here is my server IP:port**
    at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78)
    at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56)
    at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:320)
    at io.lettuce.core.RedisClient.connect(RedisClient.java:211)
    at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:115)
    at java.base/java.util.Optional.orElseGet(Optional.java:362)
    at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:115)
    at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1459)
    ... 64 more
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /**here is my server IP:port**
Caused by: java.net.ConnectException: Connection refused: no further information
    at java.base/sun.nio.ch.Net.pollConnect(Native Method)
    at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:579)
    at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:820)
    at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
    at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.base/java.lang.Thread.run(Thread.java:830)

Comment From: snicoll

@Hick-Salmon I've edited your comment to improve the formatting. You might want to check out this Mastering Markdown guide for future reference.

Please don't ask for support here (see the guidelines for contributing that mention we prefer to use GitHub issues only for bugs and enhancements). This is connectivity issue to your redis server and nothing we can help you with here.