apache / apache/servicecomb-java-chassis
升级至2.8.18后偶现空指针异常
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 814
- Avg merge
- 8d 23h
- Merged PRs (30d)
- 1
Description
servicecomb从2.7.8升级到2.8.18后,出现少量空指针异常,对实际业务没有什么影响,但是由于是新版本引入的,需要分析下原因。堆栈如下:

从堆栈可以看出抛出空指针的原因是由于RoutingContextImpl的fail方法获取的throwable对象为null

throwable来源于Http1xServerRequest的onData方法,按理来说这里e不应该为null

Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the stack traces and the named RoutingContextImpl.fail and Http1xServerRequest.onData methods, then compare their behavior between versions 2.7.8 and 2.8.18. Done means identifying how a null throwable reaches fail and documenting or fixing the regression with a reproducing test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100