question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Class cast exceptions on CommandsData

See original GitHub issue

We’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:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ddehencommented, Jul 26, 2021

Thanks, the new version has fixed the class cast exceptions.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found