Archived

This forum has been archived. Please start a new discussion on GitHub.

warning: found unknown properties - service never activating

Hi,

Please help me. My service will never enter the activated state. It stays stuck in the activating state even though I have called activate.

I am initialising my service using the following code:


var adapter = communicator().createObjectAdapterWithEndpoints(config.GetName(), "tcp");
var id = communicator().stringToIdentity(config.GetName());
var query = new QueryI();
adapter.add(query, id);
adapter.activate();
communicator().waitForShutdown();

and my application.xml looks like this:


<?xml version="1.0" encoding="utf-8" ?>
<icegrid>
<application name="@AGENT.APPNAME@">

<replica-group id="@AGENT.APPNAME@">
<load-balancing type="round-robin" />
<object identity="@AGENT.APPNAME@" type="::foo::bar::InterfaceIce::Query" />
</replica-group>

<server-template id="@AGENT.APPNAME@">
<parameter name="index" />
<server id="@AGENT.APPNAME@-${index}" exe="@ROOT@\App.exe" activation="manual">
<adapter name="@AGENT.APPNAME@.Adapter" endpoints="tcp" replica-group="@AGENT.APPNAME@" />
<property name="Identity" value="@AGENT.APPNAME@" />
<property name="configPath" value="@AGENT.CONFIGPATH@"/>
<property name="pluginPath" value="@AGENT.PLUGINPATH@"/>
<property name="agentType" value="@AGENT.AGENTORMANAGER@"/>
</server>
</server-template>

<node name="Node1">
<server-instance template="@AGENT.APPNAME@" index="1" />
</node>

<node name="Node2">
<server-instance template="@AGENT.APPNAME@" index="2" />
</node>

</application>
</icegrid>

Note. The @'s denoted values above are substituted.

The only thing I can see in the logs is this coming from standard error:

-! 24/04/2012 11:01:56:514 foo.bar.appName-1: warning: found unknown properties for object adapter `foo.bar.appName':
foo.bar.appName.Adapter.AdapterId
foo.bar.appName.Adapter.ReplicaGroupId
foo.bar.appName.Adapter.Endpoints


Any ideas ?