AlbumenJ commented on issue #11703:
URL: https://github.com/apache/dubbo/issues/11703#issuecomment-1454329936
@HelloToGithub 麻烦确认下几个事情:
1. 客户端 JDK 版本,服务端 JDK 版本
2. 是套了 ServiceException 之后才有问题还是本身就有问题,如果把这个自定义 Filter 去掉是否可以正常工作
3. 在出现异常的时候 ServiceException 里面包的是什么对象
4. 可以尝试通过以下代码看能不能本地复现
```java
JSONB.parseObject(JSONB.toBytes(new ServiceException(t),
JSONWriter.Feature.WriteClassName,
JSONWriter.Feature.FieldBased,
JSONWriter.Feature.ErrorOnNoneSerializable,
JSONWriter.Feature.ReferenceDetection,
JSONWriter.Feature.WriteNulls,
JSONWriter.Feature.NotWriteDefaultValue,
JSONWriter.Feature.NotWriteHashMapArrayListClassName,
JSONWriter.Feature.WriteNameAsSymbol), Object.class,
JSONReader.Feature.SupportAutoType,
JSONReader.Feature.UseDefaultConstructorAsPossible,
JSONReader.Feature.ErrorOnNoneSerializable,
JSONReader.Feature.UseNativeObject,
JSONReader.Feature.FieldBased);
```
直接通过 ServiceException 序列化我这边没有遇到问题
--
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]