Hello,
I am trying the factory example from the Globus book ("Globus Toolkit 4:
Programming Java Services") as shown and explained in chapter 8 (Multiple
Resources).
After that i want to register a resource to the DefaultIndexService to
monitor the ressource property Value.
The registartion file is:<?xml version="1.0" encoding="UTF-8" ?> <ServiceGroupRegistrations xmlns="http://mds.globus.org/servicegroup/client" xmlns:sgc="http://mds.globus.org/servicegroup/client" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:agg="http://mds.globus.org/aggregator/types" xmlns:note=" http://www.globus.org/namespaces/examples/core/MathService_instance" > <ServiceGroupRegistrationParameters xmlns=" http://mds.globus.org/servicegroup/client"> <ServiceGroupEPR xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing "> <wsa:Address> http://192.168.2.100:8080/wsrf/services/DefaultIndexService </wsa:Address> <wsa:ReferenceProperties> <isgk:ServiceGroupKey xmlns:isgk="http://mds.globus.org/inmemoryservicegroup ">000000</isgk:ServiceGroupKey> </wsa:ReferenceProperties> </ServiceGroupEPR> <RegistrantEPR> <wsa:Address> http://192.168.2.100:8080/wsrf/services/examples/core/factory/MathService </wsa:Address> <wsa:ReferenceProperties xmlns:ns1=" http://www.globus.org/namespaces/examples/core/MathService_instance"> <ns1:ResourceKey>24086580</ns1:ResourceKey> </wsa:ReferenceProperties> </RegistrantEPR> <RefreshIntervalSecs>600</RefreshIntervalSecs> <Content xmlns:agg="http://mds.globus.org/aggregator/types" xsi:type="agg:AggregatorContent"> <agg:AggregatorConfig xsi:type="agg:AggregatorConfig"> <agg:GetResourcePropertyPollType> <agg:PollIntervalMillis>40000</agg:PollIntervalMillis> <agg:ResourcePropertyName>valueRP</agg:ResourcePropertyName> </agg:GetResourcePropertyPollType> </agg:AggregatorConfig> <agg:AggregatorData/> </Content> </ServiceGroupRegistrationParameters> </ServiceGroupRegistrations> the EPR.txt file is: <ns1:MathResourceReference xsi:type="ns2:EndpointReferenceType" xmlns:ns1=" http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2=" http://schemas.xmlsoap.org/ws/2004/03/addressing"> <ns2:Address xsi:type="ns2:AttributedURI"> http://192.168.2.100:8080/wsrf/services/examples/core/factory/MathService </ns2:Address> <ns2:ReferenceProperties xsi:type="ns2:ReferencePropertiesType"> <ns1:MathResourceKey>5234449</ns1:MathResourceKey> </ns2:ReferenceProperties> <ns2:ReferenceParameters xsi:type="ns2:ReferenceParametersType"/> </ns1:MathResourceReference> when i type : $ ./bin/mds-servicegroup-add -s http://127.0.0.1:8080/wsrf/services/DefaultIndexServicec:/test/gt-install/etc/globus_wsrf_mds_aggregator/example- aggregator-registration.xml Processing configuration file... Processed 1 registration entries Successfully registered http://192.168.2.100:8080/wsrf/services/examples/core/factory/MathService to servicegroup at http://192.168.2.100:8080/wsrf/services/DefaultIndexService but when the container is started i have tis exception: 2008-02-24 17:13:39,934 ERROR impl.QueryAggregatorSource[Timer-2,pollGet:111] Exception Getting Resource Property from http://192.168.2.100:8080/wsrf/services/examples/core/factory/MathService: java.rmi.RemoteException: Failed to acquire resource; nested exception is: org.globus.wsrf.InvalidResourceKeyException: Argument key is null Any help please Thanks
