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

NullPointerException at SocketChannelIOHelper.batch(SocketChannelIOHelper.java:64) #335

Closed
Animaleante opened this issue Aug 18, 2015 · 2 comments

Comments

@Animaleante
Copy link

Don't really know what happened here, as I don't have any logs showing what kind of message was the server working on.

Stacktrace:
java.lang.NullPointerException
at org.java_websocket.SocketChannelIOHelper.batch(SocketChannelIOHelper.java:64)
at org.java_websocket.server.WebSocketServer.run(WebSocketServer.java:352)
at java.lang.Thread.run(Thread.java:745)

But the problem is that this seems to have killed my WebSocketServer Thread, and so I'd like to know if there is a way to check if the server thread has been interrupted, or ended, and then restart the server, all from within the subclass of WebSocketServer.

@bendem
Copy link
Contributor

bendem commented Aug 18, 2015

I think this issue was fixed in dbced22

@Animaleante
Copy link
Author

Hnm, well, I've been using the jar that can be found on the dist folder, and just now saw that it is 3 years old.

Will compile a recent build here, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants