Results 1 to 4 of 4

Thread: warning afther createObjectAdapterWithRouter

  1. #1
    Andrew is offline Registered User
    Name: Andrea Nicotra
    Organization: Personal
    Project: Backend for IPTV
    Join Date
    Jan 2008
    Posts
    29

    warning after createObjectAdapterWithRouter

    after and createObjectAdapterWithRouter I get that kind of warning :

    Code:
    -! 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
    Last edited by Andrew; 03-22-2010 at 10:42 AM.

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    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
    Bernard Normier
    ZeroC, Inc.

  3. #3
    Andrew is offline Registered User
    Name: Andrea Nicotra
    Organization: Personal
    Project: Backend for IPTV
    Join Date
    Jan 2008
    Posts
    29
    Quote Originally Posted by bernard View Post
    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

  4. #4
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    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.
    Dwayne Boone

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. slice2freeze: warning: use of sequences
    By Andrew in forum Help Center
    Replies: 2
    Last Post: 06-10-2008, 08:32 AM
  2. ThreadPool warning when Size=MaxSize
    By jae in forum Help Center
    Replies: 1
    Last Post: 12-28-2007, 09:03 PM
  3. Freeze compilation warning
    By ctennis in forum Bug Reports
    Replies: 1
    Last Post: 03-16-2007, 08:18 PM
  4. Leak Warning - Why?
    By acbell in forum Help Center
    Replies: 5
    Last Post: 08-03-2005, 02:55 PM
  5. CS: compiler warning
    By DeepDiver in forum Bug Reports
    Replies: 2
    Last Post: 01-10-2005, 07:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •