Class cast exceptions on CommandsData
See original GitHub issueWe’re using redisson pro and getting class cast exceptions. Our dependencies in maven look like:
<dependency>
<groupId>pro.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId>
<version>3.16.0-5</version>
<exclusions>
<exclusion>
<groupId>pro.redisson</groupId>
<artifactId>redisson-spring-data-25</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>pro.redisson</groupId>
<artifactId>redisson-spring-data-23</artifactId>
<version>3.16.0-5</version>
</dependency>
The exceptions we’re getting:
2021-07-24 10:05:51,341 [trace=,span=] ERROR ErrorsLoggingHandler:47 - Exception occured. Channel: [id: 0x32a400e8, L:/192.168.205.61:55165 ! R:xuqsfh-0015-001.xuqsfh.gnfyko.euw1.cache.amazonaws.com/10.223.14.197:6379]
java.lang.ClassCastException: class org.redisson.client.protocol.CommandsData cannot be cast to class org.redisson.client.protocol.CommandData (org.redisson.client.protocol.CommandsData and org.redisson.client.protocol.CommandData are in unnamed module of loader 'app')
at org.redisson.client.handler.CommandsQueue.channelInactive(CommandsQueue.java:56)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
at org.redisson.client.handler.ConnectionWatchdog.channelInactive(ConnectionWatchdog.java:93)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:389)
at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:354)
at io.netty.handler.ssl.SslHandler.channelInactive(SslHandler.java:1121)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1405)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:901)
at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:819)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
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:834)
Does someone have an idea how to resolve this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
bukkit - java.lang.ClassCastException when command runs ...
Caused by: java.lang.ClassCastException: com.ShlobdonG.gMarry.Commands cannot be cast to org.bukkit.plugin.Plugin. Makes sense, right?
Read more >ClassCastException when Running Command from gfsh
This document provides a way to resolve a ClassCastException issue that may occur when running a command from gfsh. When running a command, ......
Read more >ClassCastException When Expanding RoleObject
Information in this document applies to any platform. Symptoms. Error when expanding roleObject in JDeveloper. Invoking command: Changes in < ...
Read more >ClasscastException on Observable Command Call · Issue #987
When I try to call a method that is annotated with @HystrixCommand and returns a ObservableResult I get the following exception: java.lang.
Read more >IV19699: CLASSCASTEXCEPTION RUNNING JDMPVIEW ...
Error Message: ClassCastException running the 'whatis' command when analysing a core dump using the sdk/bin/jdmpview tool. . Stack Trace: ava.lang.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, the new version has fixed the class cast exceptions.
fixed in https://github.com/redisson/redisson/commit/675f9dea91339c9aaad1d89dd94504bf84a1a845