Redisson和Spring Boot连接到承载Redis的AWS EC2

Redisson和Spring Boot连接到承载Redis的AWS EC2,spring,spring-boot,amazon-ec2,redis,redisson,Spring,Spring Boot,Amazon Ec2,Redis,Redisson,嗨,我已经在AWS-EC2实例上安装了Redis。我能够从本地计算机ping实例 我已经打开了EC2实例上的所有端口,因此我应该能够连接并ping Redis服务器 我能够使用IP(公共)ping EC2服务器 我想从运行Spring boot应用程序(使用Redision)的Windows本地计算机上点击Redis服务器 在spring boot中,我使用单服务器配置配置了文件(Json)。如下面的链接所述- 然而,我得到一个例外如下- 2019-11-18 14:54:54.432 WA

嗨,我已经在AWS-EC2实例上安装了Redis。我能够从本地计算机ping实例

我已经打开了EC2实例上的所有端口,因此我应该能够连接并ping Redis服务器

我能够使用IP(公共)ping EC2服务器

我想从运行Spring boot应用程序(使用Redision)的Windows本地计算机上点击Redis服务器

在spring boot中,我使用单服务器配置配置了文件(Json)。如下面的链接所述-

然而,我得到一个例外如下-

2019-11-18 14:54:54.432  WARN 81628 --- [isson-netty-1-6] io.netty.channel.DefaultChannelPipeline  : An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
io.netty.handler.codec.DecoderException: CommandDecoder.decode() must consume the inbound data or change its state if it did not decode anything.
    at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:379) ~[netty-codec-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.handler.codec.ReplayingDecoder.channelInputClosed(ReplayingDecoder.java:329) ~[netty-codec-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:359) ~[netty-codec-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342) ~[netty-codec-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [netty-transport-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [netty-transport-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [netty-transport-4.1.27.Final.jar:4.1.27.Final
下面的链接指出这是固定的- 当我们无法与redis服务器通信时发生

因为我已经在EC2上打开了所有端口,所以我认为通信对于6379端口上的redis来说不应该是一个问题。我仍然面临着这个问题。如果有人有任何想法或者我遗漏了什么,请帮助我


谢谢

有没有办法重现此问题?您可以在ec2上安装redis,然后尝试使用ec2的公共IP连接PC/笔记本电脑上托管的本地主机应用程序无法重现此问题。你能提供一些代码示例吗?您使用哪个Redisson版本?
@Bean(name="redissonClient",destroyMethod="shutdown")   public
RedissonClient redissonClient() { return Redisson.create(config); }
2019-11-18 14:54:54.432  WARN 81628 --- [isson-netty-1-6] io.netty.channel.DefaultChannelPipeline  : An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
io.netty.handler.codec.DecoderException: CommandDecoder.decode() must consume the inbound data or change its state if it did not decode anything.
    at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:379) ~[netty-codec-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.handler.codec.ReplayingDecoder.channelInputClosed(ReplayingDecoder.java:329) ~[netty-codec-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:359) ~[netty-codec-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342) ~[netty-codec-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [netty-transport-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [netty-transport-4.1.27.Final.jar:4.1.27.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [netty-transport-4.1.27.Final.jar:4.1.27.Final