IPECTER opened a new issue, #2275: URL: https://github.com/apache/fury/issues/2275
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/fory/issues) and found no similar issues. ### Version Fury Version: 1.10.3 JDK: OpenJDK 21.0.4 OS: MacOS ### Component(s) Java ### Minimal reproduce step Fury#deserialize(); with custom serializer ### What did you expect to see? No error. ### What did you see instead? java.lang.NullPointerException: Cannot read field "serializer" because "classInfo" is null at (reloated package).fury.resolver.ClassResolver.getOrUpdateClassInfo(ClassResolver.java:1187) at (reloated package).fury.resolver.ClassResolver.readClassInfo(ClassResolver.java:1704) at (reloated package).fury.Fury.readRef(Fury.java:874) at (reloated package).fury.Fury.deserialize(Fury.java:806) at (reloated package).fury.Fury.deserialize(Fury.java:727) at kr.rtuserver.protoweaver.api.util.ObjectSerializer.deserialize(ObjectSerializer.java:88) at kr.rtuserver.protoweaver.api.protocol.Protocol.deserialize(Protocol.java:140) at kr.rtuserver.protoweaver.api.netty.ProtoPacketHandler.decode(ProtoPacketHandler.java:71) at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:530) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:469) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:359) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:359) at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1519) at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1377) at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1428) at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:530) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:469) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:359) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1429) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:918) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:167) at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.handle(AbstractNioChannel.java:445) at io.netty.channel.nio.NioIoHandler$DefaultNioRegistration.handle(NioIoHandler.java:383) at io.netty.channel.nio.NioIoHandler.processSelectedKey(NioIoHandler.java:577) at io.netty.channel.nio.NioIoHandler.processSelectedKeysOptimized(NioIoHandler.java:552) at io.netty.channel.nio.NioIoHandler.processSelectedKeys(NioIoHandler.java:493) at io.netty.channel.nio.NioIoHandler.run(NioIoHandler.java:470) at io.netty.channel.SingleThreadIoEventLoop.runIo(SingleThreadIoEventLoop.java:204) at io.netty.channel.SingleThreadIoEventLoop.run(SingleThreadIoEventLoop.java:175) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:1073) 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:1583) ### Anything Else? [ObjectSerializer.java](https://github.com/RTUServer/RSFramework/blob/main/Library/ProtoWeaver/Common/API/src/main/java/kr/rtuserver/protoweaver/api/util/ObjectSerializer.java) [CustomPacketSerializer.java](https://github.com/RTUServer/RSFramework/blob/main/Library/ProtoWeaver/Common/API/src/main/java/kr/rtuserver/protoweaver/api/protocol/serializer/CustomPacketSerializer.java) [ProtoSerializer.java](https://github.com/RTUServer/RSFramework/blob/main/Library/ProtoWeaver/Common/API/src/main/java/kr/rtuserver/protoweaver/api/ProtoSerializer.java) [ProtoPacketHandler.java](https://github.com/RTUServer/RSFramework/blob/main/Library/ProtoWeaver/Common/API/src/main/java/kr/rtuserver/protoweaver/api/netty/ProtoPacketHandler.java) ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
