| | | | Browse by category |
Article ID: 982
Last updated: 31 Jan, 2008
Problem
I am having problems with the server when using callbacks. The server fails with the following error:
Cause
This is a common problem we have been seeing with customers applications when using callback mechanisms. For example if I have the following idl:
Action
You need to make sure that you are linking both the _proxy.obj and _skel.obj on both the client and the server. This should fix the problem.
I am having problems with the server when using callbacks. The server fails with the following error:
Error message on this call:
Error:Marshal:TOBJ:Server Can Not Decode Request
Cause
This is a common problem we have been seeing with customers applications when using callback mechanisms. For example if I have the following idl:
module EchoModule {And the client tries to invoke the echo method:
interface Callback {
void callme(in string calstr);
};
interface Echo {
void echo(in string str, in Callback cbObj, in long count);
};
};
EchoModule::Echo_ptr echoObj = EchoModule::Echo::_narrow(obj);Then the client could run into the following error:
echoObj->echo(cbObj);
Error message on this call:The problem is that the server code has no idea how to marshal the object reference as the decoding information for the Callback object is in the proxy code.
Error:Marshal:TOBJ:Server Can Not Decode Request
Action
You need to make sure that you are linking both the _proxy.obj and _skel.obj on both the client and the server. This should fix the problem.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 982
Last updated: 31 Jan, 2008
Revision: 1
Views: 2781
Posted: 07 Mar, 2000 by
Dean J.
Updated: 31 Jan, 2008 by
Dean J.
Others in this category
Powered by KBPublisher (Knowledge base software)