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

Ask Your Question

Managed data source partition properties are not correct

Howdy folx,

I've been playing with Gigaspaces for a bit and have run into a blocking issue: For some reason the properties passed to my managed data source indicate I am not running in a partitioned space, even when I indeed am.

I'm running GigaspacesEDG6.0 with Java 1.4 on a mac. I really don't know what to say, this seems like a bug in gigaspaces or a problem with the documentation or I'm really missing something.

I've attached a zip of the eclipse project if you to feel inclined to see this run in all of its glory.

Any advice would be greatly appreciated.


  • Hawk

Behold, the code:


-Dsun.rmi.dgc.client.gcInterval=36000000 -Dsun.rmi.dgc.server.gcInterval=36000000

space-config.persistent.enabled=true space-config.persistent.StorageAdapterClass=com.j_spaces.sadapter.datasource.DataAdapter space-config.external-data-source.data-source-class=com.cobaltgroup.gs.TestManagedDataSource space-config.external-data-source.data-class=java.lang.Object space-config.external-data-source.usage=read-only

-Dcom.gs.cluster.cache-loader.external-data-source=true -Dcom.gs.cluster.cache-loader.central-data-source=true


.... public void init(Properties props) throws DataSourceException { totalPartitions = ((Integer)props.get(ManagedDataSource.NUMBER_OF_PARTITIONS)).intValue(); myPartition = ((Integer)props.get(ManagedDataSource.STATIC_PARTITION_NUMBER)).intValue();

    System.out.println("------------------------> Got properties: " + ManagedDataSource.STATIC_PARTITION_NUMBER + " = " + myPartition + ", " + ManagedDataSource.NUMBER_OF_PARTITIONS + " " + totalPartitions);




Output generated:

------------------------> Got properties: com.gigaspaces.datasource.partition-number = 0, com.gigaspaces.datasource.number-of-partitions 1

Edited by: Hawk N on Apr 15, 2008 2:38 PM h4. Attachments


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

asked 2008-04-15 13:38:19 -0500

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

AFAIK this is a known issue with the partitioned schema.
This should solve the problem:

Your browser will show error when displaying the cluster config , but the spaces will be displayed. Just ignore the error message at the UI.

If you will use the PU - Here is how you can inject the instance ID and backup ID into your code:

<bean id="myBean" class="MyBean">
    <property name="instanceId" value="${clusterInfo.instanceId}" />
    <property name="backupId" value="${clusterInfo.backupId}" />

See more here:


answered 2008-04-15 14:36:43 -0500

shay hassidim gravatar image
edit flag offensive delete link more


Rock on, thanks.

Do I need to file a bug on this or is this scheduled for a future release that you're aware of? I'd like to save others the pain I've suffered over the past few weeks.

Again, thank you, I really appreciate it.

  • Hawk
crunchyk9 gravatar imagecrunchyk9 ( 2008-04-15 14:45:31 -0500 )edit

On our list. Hope will manage to fix this as part of 6.5.

shay hassidim gravatar imageshay hassidim ( 2008-04-15 14:55:45 -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: 2008-04-15 13:38:19 -0500

Seen: 25 times

Last updated: Apr 15 '08