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

Ask Your Question
1

rg.openspaces.core.space.CannotFindSpaceException:

hi team , I'm getting the aboue error while execting test case for Gagaspace .

could you please help me to resolve the error,

Method: @Bean public GigaSpace space(GigaProperties properties) throws RemoteException { UrlSpaceConfigurer urlConfigurer = new UrlSpaceConfigurer("jini:////" + properties.getName()) .lookupGroups(properties.getLookupgroups()) .lookupLocators(properties.getLoadbalancer()) .addProperty("space-config.proxy.router.active-server-lookup-timeout", "5000");

    if (!StringUtils.isEmpty(properties.getUsername()) && !StringUtils.isEmpty(properties.getPassword())) {
        urlConfigurer.securityConfig(new SecurityConfig(properties.getUsername(), properties.getPassword()));
    }

    GigaSpace gigaSpace = new GigaSpaceConfigurer(urlConfigurer).clustered(true).gigaSpace();

    //do an initial ping for establishing a connection and reducing time for first call.
    gigaSpace.getSpace().ping();

    return gigaSpace;

}

Test case: @RunWith(SpringRunner.class) @SpringBootTest(classes = { GigaConfig.class }) public class GigaConfigTest { private GigaProperties gigaProperties; private GigaConfig gigaconfig; @Before public void setUp() throws Exception { gigaconfig = new GigaConfig(); gigaProperties = new GigaProperties(); }

@test
public void testGetSpace() throws RemoteException {


    gigaProperties.setName("localhost");
    gigaProperties.setPassword("12345");
    gigaProperties.setUsername("Gigaconfig");
    gigaProperties.setLoadbalancer("GiGaLoad");
    gigaProperties.setLookupgroups("Gigagrousp");
    gigaProperties.setLeaseTime(123456);
    gigaProperties.setTimeout(1234567);
    gigaconfig.space(gigaProperties);
    assertNotNull(gigaconfig);
}

}

asked 2017-07-25 02:46:20 -0600

Ramaiah gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

Hi, there seems to be a spelling mistake in the lookup groups: Gigagrousp -- instead of Gigagroups Also, it would be helpful if you could post the exception trace

answered 2017-07-27 08:13:09 -0600

edit flag offensive delete link more
0

Hi, Can't find space means either you miss the right locator / group /spaceName or the space did not start yet. You should also be aware of multi nic addresses as described in:https://docs.gigaspaces.com/xap/12.1/admin/network-multi-nic.html pasting exact exception with details will help identify the issue, and looking at server log to see if the space started.

Regards, Ester.

answered 2017-07-27 05:57:51 -0600

Ester gravatar image
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2017-07-25 02:46:20 -0600

Seen: 59 times

Last updated: Jul 27