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

Ask Your Question
0

FinderException on container url for clustered space

The following code works fine for non-clustered space, but throws exception if the space is started as clustered. Any suggestions on what may be wrong?

#Start gs url

gsInstance.bat "/./mySpace?cluster_schema=primary_backup&clustername=probeProxyCluster&total_members=1,1&id=1 INFO [com.gigaspaces.core.common]: Space <myspace_container1:myspace> with url [/./mySpace?cluster_schema=primary_backup spaces-6.5.1-XAP-ga&state=started] started successfully

Code: spaceURL="jini:////mySpace" System.out.println("Trying to connect to space with url: " + spaceURL + " ..."); IJSpace space = (IJSpace) SpaceFinder.find(spaceURL); System.out.println.println("Connected to space."); containerURL = "jini:///mySpace_container1?groups=gigaspaces-6.5.1-XAP-ga" IJSpaceContainer spaceContainer = (IJSpaceContainer) SpaceFinder .find(containerURL);

Output Trying to connect to space with url: jini:////mySpace ... Connected to space. com.j_spaces.core.client.FinderException: LookupFinder failed to find service using the following service attributes:

 Service attributes: [com.j_spaces.lookup.entry.ContainerName(name=mySpace_container1_1)]
 Service attributes: [net.jini.lookup.entry.Name(name=mySpace_container1_1)]
 Lookup timeout: [5000]
 Classes: [interface com.j_spaces.core.service.Service]
 Jini Lookup Groups: [gigaspaces-6.5.1-XAP-ga]
 Number of Lookup Services: 1

com.j_spaces.core.client.FinderException: LookupFinder failed to find service using the following service attributes:

 Service attributes: [com.j_spaces.lookup.entry.ContainerName(name=mySpace_container1_1)]
 Service attributes: [net.jini.lookup.entry.Name(name=mySpace_container1_1)]
 Lookup timeout: [5000]
 Classes: [interface com.j_spaces.core.service.Service]
 Jini Lookup Groups: [gigaspaces-6.5.1-XAP-ga]
 Number of Lookup Services: 1

at com.j_spaces.core.client.LookupFinder.find(SourceFile:332)
at com.j_spaces.core.client.SpaceFinder.a(SourceFile:1054)
at com.j_spaces.core.client.SpaceFinder._find(SourceFile:615)
at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:408)
at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:392)
at com.j_spaces.core.client.SpaceFinder.find(SourceFile:479)

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

asked 2008-12-03 23:29:00 -0600

wasefmasood 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

The “jini://*/mySpacecontainer1?groups=gigaspaces-6.5.1-XAP-ga" is good for clustered space , so I can’t see how this works for you for non clustered space (unless you got the space container explicitly named mySpacecontainer1).

Somehow the container name that is used is mySpacecontainer11 and not mySpace_container1. That’s why it does not work.

Are you sure you posted all the relevant code?
Any chance your space container name is different than the default ones assigned for a clustered space?

Can you explain why you need the space container proxy?

Shay

answered 2008-12-04 14:22:25 -0600

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

1 follower

Stats

Asked: 2008-12-03 23:29:00 -0600

Seen: 87 times

Last updated: Dec 04 '08