[omniORB] Marshal exception

Duncan Grisby duncan@grisby.org
Tue Jun 18 13:16:00 2002


On Monday 17 June, "vaibhav jha" wrote:

[...]
> message = {"message":"Hello from Python"}
> eo.echoString(message)

Luke has correctly pointed out that the type of message is wrong, and
that code will fail. However, you are seeing an earlier error

> but when i run the client program it gives the following error:
> 
> D:\CORBA>python.exe client.py 
> IOR:010000001500000049444c3a4578616d706c652f456368
> 00002a000000010100000d0000003137322e32302e352e31363500006d040e000000fe3c880d3d00
> 0000f50000000000
> Traceback (most recent call last):
>    File "client.py", line 8, in ?
>      obj = orb.string_to_object(ior)
>    File "d:\omni\lib\python\CORBA.py", line 477, in 
> string_to_object
>      sys.modules["CORBA"] = omniORB.CORBA
> omniORB.CORBA.MARSHAL: Minor: 0, Completed: COMPLETED_NO.

This exception shows that the IOR is invalid. Rather than passing the
IOR on the command line, which is a pain on Windows, try saving it to
a file and reading it in the client.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --