- changed status to resolved
Unable to connect via WebSocket without enabling debugger
Issue #141
closed
After switching to Babbler version 0.8.0, I can no longer connect to XMPP server via WebSocket. It works fine if I use ConsoleDebugger but I get following exception when setting debugger to null or when not enabling the debugger at all.
rocks.xmpp.core.session.ConnectionException: java.lang.NullPointerException
at rocks.xmpp.core.session.XmppSession.tryConnect(XmppSession.java:373)
at rocks.xmpp.core.session.XmppClient.connect(XmppClient.java:215)
at rocks.xmpp.core.session.XmppSession.connect(XmppSession.java:311)
at ...
Caused by: java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:203)
at rocks.xmpp.websocket.net.client.WebSocketConnectionConfiguration.createWebSocketSession(WebSocketConnectionConfiguration.java:213)
at rocks.xmpp.websocket.net.client.WebSocketConnectionConfiguration.createConnection(WebSocketConnectionConfiguration.java:162)
at rocks.xmpp.core.session.XmppSession.tryConnect(XmppSession.java:357)
... 3 more
Comments (8)
-
repo owner -
repo owner Sorry for that.
-
repo owner Make debugger optional in WebSocketConnection and NettyTcpConnection
Fixes issue
#141→ <<cset 5daeb672d3d5>>
-
reporter Thank you!
-
It would be great to have also the test covering the bug along with the patch :)
-
On Maven version 0.8.0 with bug
-
repo owner Fix version 0.8.1
-
repo owner - changed status to closed
- Log in to comment
Make debugger optional in WebSocketConnection and NettyTcpConnection
Fixes issue
#141→ <<cset d15225cdb31c>>