Home Help Center

Problems with checkedCast and uncheckedCast

fgarciafgarcia Member Fernando García GómezOrganization: Recreativos Franco S.A.Project: SLUG ✭✭
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 -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?



  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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.
Sign In or Register to comment.