-
Notifications
You must be signed in to change notification settings - Fork 29
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
NullPointerException in DefaultEventBus #156
Comments
I'm guessing somewhere mod-scala forgets to create handler? Its weird to have a NPE without any clues. Any suggestions? |
This is receive and connect action.
|
Ok. I found the issue. At EventBusBridge.checkAndSend, it checks "replyAddress" and creates a replyHandler and later send to sendWithTimeout(). In my case, I am using http client's connectWebsocket. I need to pass in "replyAddress" to avoid this NPE. But I wonder why assign replyHandler to null at checkAndSend() if this will definitely cause NPE later. I think this should be fixed.
|
I haven't debugged this yet, but it appears that it's an issue in Vert.x core itself? https://github.com/eclipse/vert.x/pull/810/files |
I have a handler which accepts client's connection and broadcasts his connected status to another eventbus address for its subscribers. This is how I test this handler.
It seems this error was created in the convertHandler. However, I didn't use sendWithTimeout or replyWithTimeout in my code.
But I always see this exception showing up even the test case runs fine.
The text was updated successfully, but these errors were encountered: