Archived

This forum has been archived. Please start a new discussion on GitHub.

Problems with checkedCast and uncheckedCast

Hi,
I have a problem doing a checkedCast over a string, this is the code:
getterIncidencias = GetterPrx::checkedCast(communicator()->stringToProxy(properties->getProperty("Getter.LocalStorer_incidencias.Proxy")));
and the property is "Getter.LocalStorer_incidencias.Proxy=getter_incidencias:tcp -h 138.4.9.76 -p 10031"
When the application tries to do it, its hangs here. I have changed the checkedCast for an uncheckedCast and it runs well (I have print it and it is allright), but later when it tries to invoke an operation over it, it hangs.
Do you know what is the problem?

Thanks

Comments

  • marc
    marc Florida
    A checkedCast calls ice_isA() on the server to confirm that the proxy indeed matches the type of the Ice object. For some reason your server doesn't respond to this call. There are many possible reasons, including your server running out of threads to serve the request, not having the OA activated, etc. Switch on network and/or protocol tracing to find out what's going on.

    uncheckedCast() is a purely local call. It doesn't check with the server whether the proxy indeed matches the type of the Ice object.