BAD_PARAM in java CORBA

久未见 提交于 2019-12-06 16:45:59

The problem is that you are binding a Server object into the Name Service within your server code, but then your client code tries to narrow that to a Client type. Those types are incompatible.

Change your client code to do this instead:

Server s = ServerHelper.narrow(obj);

You don't need two separate IDL interfaces for client and server. Just create one that the server implements, and have the client call it.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!