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

Ask Your Question

Space Persistency Example: Unable to run

I am having problems running the Basic persistence example.

I was able to start the persistent space on the local machine using startAll.sh: {color:blue} Jul 27, 2007 2:38:17 PM INFO [com.gigaspaces.container]:

Directory Service (Jini Lookup Service): [ Container <persistentspace_container> member of [gigaspaces-6.0EE] jini lookup groups ] [ Was advertised successfully with serviceID <c668eac6-5ec9-4e78-9b22-5aae325a4145> [ and Unicast Locators [] ]

Jul 27, 2007 2:38:17 PM INFO [com.gigaspaces.container]: * Welcome to the GigaSpaces world ! - GigaSpaces Platform(TM) 6.0EE Build: 1809 Server started successfully ! *

Jul 27, 2007 2:38:17 PM INFO [com.gigaspaces.common.spacefinder]: java:// protocol. Get <persistentspace> space from <persistentspace_container> container {color}

But I was unable to connect to the persistent space using run.sh: {color:red} JAVA_HOME environment variable is set to /usr/java/jdk1.6.0_02 in <gigaspaces root="">\bin\setenv.sh Environment set successfully from ./../../../..

Welcome to GigaSpaces Persistent Example Starting a sequence of write- and take-operations on a persistent space...

com.j_spaces.core.client.FinderException: Failed to find: rmi://localhost/./persistentSpace?schema=default at com.j_spaces.core.client.SpaceFinder._find(SourceFile:560) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:341) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:331) at com.j_spaces.core.client.SpaceFinder.find(SourceFile:403) at com.j_spaces.examples.data_grid.persistentcache.WriteSequence.main(Unknown Source) Caused by: javax.naming.NameNotFoundException: GigaSpaces;persistentSpace_container;persistentSpace at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:99) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107) at javax.naming.InitialContext.lookup(InitialContext.java:392) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:996) at com.j_spaces.core.client.SpaceFinder._find(SourceFile:534) ... 4 more Could not find space: rmi://localhost/./persistentSpace {color}

GigaSpace ui is showing: Container Name: persistentSpace_container Space Name: persistentSpace

What's wrong here?

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

asked 2007-07-27 18:08:02 -0600

jeff_seattle gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

Hi Jeff,

I ran the example out of the box just fine.

where are your examples directory located? (i guess you downloaded the examples.zip from the wiki, where did you extract it to?) is it under your gigaspaces root directory?

Also, are you running the scripts directly from within the bin directory of the example? if you don't it might be the issue.


answered 2007-07-28 13:53:01 -0600

michaelm gravatar image
edit flag offensive delete link more

I was able to get this run by modifying ../Basic/persistence/bin/run.sh:

from:{color:red} "${JAVACMD}" -classpath "${JARS}" com.j_spaces.examples.data_grid.persistentcache.WriteSequence rmi://localhost/./persistentSpace ${AMOUNT_OF_ITERATIONS} {color} to:{color:blue} "${JAVACMD}" -classpath "${JARS}" com.j_spaces.examples.data_grid.persistentcache.WriteSequence jini://localhost/./persistentSpace?groups=${LOOKUPGROUPS} ${AMOUNT_OF_ITERATIONS} {color}

answered 2007-07-27 19:22:00 -0600

jeff_seattle gravatar image
edit flag offensive delete link more


{quote}where are your examples directory located?{quote} /home/jeff/gigaspaces/GigaSpacesEE6.0/examples/...

{quote}Is it (example) under your gigaspaces root directory?{quote} No. Gigaspaces root directory is at /usr/local/gigaspaces/GigaSpacesEE6.0/..

{quote}Are you running the scripts directly from within the bin directory of the example?{quote} Yes.

jeff_seattle gravatar image jeff_seattle  ( 2007-07-30 16:23:00 -0600 )edit

Ran the scripts directly from within the bin directory, with example within the Gigaspaces root directory. Still same problem: {color:red}Could not find space: rmi://localhost/./persistentSpace{color}

jeff_seattle gravatar image jeff_seattle  ( 2007-07-30 16:47:03 -0600 )edit


You may have something hanging around from a previous run. I just installed the examples in JSHOMEDIR and executed the following successfully (under Windows XP):

  • cd %JSHOMEDIR%\examples\Basic\persistence
  • ant compile
  • bin\startAll.bat In a new command window:
  • cd %JSHOMEDIR%\examples\Basic\persistence\bin
  • run.bat

Using gs-ui I could see the write and take statistics.


patrickm gravatar image patrickm  ( 2007-08-02 07:52:03 -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


Asked: 2007-07-27 18:08:02 -0600

Seen: 114 times

Last updated: Jul 27 '07