java - WebSocketContainer.connectToServer seems to hang -


when try make websocket session through java application using websocketcontainter.connecttoserver seems hang. don't indication there exception, or connection made. code doesn't execute past connecttoserver call.

    string default_uri = "ws://blah/ws/test";     websocketcontainer wscontainer =  containerprovider.getwebsocketcontainer();     session session = wscontainer.connecttoserver(myclient.class, new uri(default_uri));      //this line never gets executed. session above isn't returned nor error     system.out.println(session); 

from example, i'd expect sort of connection error seeing i'm trying establish connection websocket address isn't valid. when using valid ws address don't progress past getting connection return session.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -