apache / apache/servicecomb-java-chassis

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

Aperta
#3,829 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Java
Stelle
1.9k
Fork
814
Merge medio
8g 23h
PR unite (30g)
1

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api, backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.