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

Ask Your Question

Deploying processing units

Hi all,

Most likely something stupid that i am going, but i am experimenting on the space based remoting and am trying to deploy a simple processing unit from a jar file using the following pu.xml (in META-INF/spring/pu.xml).
When deploying the jar file, the agent fails with the following (cryptic to me) error message:

gsm3/8638 2012-01-09 16:53:45,211 GSM INFO com.gigaspaces.grid.gsm.peer - A backup GSM has not yet been discovered. To ensure high availability, make sure that another GSM is running.
gsm3/8638 2012-01-09 16:53:45,457 INFO org.jini.rio.jsb - Service-Id: efaf388f-88a8-498c-97e0-f791b0fb7cd6
gsm3/8638 2012-01-09 16:53:45,457 INFO com.gigaspaces.grid.gsm - GSM started successfully with groups gigaspaces-8.0.5-XAPPremium-ga and locators
gsm3/8638 2012-01-09 16:53:46,030 GSM INFO com.gigaspaces.grid.gsm - Registered GSC - GSC pid[7992 hostgidlda001.int.msci.com/], count 1
gsm3/8638 2012-01-09 16:53:46,031 GSM INFO com.gigaspaces.grid.gsm - Registered GSC - GSC pid[7987 hostgidlda001.int.msci.com/], count 2
gsc2/7992 2012-01-09 16:53:46,074 GSC INFO com.gigaspaces.grid.gsc - Registered with GSM - GSM pid[8638 hostgidlda001.int.msci.com/]
gsc1/7987 2012-01-09 16:53:46,080 GSC INFO com.gigaspaces.grid.gsc - Registered with GSM - GSM pid[8638 hostgidlda001.int.msci.com/]
gsm3/8638 2012-01-09 16:53:58,778 GSM INFO com.gigaspaces.grid.gsm - Deploying constituents_pu
gsm3/8638 2012-01-09 16:53:58,859 GSM INFO com.gigaspaces.grid.gsm.provision - Attempting to allocate processing unit instance pu [1">constituentspu [1] on GSC pid[7992 hostgidlda001.int.msci.com/]
gsc2/7992 2012-01-09 16:53:58,915 GSC INFO com.gigaspaces.grid.gsc - Instantiating constituents_pu 1
gsc2/7992 2012-01-09 16:53:59,062 constituentspu 1 INFO org.openspaces.pu.container.servicegrid.PUServiceBeanImpl - ClusterInfo name[constituents_pu schemanull numberOfInstances1 numberOfBackups0 instanceId1 backupIdnull]
gsc2/7992 2012-01-09 16:53:59,066 constituents_pu 1 INFO org.openspaces.pu.container.servicegrid.PUServiceBeanImpl - BeanLevelProperties Context {} Beans {}
gsc2/7992 2012-01-09 16:53:59,131 constituentspu 1 INFO org.openspaces.pu.container.servicegrid.PUServiceBeanImpl - Downloading from GSM to 1">/var/tmp/indexspace/processing-units/constituentspu_1 ...
gsc2/7992 2012-01-09 16:54:04,717 constituentspu 1 INFO org.openspaces.pu.container.servicegrid.PUServiceBeanImpl - Downloaded 28.62mb to 1">/var/tmp/indexspace/processing-units/constituentspu_1
gsc2/7992 2012-01-09 16:54:05,909 GSC SEVERE com.gigaspaces.grid.gsc - Failed to instantiate constituents_pu 1; Caused by: org.jini.rio.core.JSBInstantiationException: java.lang.LinkageError: loader constraint violation: loader (instance of org/jini/rio/boot/ServiceClassLoader) previously initiated loading for a different type with name "org/jini/rio/core/ServiceElement"
gsc2/7992 at java.lang.ClassLoader.defineClass1(Native Method)
gsc2/7992 at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
gsc2/7992 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
gsc2/7992 at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)

Any pointer would be appreciated. Tried to look at documentation/forum with no success.



This thread was imported from the previous forum.
For your reference, the original is available here

asked 2012-01-09 10:06:51 -0600

marcse 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

answered 2012-01-09 10:27:12 -0600

shay hassidim gravatar image
edit flag offensive delete link more


Hi Shay,

So the Service Executors Example, which is very close to what i am trying to do works in Eclipse.

However, if i just change the space URL to <os-core:space id="space" url="jini://gidlda001.int.msci.com/IndexSpace_container/IndexSpace" />
with the corresponding URL in ExecutorClientMain:
    public static void main(String args) throws Exception{
        space = new UrlSpaceConfigurer("jini://gidlda001.int.msci.com/IndexSpace_container/IndexSpace").space();

i got a null pointer at:
public class DataProcessorServiceReducer implements RemoteResultReducer<Integer, Integer>{

public Integer reduce(SpaceRemotingResult<Integer> results, SpaceRemotingInvocation sri) throws Exception {
        int total_result =0;
        for (int i =0 ;i<results.length ; i++)
int temp_result = resultsi.getResult().intValue();

When debugging, it sounds like i am getting an IllegalStateException:
java.lang.IllegalStateException: Failed to find remoting service exporter defined within the application context

Note sure it helps...


marcse gravatar image marcse  ( 2012-01-09 11:37:40 -0600 )edit

If it helps, here is the definition of the space i am trying to create:

<os-core:space id="space" url="jini://gidlda001.int.msci.com/IndexSpace_container/IndexSpace" />

<!-- Defines a local transaction manager.-->
<os-core:local-tx-manager id="transactionManager" space="space"/>

<!-- Define the GigaSpace instance that the application will use to access the space  -->
<os-core:giga-space id="gigaSpace" space="space" tx-manager="transactionManager"/>

<bean id="ConstituentProcessor" class="com.msci.eqb.constituents.processors.IndexConstituentProcessor"/>
<os-remoting:service-exporter id="serviceExporter">
 <os-remoting:service ref="ConstituentProcessor"/>
marcse gravatar image marcse  ( 2012-01-09 11:42:00 -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: 2012-01-09 10:06:51 -0600

Seen: 537 times

Last updated: Jan 09 '12