Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Connectivity Problem

Hello,

I am having a connectivity problem with XAP and I am hoping someone on this forum will recognize the symptoms and be able to point me at the solution.

I am doing development on a Windows 7 laptop. Everything is running on that machine. The XAP components seem to be having trouble connecting to each other.

After browsing this forum I set my LOOKUPLOCATORS and NIC_ADDR to the machine's IP address:

if "%LOOKUPLOCATORS%" == "" ( rem set LOOKUPLOCATORS= set LOOKUPLOCATORS=98.14.158.51 )

if "%NIC_ADDR%" == "" ( rem set NIC_ADDR="%COMPUTERNAME%" set NIC_ADDR=98.14.158.51 )

This doesn't seem to have helped.

I have attached a log file from a GSM session that shows the kinds of errors I am seeing. Here are the particular messages:

2012-10-29 09:03:39,472 GSM WARNING [net.jini.discovery.LookupLocatorDiscovery] - Failed to connect to LUS on 98.14.158.51:4174, retry in 50994ms; Caused by: java.net.ConnectException: Connection timed out: connect

2012-10-29 09:03:56,429 GSM INFO [net.jini.discovery.LookupDiscovery] - exception occurred during unicast discovery to 98.14.158.51:4174 with constraints InvocationConstraints[reqs: {}, prefs: {}]; Caused by: java.net.ConnectException: Connection timed out: connect

I also notice thet the LUS seems to be using port 4174 and not the more typical 4170:

2012-10-29 09:01:42,838 INFO [com.gigaspaces.grid.gsm] - GSM started successfully with groups [Dan] and locators [jini://98.14.158.51:4174/]

Everything else that I do on this machine that is network dependent is working fine (e.g. Skype, Chrome)

I am suspicious of the Teredo and 6to4 references in the log file, but I don't understand Teredo well enough to be able to determine whether the problem lies with IPv6 - IPv4 compatabiitysoftware or if this is a red herring. My machine is using IPv4 and my XAP configuration shouldn't need to talk to any other machines.

Thank very much for any help anyone out there can provide.

-Dan h4. Attachments

[2012-10-29~09.01-gigaspaces-lus_gsm-98.14.158.51-7164.log|/upfiles/13759702642967502.txt]

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3912]{quote}

asked 2012-10-29 08:53:08 -0600

subuta gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Can you try and use 127.0.0.1 and see if this works ?

answered 2012-10-29 09:07:43 -0600

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Hi Shay,

I hope you have been well.

Thanks for the reply and the suggestion. I just gave it a try:

if "%LOOKUPLOCATORS%" == "" ( rem set LOOKUPLOCATORS= set LOOKUPLOCATORS=127.0.0.1 ) set LOOKUP_LOCATORS_PROP=-Dcom.gs.jini_lus.locators=%LOOKUPLOCATORS%

rem The NIC_ADDR represents the specific network interface card IP address or the default host name. rem Note - When using Multi Network-Interface cards, explicitly set it with the NIC address (e.g. 192.168.0.2) rem as it is the value of the the java.rmi.server.hostname system property. (see RMI_OPTIONS) if "%NIC_ADDR%" == "" ( rem set NIC_ADDR="%COMPUTERNAME%" set NIC_ADDR=127.0.0.1 )

and the results seem to be the same:

2012-10-29 13:24:03,972 LUS INFO [com.sun.jini.reggie] - started Reggie: 13d4e6 b-0b13-4724-8cf5-76ff12619e44, [Dan], jini://127.0.0.1:4174/ 2012-10-29 13:24:26,535 GSM WARNING [com.gigaspaces.grid.gsm] - Binding GSM to MI Registry; Caused by: java.rmi.ConnectException: Connection refused to host: 8.14.158.51; nested exception is: java.net.ConnectException: Connection timed out: connect 2012-10-29 13:24:47,575 GSM WARNING [com.gigaspaces.grid.gsm] - Binding GSM to MI Registry; Caused by: java.rmi.ConnectException: Connection refused to host: 8.14.158.51; nested exception is: java.net.ConnectException: Connection timed out: connect

-Dan

subuta gravatar imagesubuta ( 2012-10-29 16:11:04 -0600 )edit

I turned off IPv6 and rebooted, and the problem seems to be gone. Microsoft recommends against turning off IPv6, but they also provide a utility to do it at this address: http://technet.microsoft.com/en-us/ne...

subuta gravatar imagesubuta ( 2012-10-29 21:22:10 -0600 )edit

Premature declaration of victory. Error messages have returned, but XAP seems to be usable now, so I will ignore them.

subuta gravatar imagesubuta ( 2012-10-30 06:54:35 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-10-29 08:53:08 -0600

Seen: 3,663 times

Last updated: Oct 29 '12