apache / apache/servicecomb-java-chassis

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

Ouverte
#3,829 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Java
Étoiles
1.9k
Forks
814
Merge moyen
8 j 23 h
PR mergées (30 j)
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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
api, backend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.