Home Help Center

NotRegisteredException

quadbytequadbyte Member Thierry WilmotOrganization: Société GénéraleProject: trading tools
Hello all,

After reading the doc and forum, I am stuck.

In the sample Ice-3.4.2-demos\democs\IceGrid\simple\client.cs, what could be the cause of a exception raise NotRegisteredException during the call of checkedCast() in this code ?
HelloPrx hello = null;
try
{
    hello = HelloPrxHelper.checkedCast(communicator().stringToProxy("hello"));
}
catch(Ice.NotRegisteredException)
{
   ...
}

Regards,
Thierry

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    The exception indicates that a well-known object (or object adapter) could not be found. If you define Ice.Trace.Locator=1 in your client, you should see log output that describes the unknown entity.

    Regards,
    Mark
  • quadbytequadbyte Member Thierry WilmotOrganization: Société GénéraleProject: trading tools
    mes wrote: »
    Hi,

    The exception indicates that a well-known object (or object adapter) could not be found. If you define Ice.Trace.Locator=1 in your client, you should see log output that describes the unknown entity.

    Regards,
    Mark

    Thanks Mark for your answer, I know the adapter that cause the problem. I just adapt for my needs the sample icegrid/simple and now it does not work. Client raise the exception and I am not find any difference between the icegrid/simple and my code...
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    I'd recommend starting with an empty IceGrid database, reviewing your deployment descriptor (XML) file, and re-deploying the application.

    If you're still having trouble, post an archive of the project and we'll take a look at it.

    Regards,
    Mark
Sign In or Register to comment.