Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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:

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

1

1 vote

Comments

 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)

  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.
 

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

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

0 votes

Comments

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


Permanent link

 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.

0 votes

Comments

 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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,051

Question asked: Apr 08 '17, 5:21 p.m.

Question was seen: 3,302 times

Last updated: Apr 17 '17, 3:27 a.m.

Confirmation Cancel Confirm