2024年4月12日发(作者:)

记seata集成nacos序列化异常问题

版本信息

seata:1.4.0

nacos:2.0.1

异常信息

17:10:46.037 [http-nio-9204-exec-1] ERROR nUndoLogParser - [encode,127] - json encode exception, Type id handling not implemented for type (by serializer of type

dDefinitionException: Type id handling not implemented for type (by serializer of type ortedTypeSerializer) (through reference chain:

at (:77)

at BadDefinition(:1276)

at BadDefinition(:400)

at izeWithType(:160)

at izeAsField(:730)

at izeFields(:770)

at izeWithType(:655)

at izeContents(:147)

at izeContents(:25)

at izeWithType(:267)

at izeAsField(:730)

at izeFields(:770)

at izeWithType(:655)

at izeContents(:147)

at izeContents(:25)

at izeWithType(:267)

at izeAsField(:730)

at izeFields(:770)

at izeWithType(:655)

at izeAsField(:730)

at izeFields(:770)

at izeWithType(:655)

at izeContents(:147)

at izeContents(:25)

at izeWithType(:267)

at izeAsField(:730)

at izeFields(:770)

at izeWithType(:655)

at ize(:32)

at tSerializerProvider._serialize(:480)

at izeValue(:319)

at Mapper._writeValueAndClose(:4487)

at alueAsBytes(:3765)

at (:125)

at ndoLogs(:214)

at sGlobalTransactionCommit(:221)

at it(:196)

at $commit$0(:184)

at tionProxy$e(:289)

at (:183)

at it(:333)

at sCommit(:743)

at (:711)

at TransactionAfterReturning(:654)

at WithinTransaction(:407)

at (:119)

at d(:186)

at opProxy$d(:750)

at TransactionalInterceptor$e(:150)

at e(:104)

at GlobalTransaction(:147)

at (:122)

at d(:186)

at opProxy$d(:750)

at opProxy$ept(:692)

at tManageServiceImpl$$EnhancerBySpringCGLIB$$BSAssetManage()

at (:128)

at tManageController$$FastClassBySpringCGLIB$$()

at (:218)

at opProxy$Joinpoint(:779)

at d(:163)

at opProxy$d(:750)

at d(:89)

at (:58)

at 0(Native Method)

at (:62)

at (:43)

at (:498)

at AdviceMethodWithGivenArgs(:634)

at AdviceMethod(:624)

at (:72)

at d(:175)

at opProxy$d(:750)

at (:64)

at d(:175)

at opProxy$d(:750)

at (:57)

at d(:175)

at opProxy$d(:750)

at (:97)

at d(:186)

at opProxy$d(:750)

at opProxy$ept(:692)

at tManageController$$EnhancerBySpringCGLIB$$()

at 0(Native Method)

at (:62)

at (:43)

at (:498)

at ke(:197)

at ForRequest(:141)

at AndHandle(:106)

at HandlerMethod(:894)

at Internal(:808)

at (:87)

at atch(:1063)

at ice(:963)

at sRequest(:1006)

at (:909)

at e(:665)

at e(:883)

at e(:750)

at alDoFilter(:227)

at er(:162)