It's all about the answers!

Ask a question

Timeout when connecting to localhost:7443/jazz (RTC extension workshop on 6.0.1)


1
1
Andrei Lurie (155) | asked Apr 08 '17, 5:21 p.m.

 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:

<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #ffa4ff} </style>
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.

Then, trying to connect to https://localhost:7443/jazz/admin in the browser (tried Chrome and Eclipse internal browser), I get connection timeout (ERR_TIMED_OUT). 
No new messages issued on the console.

<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>
lsof -i -P | grep 7443  returns:
IPv6 0x6d3b53f5d0ee74df      0t0  TCP localhost:7443->localhost:52030 (ESTABLISHED)
IPv6 0x6d3b53f5bceaba1f      0t0  TCP *:7443 (LISTEN)
IPv6 0x6d3b53f5bc1e0f9f      0t0  TCP localhost:52030->localhost:7443 (ESTABLISHED)
I'm doing this on MacOS.
I searched around the net quite a bit without success. Restarting eclipse did not help.
Any suggestions on what could be the problem?
<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>

<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>


Comments
Andrei Lurie commented Apr 10 '17, 7:50 p.m.

 Update: I tried doing this on Windows and it works ok. Doing the same steps on Mac does not work for me. Even with IPv4, still timeout.

The connection seems to be 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>

Google 566   IPv4 TCP localhost:57590->localhost:7443 (ESTABLISHED)

Google 566   IPv4 TCP localhost:57591->localhost:7443 (ESTABLISHED)

java   14418 IPv4 TCP localhost:7443->localhost:57590 (ESTABLISHED)

java   14418 IPv4 TCP *:7443 (LISTEN)


Ralph Schoon commented Apr 11 '17, 1:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
  1. Try to change the port to something else.
  2. Make sure to use a compatible Java
Other than that there is not much I can do. I don't have a mac.
 

Donald Nong commented Apr 17 '17, 3:27 a.m.

I've tried a few things on a Mac and got the exact same issue. I switch between Java 6, 7 and 8 but it makes no differences. After enabling debugging, I can see that Jetty claims that security port 7443 is open, and the correct SSL certificate is associated. But when trying to establish an SSL connection at port 7443, the Jetty server does not send the "Server Hello" packet to the client after the client initiates a connection and sends a "Client Hello". The client (openssl, or any browsers) then closes the connection after a couple of seconds. It seems that whatever the code handling the incoming connection is not working on a Mac.

2 answers



permanent link
Donald Nong (14.5k414) | answered Apr 09 '17, 8:27 p.m.

Comments
Andrei Lurie commented Apr 10 '17, 12:39 p.m.

 Thank you. I've tried the settings for IPv4 but still same timeout (verified that it is now using IPv4). 


permanent link
Ralph Schoon (63.1k33645) | answered Apr 10 '17, 4:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Apr 10 '17, 4:14 a.m.

 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/


I have no experience with MacOS.


Comments
Andrei Lurie commented Apr 10 '17, 12:46 p.m.

 Thank you Ralph, I was using your instructions from that post. It was quite helpful, especially the link to how configure server for debug.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.