Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExternalTopic.channelRead0(SocketRequestBrokerHandler.java:66) Cannot invoke "com.iohao.game.bolt.broker.core.client.BrokerClientItem.oneway(Object)" because "nextClient" is null #342

Closed
dx1ngy opened this issue Jul 29, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@dx1ngy
Copy link

dx1ngy commented Jul 29, 2024

你的问题 | 使用场景

作者你好,使用单机多进程分别启动1个网关、1个对外服、1个逻辑服,然后使用模拟客户端请求没有问题,但当我重启网关,对外服和逻辑服会进行重连(日志已经打印了),这时再使用模拟客户端请求,对外服则会报错
ERROR ExternalTopic.channelRead0(SocketRequestBrokerHandler.java:66) Cannot invoke "com.iohao.game.bolt.broker.core.client.BrokerClientItem.oneway(Object)" because "nextClient" is null
我不太清楚这是不是bug。

预期值

期望重连之后可以调用成功

实际值

ERROR ExternalTopic.channelRead0(SocketRequestBrokerHandler.java:66) Cannot invoke "com.iohao.game.bolt.broker.core.client.BrokerClientItem.oneway(Object)" because "nextClient" is null

复现步骤

demo
game.zip

版本

  • ioGame version:
    21.13
@iohao
Copy link
Owner

iohao commented Jul 29, 2024

把 demo 地址打成 zip 上传吧。地址如果被删除就会失效,将来不好复现。

@dx1ngy
Copy link
Author

dx1ngy commented Jul 29, 2024

把 demo 地址打成 zip 上传吧。地址如果被删除就会失效,将来不好复现。

game.zip

@iohao
Copy link
Owner

iohao commented Jul 29, 2024

这是 bug,因为重连后没有重新加入到 BrokerClientManager 中。

@iohao
Copy link
Owner

iohao commented Jul 29, 2024

已修复,请使用 dev 分支尝试

@dx1ngy
Copy link
Author

dx1ngy commented Jul 30, 2024

已修复,请使用 dev 分支尝试

好的 我试试

@dx1ngy
Copy link
Author

dx1ngy commented Jul 30, 2024

已修复,请使用 dev 分支尝试

切换到dev分支后没问题了

@iohao iohao closed this as completed Aug 8, 2024
@PaoDeK
Copy link

PaoDeK commented Aug 9, 2024

awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants