We are actually in the process of upgrading the ice version of our system from 3.1 to 3.2.1.
By doing this, we found out a problem trying to get the admin session of our icegrid registry. We are using the NullPermissionsVerifier in this case to simplify the process.
The code is the following:
Ice::ObjectPrx base = m_ic->stringToProxy("IceGridTest/Registry:default -p 12000");
IceGrid::RegistryPrx regObj = IceGrid::RegistryPrx::checkedCast(base);
IceGrid::AdminSessionPrx sess = regObj->createAdminSession("Toto", "");
sess->getAdmin();
The problem is that the call of the function getAdmin() returns an Ice.ObjectNotExistException. However, the call to createAdminSession() seems to work correctly and does not return any exception. In particular, we do not get any PermissionDeniedException. The AdminSessionPrx sess is also not null.
The very strange thing is that this code is working fine with ice version 3.1. We are then correctly getting the admin. But when used with ice 3.2.1, it returns this Ice.ObjectNotExistException.
I looked up in the ice 3.2.1 documentation and did not found any changes in the code you provide to create admin session. So I am wondering where the problem is coming from.