
Originally Posted by
bernard
Hi Andrew,
We'd need more information to help. Which version of Ice do you use? Do you define these properties? Can you provide a small test-case that reproduces this warning?
Thanks,
Bernard
I use Ice 3.4.0,
here a small test-case:
Code:
#include <iostream>
#include <Ice/Ice.h>
#include <Glacier2/Glacier2.h>
using namespace std;
int main(int argc,char* argv[])
{
Ice::CommunicatorPtr comm = Ice::initialize( argc, argv );
Ice::ObjectPrx proxy = comm->stringToProxy("Glacier2/router:tcp -h 127.0.0.1 -p 10000");
Glacier2::RouterPrx router = Glacier2::RouterPrx::checkedCast( proxy );
Ice::ObjectPrx base = router->createSession("none", "none");
cout << "=======createObjectAdapterWithRouter===== router: " << router << endl;
string oaName = "000000000000000000";
Ice::ObjectAdapterPtr adapter = comm->createObjectAdapterWithRouter( oaName, router);
cout << "======= post createObjectAdapterWithRouter =====" << endl;
Ice::PropertyDict properties = comm->proxyToProperty(router, oaName + ".Router");
for(Ice::PropertyDict::const_iterator p = properties.begin(); p != properties.end(); ++p)
{
cout << " first: " << p->first << " second :" << p->second << endl;
}
return 0;
}
the console output will be:
Code:
=======createObjectAdapterWithRouter===== router: Glacier2/router -t:tcp -h 127.0.0.1 -p 10000
-! 03/23/10 16:49:56.271 warning: found unknown properties for object adapter `000000000000000000':
000000000000000000.Router.Locator.CollocationOptimized
000000000000000000.Router.Locator.ConnectionCached
000000000000000000.Router.Locator.EndpointSelection
000000000000000000.Router.Locator.LocatorCacheTimeout
000000000000000000.Router.Locator.PreferSecure
======= post createObjectAdapterWithRouter =====
first: 000000000000000000.Router second :Glacier2/router -t:tcp -h 127.0.0.1 -p 10000
first: 000000000000000000.Router.CollocationOptimized second :1
first: 000000000000000000.Router.ConnectionCached second :1
first: 000000000000000000.Router.EndpointSelection second :Random
first: 000000000000000000.Router.Locator second :IceGrid/Locator -t:tcp -h 127.0.0.1 -p 20000
first: 000000000000000000.Router.Locator.CollocationOptimized second :1
first: 000000000000000000.Router.Locator.ConnectionCached second :1
first: 000000000000000000.Router.Locator.EndpointSelection second :Random
first: 000000000000000000.Router.Locator.LocatorCacheTimeout second :-1
first: 000000000000000000.Router.Locator.PreferSecure second :0
first: 000000000000000000.Router.LocatorCacheTimeout second :-1
first: 000000000000000000.Router.PreferSecure second :0