apache / apache/servicecomb-java-chassis

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

Open
#3,829 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
1.9k
Forks
814
Avg merge
8d 23h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.