Skip to content

Dynamic Invoke & Dispatch in Python-client/Java-server app #2101

Answered by pepone
KLR2002 asked this question in Q&A
Discussion options

You must be logged in to vote

It seems that the issue is related to the checkedCast invocation in the following code:

demo = Demo.OperationsPrx.checkedCast(base);

The checkedCast method makes a remote invocation to the ice_isA operation, which is a part of the Ice::Object interface.

Your Blobject implementation is throwing an ObjectNotExistException because it doesn't support the required operation. I would suggest replacing the checkedCast call with uncheckedCast, which does not make any remote calls. This approach is perfectly safe for your use case and should resolve the problem.

Cheers,
Jose

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@KLR2002
Comment options

@KLR2002
Comment options

@bernardnormier
Comment options

@KLR2002
Comment options

Answer selected by InsertCreativityHere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants