Autobahn-Java on Android Connection Timeout

When we try to set up a WAMP connection between Android Java (using autobahn-java) and the Nexus router, we receive the following output from the router:

2018/08/13 10:23:54 Error attaching to router: did not receive HELLO: timeout waiting for message

In the Android console:

W/art: Method processed more than once: boolean io.crossbar.autobahn.websocket.WebSocketReader.processHandshake()
W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference
                  at io.crossbar.autobahn.wamp.transports.AndroidWebSocket.initializeSerializer(
W/System.err:     at io.crossbar.autobahn.wamp.transports.AndroidWebSocket.access$100(
                  at io.crossbar.autobahn.wamp.transports.AndroidWebSocket$1.onConnect(
                  at io.crossbar.autobahn.websocket.WebSocketConnection$2.handleMessage(
W/System.err:     at android.os.Handler.dispatchMessage(
                  at android.os.Looper.loop(
W/System.err:     at java.lang.reflect.Method.invoke(Native Method)



We received the error message of ‘timeout waiting for message’ after 5 seconds when the Android application tries to connect to the router. When we use the Crossbar router, we get a successful connection between the session and the router. Could you guys have a look at this issue? We are also using autobahn-python in combination with the Nexus router, and that one works great.

Initially, I started an issue on the Nexus router side, for side reference: gammazero/nexus#143 has been moved to gammazero/nexus#146