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

Ask Your Question

Issues with connect to space via VPN


I have 3 problems:

1) I have cluster with about 30 machines. And 2 lookup locators on them. This 2 machines are added to "/etc/hosts". But when I connected to remote space - I have "Unknown host exception <host>", where <host> - is one of the machine in cluster, where was deployed my space(not lookup-locators machines). My question is - why I need to add all machines in cluster, where I'm use ONLY lookup locators?

2) After when I'm added all machines from cluster to "/etc/hosts" - I'm getting error messages - for example

SEVERE [com.gigaspaces.spaceproxy.router.lookup.dataSpace] - Failed to find an active server for partition #11 to execute GetEntryTypeDescriptorSpaceOperationRequesttypeName=java.lang.Object

, but after some of messages - I write object to space successfully. But why these errors are displayed?

3) When I'm connecting to remote space from another machine(not my laptop, just another) - I have got next error ""

Caused by: com.j_spaces.core.client.FinderException: LookupFinder failed to find service using the following service attributes: Service attributes: [net.jini.lookup.entry.Name(name=dataSpace)] Service attributes: [com.j_spaces.lookup.entry.State(state=started,electable=null,replicable=null)] Lookup timeout: [5000] Classes: [interface com.j_spaces.core.service.Service] Jini Lookup Groups: [gigaspaces-9.6.2-XAPPremium-ga] Jini Lookup Locators: <cluster_host>:4174 at com.j_spaces.core.client.LookupFinder.find(LookupFinder.java:389) at com.j_spaces.core.client.SpaceFinder.findJiniService(SpaceFinder.java:904) Caused by: java.net.BindException: Can't assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)

Why I can't assign requested address?

P.S. For 1 and 2 problem - I use VPN connection, for 3 - I'm connecting from private network without VPN.

asked 2014-02-16 11:22:56 -0500

ssherbakov gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Your client should have its java.rmi.server.hostname system property set with IP that is known to the machines within the VPN. Make sure they can ping this client IP and vise versa. The space URL it is using should have the locators set same as the LOOKUPLOCATORS below.

All machines within the VPN running gs-agent should : - have the LOOKUPLOCATORS environment variable set on the 2 machines IP running the lookup service. I.e.: IP1,IP2. If you use non-default port it should be:IP1:port,IP2:port - have the NIC_ADDR environment variable set to the machine IP.

The above will allow all machines including client mschine to access the lookup service and each other with bi-directional communication.

See: http://docs.gigaspaces.com/sbp/moving-into-production-checklist.html


answered 2014-02-16 13:06:06 -0500

shay hassidim gravatar image
edit flag offensive delete link more


Shay, thank you for response. But for now I have another problem. When I deploy 3 jars with embedded space in clustere with next sla- "number-of-instances=50" I got exception "SEVERE [com.gigaspaces.spaceproxy.router.lookup.dataSpace] - Failed to find an active server for partition #11 to execute GetEntryTypeDescriptorSpaceOperationRequesttypeName=java.lang.Object". But after that - all jars were deployed successful. What is this?

ssherbakov gravatar imagessherbakov ( 2014-02-20 01:04:38 -0500 )edit

I suggest you to submit a support ticket with the GSM log file attached to the case.

Are you getting the error with 40 instances? Whay do you means 3 jars? Is it the same PU?


shay hassidim gravatar imageshay hassidim ( 2014-02-20 06:31:48 -0500 )edit

No, this is not the same PU. It's a different PU's. Yes, I getting error in the all PU's instances. The error is above.

ssherbakov gravatar imagessherbakov ( 2014-02-20 07:21:34 -0500 )edit

Whats the jar size you deploy? If its large (over 10MB) I suggest you put some of the jars you have within the jar you deploy within the lib/platform/ext. Have static jars like 3rd party jars placed in this folder on all machines running the XAP cluster.

This will reduce the deployed jar size , speed up the deployment time and avoid issues like the one you are experiencing.


shay hassidim gravatar imageshay hassidim ( 2014-02-20 08:01:21 -0500 )edit

Jar's size about 150-250 Megabytes. It's a really problem? And it's a cause why I saw exceptions?

ssherbakov gravatar imagessherbakov ( 2014-02-21 00:14:47 -0500 )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


Asked: 2014-02-16 11:22:56 -0500

Seen: 357 times

Last updated: Feb 16 '14