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

io.netty.handler.codec.DecoderException: java.lang.IllegalStateException: Can't decode replay: \u0015\u0003\u0001\u0000\u0002\u0002 #4772

Closed
kaviarasupgk opened this issue Jan 3, 2023 · 7 comments

Comments

@kaviarasupgk
Copy link

kaviarasupgk commented Jan 3, 2023

Getting this issue when trying to connect the Gcloud redis from websphere liberty app. This issue is similar to the github request number: #4333 Kindly provide the solution and that would be helpful.

Caused by: java.lang.IllegalStateException: Can't decode replay: \u0015\u0003\u0001\u0000\u0002\u0002F
org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:281)
org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:95)
io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:367)
00000068 id= io.netty.channel.DefaultChannelPipeline W onUnhandledInboundException 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.

@mrniko
Copy link
Member

mrniko commented Jan 4, 2023

#4333 (comment)

@kaviarasupgk
Copy link
Author

kaviarasupgk commented Jan 6, 2023

After adding the trace log with org.redisson, I can able to identify that my application is not able to connect the GCP redis instance.
Can you please provide any standalone java app with redisson client for connecting redis in GCP?

org.redisson.client.RedisConnectionException: Unable to connect to Redis server: 10.x.x.x/10.x.x.x:6378
at org.redisson.connection.pool.ConnectionPool.lambda$createConnection$0(ConnectionPool.java:154)
at java.util.concurrent.CompletableFuture.uniWhenComplete(Unknown Source)
at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(Unknown Source)
at java.util.concurrent.CompletableFuture.postComplete(Unknown Source)
at java.util.concurrent.CompletableFuture.completeExceptionally(Unknown Source)
at org.redisson.connection.pool.ConnectionPool.promiseFailure(ConnectionPool.java:318)
at org.redisson.connection.pool.ConnectionPool.lambda$createConnection$6(ConnectionPool.java:277)
at java.util.concurrent.CompletableFuture.uniWhenComplete(Unknown Source)
at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(Unknown Source)
at java.util.concurrent.CompletableFuture.postComplete(Unknown Source)
at java.util.concurrent.CompletableFuture.completeExceptionally(Unknown Source)
at org.redisson.client.RedisClient$1$1.run(RedisClient.java:241)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.CompletionException: java.lang.IllegalStateException: Can't decode replay: ���

@mrniko
Copy link
Member

mrniko commented Jan 6, 2023

Can you share the logs from the application start moment?

@mrniko mrniko added the GCP label Feb 7, 2023
@mrniko
Copy link
Member

mrniko commented Mar 3, 2023

Unable to reproduce.

@mrniko mrniko closed this as completed Mar 3, 2023
@priyankgosalia
Copy link

We're getting the same error while connecting to Redis on GCP. Was there ever a solution to this issue? Any leads would be helpful.

@mrniko
Copy link
Member

mrniko commented May 3, 2023

@priyankgosalia

Can you set TRACE logging level for org.redisson package and share the logs from the application start moment?

@kaviarasupgk
Copy link
Author

kaviarasupgk commented May 3, 2023 via email

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

No branches or pull requests

3 participants