com.codingapi.txlcn.txmsg.netty.impl.NettyRpcClient.remoteKeys 空指针异常
- Langage dominant
- Java
- Étoiles
- 4.2k
- Forks
- 1.4k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
- [ ] I have searched the [issues](https://github.com/codingapi/tx-lcn/issues) of this repository and believe that this is not a duplicate.
### 1. Bug Description
java.lang.NullPointerException: null
at com.codingapi.txlcn.txmsg.netty.bean.SocketManager.removeKeys(SocketManager.java:178) ~[txlcn-txmsg-netty-5.0.2.RELEASE.jar!/:5.0.2.RELEASE]
at com.codingapi.txlcn.txmsg.netty.impl.NettyRpcClient.remoteKeys(NettyRpcClient.java:96) ~[txlcn-txmsg-netty-5.0.2.RELEASE.jar!/:5.0.2.RELEASE]
at com.codingapi.txlcn.tm.core.SimpleTransactionManager.notifyTransaction(SimpleTransactionManager.java:130) ~[classes!/:5.0.2.RELEASE]
at com.codingapi.txlcn.tm.core.SimpleTransactionManager.commit(SimpleTransactionManager.java:90) ~[classes!/:5.0.2.RELEASE]
at com.codingapi.txlcn.tm.txmsg.transaction.NotifyGroupExecuteService.execute(NotifyGroupExecuteService.java:71) ~[classes!/:5.0.2.RELEASE]
at com.codingapi.txlcn.tm.txmsg.ServerRpcAnswer.lambda$callback$0(ServerRpcAnswer.java:71) ~[classes!/:5.0.2.RELEASE]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_161]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_161]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_161]
### 2. Environment:
- JDK version: 1.8
- OS: linux
- TX-LCN version: 5.0.2.RELEASE
- Others:
### 3. Exception Stacktrace
```
Paste your Exception Stacktrace here!
```
### 4. Tour Idea
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start with txmsg-netty's SocketManager.removeKeys at line 178 and NettyRpcClient.remoteKeys at line 96, following the reported stack trace into SimpleTransactionManager.notifyTransaction. Reproduce the commit notification path under JDK 8 and identify why the key removal receives null. Done means the path no longer raises the reported NullPointerException and a regression test covers it.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- backend, distributed-systems
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100