Archived
This forum has been archived. Please start a new discussion on GitHub.
warning afther createObjectAdapterWithRouter
after and createObjectAdapterWithRouter I get that kind of warning :
Cheers,
Andrew
-! 03/22/10 15:07:28.491 warning: found unknown properties for object adapter `AdapterName': AdapterName.Router.Locator.CollocationOptimized AdapterName.Router.Locator.ConnectionCached AdapterName.Router.Locator.EndpointSelection AdapterName.Router.Locator.LocatorCacheTimeout AdapterName.Router.Locator.PreferSecure
Cheers,
Andrew
0
Comments
-
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,
Bernard0 -
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:#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:=======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
0 -
We have been able to reproduce the warnings. It occurs when you use createObjectAdapterWithRouter when you have a default locator set. You can ignore these warnings for now or disable them by setting Ice.Warn.UnknownProperties=0. Thanks for reporting this.0