codingapi / codingapi/tx-lcn

com.codingapi.txlcn.txmsg.netty.impl.NettyRpcClient.remoteKeys 空指针异常

Abierto
#495 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
4.2k
Forks
1.4k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

- [ ] 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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java
Área
backend, distributed-systems
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.