apache / apache/servicecomb-java-chassis

InvokerUtils.invoke(invocation)不抛异常,convertResponse方法报错

Đang mở
#3,829 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Java
Star
1.9k
Fork
814
Merge trung bình
8 ngày 23 giờ
Pull request đã merge (30 ngày)
1

Mô tả

https://github.com/apache/servicecomb-java-chassis/blob/6bcdc2ea3729bb14bb188fe3d60a0b33aa9afabb/providers/provider-pojo/src/main/java/org/apache/servicecomb/provider/pojo/FilterInvocationCaller.java#LL48C26-L48C26

InvokerUtils.invoke(invocation).thenApply(invocation::convertResponse)

InvokerUtils.invoke(invocation)不抛异常,convertResponse方法报错
org.apache.servicecomb.swagger.invocation.exception.InvocationException cannot be cast to com.example.model.AppInfo

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start with providers/provider-pojo/src/main/java/org/apache/servicecomb/provider/pojo/FilterInvocationCaller.java at the InvokerUtils.invoke(invocation).thenApply(invocation::convertResponse) call. Trace how InvocationException is returned and reaches convertResponse instead of being propagated, then verify the behavior with a focused reproduction of the reported AppInfo cast failure. Done means invocation failures no longer cause the reported ClassCastException.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
api, backend
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.