Timeout when connecting to localhost:7443/jazz (RTC extension workshop on 6.0.1)
I'm setting up the RTC extension workshop on RTC 6.0.1 and following the workshop instructions. At the step Testing the Jetty Based Server Launch, when I launch the jetty server, I get following on the console:
2017-04-08 13:45:20.787 java[87678:1849419] WARNING: nextEventMatchingMask should only be called from the Main Thread! This will throw an exception in the future.
2017-04-08 13:45:24.949:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
2017-04-08 13:45:24.979:INFO::jetty-6.1.x
2017-04-08 13:45:25.048:INFO::Started SocketConnector@0.0.0.0:7080
2017-04-08 13:45:25.054:INFO::Started SslSocketConnector@0.0.0.0:7443
2017-04-08 13:45:25.285 java[87678:1849410] !!! BUG: The current event queue and the main event queue are not the same. Events will not be handled correctly. This is probably because _TSGetMainThread was called for the first time off the main thread.
lsof -i -P | grep 7443 returns:I'm doing this on MacOS.
IPv6 0x6d3b53f5d0ee74df 0t0 TCP localhost:7443->localhost:52030 (ESTABLISHED)
IPv6 0x6d3b53f5bceaba1f 0t0 TCP *:7443 (LISTEN)
IPv6 0x6d3b53f5bc1e0f9f 0t0 TCP localhost:52030->localhost:7443 (ESTABLISHED)
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #839496; background-color: #022b36} span.s1 {font-variant-ligatures: no-common-ligatures} </style>
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #839496; background-color: #022b36} span.s1 {font-variant-ligatures: no-common-ligatures} </style>
2 answers
I suspect that it has something to do with IPv6. You can try to force IPv4 and see how it goes.
http://stackoverflow.com/questions/40724761/how-to-force-jetty-to-use-ipv4
http://stackoverflow.com/questions/11850655/how-can-i-disable-ipv6-stack-use-for-ipv4-ips-on-jre
My experiences with the workshop with 6.0.x are here: https://rsjazz.wordpress.com/2016/02/04/running-the-rtc-extensions-workshop-with-rtc-6-0-x/
Comments
Andrei Lurie
Apr 10 '17, 7:50 p.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 11 '17, 1:58 a.m.Donald Nong
Apr 17 '17, 3:27 a.m.