首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >org.redisson.client.RedisException:处理命令时的意外异常

org.redisson.client.RedisException:处理命令时的意外异常
EN

Stack Overflow用户
提问于 2021-07-02 17:46:53
回答 1查看 2K关注 0票数 0

我正在使用Radisson作为一个分布式缓存,它正在通过两个aws ECS实例进行更新。最终,我会得到这个例外。当清除缓存时,它正常工作,一次又一次地在一段时间后发生。我不能缩小问题的范围。在这里寻求帮助。

java服务频繁地更新

  1. 缓存对象,并最终频繁地发生
  2. ,这意味着一些对象正在正确地缓存和检索,有时还会获取此错误。

注意:通过在网上搜索,我发现有一个编组问题,redisson已经修复了3.15.x版本。即使在我更新了库之后,这个问题仍然存在。

代码语言:javascript
运行
复制
org.redisson.client.RedisException: Unexpected exception while processing command
    at org.redisson.command.CommandAsyncService.convertException(CommandAsyncService.java:350) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.command.CommandAsyncService.get(CommandAsyncService.java:147) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.RedissonObject.get(RedissonObject.java:90) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.RedissonMap.get(RedissonMap.java:267) ~[redisson-3.13.1.jar:3.13.1]
    at com.mycompany.app.location.locationupdate.cache.LocationSnapshotCache.getLocation(LocationSnapshotCache.java:60) ~[classes/:na]
    at com.mycompany.app.location.locationupdate.stationsnapshot.AbstractSnapshotService.getLatestLocationSnapshotWrapper(AbstractSnapshotService.java:60) ~[classes/:na]
    at com.mycompany.app.location.locationupdate.OrderUpdateUtils.updateLocationCache(OrderUpdateUtils.java:52) ~[classes/:na]
    at com.mycompany.app.location.kafka.impl.ProcessingEventConsumer.updateSnapshotCache(ProcessingEventConsumer.java:70) ~[classes/:na]
    at com.mycompany.app.location.kafka.impl.ProcessingCompletedEventConsumer.updateSnapshotCache(ProcessingCompletedEventConsumer.java:24) [classes/:na]
    at com.mycompany.app.location.kafka.impl.ProcessingCompletedEventConsumer.handleEvent(ProcessingCompletedEventConsumer.java:60) [classes/:na]
    at com.mycompany.app.location.kafka.impl.ProcessingCompletedEventConsumer.handleEvent(ProcessingCompletedEventConsumer.java:24) [classes/:na]
    at com.mycompany.app.location.kafka.impl.ProcessingCompletedEventConsumer$$FastClassBySpringCGLIB$$194f8c48.invoke(<generated>) [classes/:na]
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) [spring-core-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771) [spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) [spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) [spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:367) ~[spring-tx-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118) ~[spring-tx-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) [spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.retry.interceptor.RetryOperationsInterceptor$1.doWithRetry(RetryOperationsInterceptor.java:91) ~[spring-retry-1.2.5.RELEASE.jar:na]
    at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287) ~[spring-retry-1.2.5.RELEASE.jar:na]
    at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:180) ~[spring-retry-1.2.5.RELEASE.jar:na]
    at org.springframework.retry.interceptor.RetryOperationsInterceptor.invoke(RetryOperationsInterceptor.java:115) ~[spring-retry-1.2.5.RELEASE.jar:na]
    at org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor.invoke(AnnotationAwareRetryOperationsInterceptor.java:153) ~[spring-retry-1.2.5.RELEASE.jar:na]
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) [spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at com.mycompany.app.location.kafka.impl.ProcessingCompletedEventConsumer$$EnhancerBySpringCGLIB$$6c678b3e.handleEvent(<generated>) ~[classes/:na]
    at com.mycompany.app.location.config.kafka.KafkaEventStreamConfiguration.lambda$kStreamOrderForceCompleted$23(KafkaEventStreamConfiguration.java:332) ~[classes/:na]
    at org.apache.kafka.streams.kstream.internals.KStreamPeek$KStreamPeekProcessor.process(KStreamPeek.java:42) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.ProcessorNode.lambda$process$2(ProcessorNode.java:142) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.metrics.StreamsMetricsImpl.maybeMeasureLatency(StreamsMetricsImpl.java:806) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.ProcessorNode.process(ProcessorNode.java:142) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.ProcessorContextImpl.forward(ProcessorContextImpl.java:201) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.ProcessorContextImpl.forward(ProcessorContextImpl.java:180) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.ProcessorContextImpl.forward(ProcessorContextImpl.java:133) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.kstream.internals.KStreamFilter$KStreamFilterProcessor.process(KStreamFilter.java:43) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.ProcessorNode.lambda$process$2(ProcessorNode.java:142) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.metrics.StreamsMetricsImpl.maybeMeasureLatency(StreamsMetricsImpl.java:806) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.ProcessorNode.process(ProcessorNode.java:142) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.ProcessorContextImpl.forward(ProcessorContextImpl.java:201) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.ProcessorContextImpl.forward(ProcessorContextImpl.java:180) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.ProcessorContextImpl.forward(ProcessorContextImpl.java:133) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.SourceNode.process(SourceNode.java:104) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.StreamTask.lambda$process$3(StreamTask.java:383) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.metrics.StreamsMetricsImpl.maybeMeasureLatency(StreamsMetricsImpl.java:806) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.StreamTask.process(StreamTask.java:383) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.AssignedStreamsTasks.process(AssignedStreamsTasks.java:475) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.TaskManager.process(TaskManager.java:550) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.StreamThread.runOnce(StreamThread.java:802) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.StreamThread.runLoop(StreamThread.java:697) ~[kafka-streams-2.5.1.jar:na]
    at org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:670) ~[kafka-streams-2.5.1.jar:na]
Caused by: java.io.OptionalDataException: null
    at org.jboss.marshalling.Marshalling.createOptionalDataException(Marshalling.java:366) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.BlockUnmarshaller.readObject(BlockUnmarshaller.java:147) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.BlockUnmarshaller.readObject(BlockUnmarshaller.java:135) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.MarshallerObjectInputStream.readObjectOverride(MarshallerObjectInputStream.java:53) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverObjectInputStream.readObjectOverride(RiverObjectInputStream.java:307) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:425) ~[na:1.8.0_171]
    at java.util.HashMap.readObject(HashMap.java:1407) ~[na:1.8.0_171]
    at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source) ~[na:na]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171]
    at org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callReadObject(JDKSpecific.java:186) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:214) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1757) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1726) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1406) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:283) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:231) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1864) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1778) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1726) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1406) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:283) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:216) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.redisson.codec.MarshallingCodec$3.decode(MarshallingCodec.java:157) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:375) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decodeCommand(CommandDecoder.java:196) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:134) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:104) ~[redisson-3.13.1.jar:3.13.1]
    at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:501) ~[netty-codec-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:366) ~[netty-codec-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) ~[netty-codec-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.52.Final.jar:4.1.52.Final]
    at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_171]
Caused by: org.jboss.marshalling.TraceInformation: null
"2021-07-01 23:31:11 [StreamThread-1] INFO  c.g.k.d.k.i.ProcessingCompletedEventConsumer.handleEvent - [ ] [727984609591943168] Start: ProcessingCompletedEventConsumer, order removed from location, order Id: 60506491de06423dab695678, kitchenId: 727984609591943168"
"2021-07-01 23:31:11 [sson-netty-2-9] ERROR o.r.c.h.ErrorsLoggingHandler.exceptionCaught - [ ] [] Exception occured. Channel: [id: 0xc2ef16e0, L:/10.8.93.154:39340 - R:grubcenter-prod-redis-cluster.mzv6sx.ng.0001.euw2.cache.amazonaws.com/10.8.72.100:6379]"
io.netty.handler.codec.DecoderException: java.io.OptionalDataException
    at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:421) ~[netty-codec-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) ~[netty-codec-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [netty-common-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.52.Final.jar:4.1.52.Final]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171]
Caused by: java.io.OptionalDataException: null
    at org.jboss.marshalling.Marshalling.createOptionalDataException(Marshalling.java:366) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.BlockUnmarshaller.readObject(BlockUnmarshaller.java:147) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.BlockUnmarshaller.readObject(BlockUnmarshaller.java:135) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.MarshallerObjectInputStream.readObjectOverride(MarshallerObjectInputStream.java:53) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverObjectInputStream.readObjectOverride(RiverObjectInputStream.java:307) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:425) ~[na:1.8.0_171]
    at java.util.HashMap.readObject(HashMap.java:1407) ~[na:1.8.0_171]
    at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source) ~[na:na]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171]
    at org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callReadObject(JDKSpecific.java:186) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:214) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1757) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1726) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1406) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:283) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:231) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1864) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1778) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1726) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1406) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:283) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:216) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.redisson.codec.MarshallingCodec$3.decode(MarshallingCodec.java:157) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:375) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decodeCommand(CommandDecoder.java:196) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:134) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:104) ~[redisson-3.13.1.jar:3.13.1]
    at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:501) ~[netty-codec-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:366) ~[netty-codec-4.1.52.Final.jar:4.1.52.Final]
    ... 17 common frames omitted
Caused by: org.jboss.marshalling.TraceInformation: null
"2021-07-01 23:31:11 [sson-netty-2-9] ERROR o.r.c.h.CommandDecoder.decodeCommand - [ ] [] Unable to decode data. channel: [id: 0xc2ef16e0, L:/10.8.93.154:39340 - R:grubcenter-prod-redis-cluster.mzv6sx.ng.0001.euw2.cache.amazonaws.com/10.8.72.100:6379], reply: ReplayingDecoderByteBuf(ridx=37456, widx=37456), command: (HGET), params: [DISPATCHER_LOCATION_SNAPSHOTS_MAP, PooledUnsafeDirectByteBuf(ridx: 0, widx: 27, cap: 256)]"
java.io.OptionalDataException: null
    at org.jboss.marshalling.Marshalling.createOptionalDataException(Marshalling.java:366) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.BlockUnmarshaller.readObject(BlockUnmarshaller.java:147) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.BlockUnmarshaller.readObject(BlockUnmarshaller.java:135) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.MarshallerObjectInputStream.readObjectOverride(MarshallerObjectInputStream.java:53) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverObjectInputStream.readObjectOverride(RiverObjectInputStream.java:307) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:425) ~[na:1.8.0_171]
    at java.util.HashMap.readObject(HashMap.java:1407) ~[na:1.8.0_171]
    at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source) ~[na:na]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171]
    at org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callReadObject(JDKSpecific.java:186) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:214) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1757) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1726) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1406) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:283) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:231) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1864) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1778) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1726) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1406) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:283) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:216) ~[jboss-marshalling-river-2.0.9.Final.jar:2.0.9.Final]
    at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) ~[jboss-marshalling-2.0.9.Final.jar:2.0.9.Final]
    at org.redisson.codec.MarshallingCodec$3.decode(MarshallingCodec.java:157) ~[redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:375) [redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decodeCommand(CommandDecoder.java:196) [redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:134) [redisson-3.13.1.jar:3.13.1]
    at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:104) [redisson-3.13.1.jar:3.13.1]
    at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:501) [netty-codec-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:366) [netty-codec-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) [netty-codec-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-transport-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [netty-common-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.52.Final.jar:4.1.52.Final]
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.52.Final.jar:4.1.52.Final]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171]
Caused by: org.jboss.marshalling.TraceInformation: null
EN

回答 1

Stack Overflow用户

发布于 2021-07-24 17:20:29

这是一个已知的问题,https://developer.jboss.org/thread/280519

私有字段的类型不实现可序列化接口。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68229414

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档