Hazelcast ticket registry in CAS 4.1.9, connection refused error when startup

72 views
Skip to first unread message

Yan Zhou

unread,
Aug 12, 2016, 11:31:04 AM8/12/16
to CAS Community
Hi,

I am using Hazelcast as the ticket registry for my CAS 4.1.9 overlay.  On my local instance of CAS, in the cas.properties, I specified this:

hz.cluster.members=localhost

When starting up CAS, it works fine, but I see these error messages, It fails to connect on ports 5702, 5703, etc.  But, I can telnet to these ports just fine.

What is the nature of these errors?

Thanks!
Yan


2016-08-12 11:20:08,512 DEBUG [com.hazelcast.cluster.impl.TcpIpJoiner] - [localhost]:5701 [dev] [3.5] Sending master question to Address[localhost]:5703

2016-08-12 11:20:08,526 DEBUG [com.hazelcast.cluster.impl.TcpIpJoiner] - [localhost]:5701 [dev] [3.5] Sending master question to Address[localhost]:5702

2016-08-12 11:20:08,526 DEBUG [com.hazelcast.nio.tcp.SocketConnector] - [localhost]:5701 [dev] [3.5] Starting to connect to Address[localhost]:5703

2016-08-12 11:20:08,568 DEBUG [com.hazelcast.nio.tcp.SocketConnector] - [localhost]:5701 [dev] [3.5] Starting to connect to Address[localhost]:5702

2016-08-12 11:20:08,568 INFO [com.hazelcast.nio.tcp.SocketConnector] - [localhost]:5701 [dev] [3.5] Connecting to localhost/127.0.0.1:5703, timeout: 0, bind-any: true

2016-08-12 11:20:08,568 INFO [com.hazelcast.nio.tcp.SocketConnector] - [localhost]:5701 [dev] [3.5] Connecting to localhost/127.0.0.1:5702, timeout: 0, bind-any: true

2016-08-12 11:20:09,526 DEBUG [com.hazelcast.cluster.impl.TcpIpJoiner] - [localhost]:5701 [dev] [3.5] Will send master question to each address in: [Address[localhost]:5703, Address[localhost]:5702]

2016-08-12 11:20:09,526 DEBUG [com.hazelcast.cluster.impl.TcpIpJoiner] - [localhost]:5701 [dev] [3.5] NOT sending master question to blacklisted endpoints: {}

2016-08-12 11:20:09,526 DEBUG [com.hazelcast.cluster.impl.TcpIpJoiner] - [localhost]:5701 [dev] [3.5] Sending master question to Address[localhost]:5703

2016-08-12 11:20:09,527 DEBUG [com.hazelcast.cluster.impl.TcpIpJoiner] - [localhost]:5701 [dev] [3.5] Sending master question to Address[localhost]:5702

2016-08-12 11:20:09,569 INFO [com.hazelcast.nio.tcp.SocketConnector] - [localhost]:5701 [dev] [3.5] Could not connect to: localhost/127.0.0.1:5703. Reason: SocketException[Connection refused: connect to address localhost/127.0.0.1:5703]

2016-08-12 11:20:09,573 DEBUG [com.hazelcast.nio.tcp.SocketConnector] - [localhost]:5701 [dev] [3.5] Connection refused: connect to address localhost/127.0.0.1:5703
java.net.SocketException: Connection refused: connect to address localhost/127.0.0.1:5703
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:465)
at sun.nio.ch.Net.connect(Net.java:457)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:670)
at com.hazelcast.nio.tcp.SocketConnector.connectSocketChannel(SocketConnector.java:157)
at com.hazelcast.nio.tcp.SocketConnector.tryToConnect(SocketConnector.java:132)
at com.hazelcast.nio.tcp.SocketConnector.run(SocketConnector.java:68)
at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:209)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)
at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)

2016-08-12 11:20:09,573 INFO [com.hazelcast.cluster.impl.TcpIpJoiner] - [localhost]:5701 [dev] [3.5] Address[localhost]:5703 is added to the blacklist.

2016-08-12 11:20:09,579 INFO [com.hazelcast.nio.tcp.SocketConnector] - [localhost]:5701 [dev] [3.5] Could not connect to: localhost/127.0.0.1:5702. Reason: SocketException[Connection refused: connect to address localhost/127.0.0.1:5702]

2016-08-12 11:20:09,579 DEBUG [com.hazelcast.nio.tcp.TcpIpConnectionMonitor] - [localhost]:5701 [dev] [3.5] An error occurred on connection to Address[localhost]:5703 Cause => java.net.SocketException {Connection refused: connect to address localhost/127.0.0.1:5703}, Error-Count: 1

2016-08-12 11:20:09,580 DEBUG [com.hazelcast.nio.tcp.SocketConnector] - [localhost]:5701 [dev] [3.5] Connection refused: connect to address localhost/127.0.0.1:5702
java.net.SocketException: Connection refused: connect to address localhost/127.0.0.1:5702
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:465)
at sun.nio.ch.Net.connect(Net.java:457)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:670)
at com.hazelcast.nio.tcp.SocketConnector.connectSocketChannel(SocketConnector.java:157)
at com.hazelcast.nio.tcp.SocketConnector.tryToConnect(SocketConnector.java:132)
at com.hazelcast.nio.tcp.SocketConnector.run(SocketConnector.java:68)
at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:209)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)
at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)

2016-08-12 11:20:09,580 INFO [com.hazelcast.cluster.impl.TcpIpJoiner] - [localhost]:5701 [dev] [3.5] Address[localhost]:5702 is added to the blacklist.

Dmitriy Kopylenko

unread,
Aug 12, 2016, 11:43:51 AM8/12/16
to Yan Zhou, CAS Community
Just an info message telling that HZ cannot connect to other members of a cluster as there are no other members (by default it auto forms the cluster on ports 5701… and auto increments it for members joining the cluster). So, in short, nothing to worry about here.

Cheers,
D.

--
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/be552c5c-2c14-45f0-862d-1f391a856066%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply all
Reply to author
Forward
0 new messages