Hello,
I am trying to get the Ice/hello demo to work with the IcePackRegistry and indirct binding. My configuration file is as follows:
The server, registry and (eventually) client will be reading from this file. I am modifying the source to add the object and adapter through the Admin proxy. Here is how I have modified the Ice/hello server to accomplish that:Code:Ice.Warn.Connections=1 Ice.ConnectionIdleTime=10 IceSSL.Trace.Security=0 Ice.Plugin.IceSSL=IceSSL:create IceSSL.Client.CertPath=../../../certs IceSSL.Client.Config=sslconfig.xml IceSSL.Server.CertPath=../../../certs IceSSL.Server.Config=sslconfig.xml IcePack.Registry.Client.Endpoints=tcp -p 12000 -h 10.54.19.208 IcePack.Registry.Server.Endpoints=tcp -p 12001 -h 10.54.19.208 IcePack.Registry.Admin.Endpoints=tcp -p 12002 -h 10.54.19.208 IcePack.Registry.Data=db IcePack.Registry.DynamicRegistration=1 IcePack.Registry.Trace.ServerRegistry=2 IcePack.Registry.Trace.AdapterRegistry=2 Ice.Default.Locator=IcePack/Locator:tcp -p 12000 -h 10.54.19.208
Currently it crashes on the admin->addObject line. The exception is not being caught and it points to an error saying "Debug Assertion Failed" in dbgdel.cpp. The call stack reflects nothing in the local scope, only displaying remote windows dlls. How can I better catch this exception, and what could be causing it? Thank you.Code:int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("Hello", "tcp -h 10.54.19.208 -p 10000" ); Ice::ObjectPtr object = new HelloI; Ice::ObjectPrx proxy = adapter->add(object, Ice::stringToIdentity("hello")); IcePack::AdminPrx admin = IcePack::AdminPrx::checkedCast(communicator->stringToProxy("IcePack/Admin")); adapter->activate(); std::cerr << "\n\nGot Here!!!\n\n"; try { admin->addObject(proxy); } catch(const Ice::Exception& e) { std::cout << "Some error: " << e << std::endl; } std::cerr << "\n\nGot Here2!!!\n\n"; communicator->waitForShutdown(); return EXIT_SUCCESS; }
Jennie

Reply With Quote
