You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "Alanxtl (via GitHub)" <gi...@apache.org> on 2026/06/01 11:49:25 UTC

[I] [FEATURE] Migrate GenericException from dubbo-go to dubbo-go-hessian2 [dubbo-go]

Alanxtl opened a new issue, #3361:
URL: https://github.com/apache/dubbo-go/issues/3361

   **1. 背景**
   
   在 dubbo-go 项目的 PR  https://github.com/apache/dubbo-go/pull/3183 (为适配 https://github.com/apache/dubbo-go/issues/3167 「完善泛化调用功能,补齐与 Java 版本的差距」)中,新增了 GenericException 结构体,用于在 Hessian2 序列化 / 反序列化链路中保留 Java 异常的类名(ExceptionClass)和消息(ExceptionMessage),解决了仅返回字符串导致异常类型信息丢失的问题
   
   经评审建议:GenericException 属于 Hessian2 序列化协议层的通用异常定义,而非 dubbo-go 业务层逻辑,更适合内聚到 dubbo-go-hessian2 项目
   
   当前状态:dubbo-go 侧的 GenericException 代码已被 merge,需后续完成迁移优化,避免核心协议层定义散落在业务项目中
   
   
   
   **2. 目标**
   
   将 dubbo-go 中 protocol/dubbo/hessian2/hessian_response.go 内的 GenericException 结构体迁移至 dubbo-go-hessian2 核心库
   
   
   
   **3. 待办**
   
   - [ ] 阶段 1:
   
   在 dubbo-go-hessian2 中新增 GenericException 定义,在 dubbo-go-hessian2 项目中新建 / 复用合适的文件(如 exception.go 或 generic.go),新增 GenericException 结构体,保持字段与 dubbo-go 侧一致且兼容 Java 端
   
   - [ ] 阶段2:
   
    删除 dubbo-go 中 protocol/dubbo/hessian2/hessian_response.go 内的 GenericException 结构体定义(避免重复)。
    修改 dubbo-go 所有引用 GenericException 的文件的导入路径


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] Migrate GenericException from dubbo-go to dubbo-go-hessian2 [dubbo-go]

Posted by "Alanxtl (via GitHub)" <gi...@apache.org>.
Alanxtl commented on issue #3361:
URL: https://github.com/apache/dubbo-go/issues/3361#issuecomment-5185814354

   close via #3498 https://github.com/apache/dubbo-go-hessian2/pull/397


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] Migrate GenericException from dubbo-go to dubbo-go-hessian2 [dubbo-go]

Posted by "Modo-me (via GitHub)" <gi...@apache.org>.
Modo-me commented on issue #3361:
URL: https://github.com/apache/dubbo-go/issues/3361#issuecomment-4883602266

   你好,我可以试试继续这个issue上的工作,可以assign给我吗


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] Migrate GenericException from dubbo-go to dubbo-go-hessian2 [dubbo-go]

Posted by "wongoo (via GitHub)" <gi...@apache.org>.
wongoo closed issue #3361: [FEATURE] Migrate GenericException from dubbo-go to dubbo-go-hessian2
URL: https://github.com/apache/dubbo-go/issues/3361


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] Migrate GenericException from dubbo-go to dubbo-go-hessian2 [dubbo-go]

Posted by "Alanxtl (via GitHub)" <gi...@apache.org>.
Alanxtl closed issue #3361: [FEATURE] Migrate GenericException from dubbo-go to dubbo-go-hessian2
URL: https://github.com/apache/dubbo-go/issues/3361


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] Migrate GenericException from dubbo-go to dubbo-go-hessian2 [dubbo-go]

Posted by "Alanxtl (via GitHub)" <gi...@apache.org>.
Alanxtl commented on issue #3361:
URL: https://github.com/apache/dubbo-go/issues/3361#issuecomment-4884670577

   > 你好,我可以试试继续这个issue上的工作,可以assign给我吗
   
   sure


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] Migrate GenericException from dubbo-go to dubbo-go-hessian2 [dubbo-go]

Posted by "Modo-me (via GitHub)" <gi...@apache.org>.
Modo-me commented on issue #3361:
URL: https://github.com/apache/dubbo-go/issues/3361#issuecomment-4991530103

   这个issue先不要completed,阶段二改GenericException的引用还没完成
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org