[omniORB] bug report

Duncan Grisby dgrisby@uk.research.att.com
Thu, 16 Nov 2000 09:54:48 +0000


On Wednesday 15 November, Stefan Seefeld wrote:

> class CreateTool(Unidraw__POA.Tool):
>     def __init__(self): pass
>     def create_manipulator(self, traversal, event): return CreateManipulator()
> 
> This contains an obvious error, i.e. the 'CreateManipulator' is
> returned, not a reference to it.
> 
> Now the bug: the editor servant lives in the server, the 'current
> tool' in the client. When I try to instantiate the manipulator
>
> Tool_var tool = editor->current_tool();
> Manipulator_var manipulator = tool->create_manipulator();
> 
> I get a system exception in the server !  Clearly, the problem is in
> the client code, so the exception should be thrown and caught in the
> client.

I don't understand. It looks to me like the problem is in the server
code, so it should be caught in the server. What exactly are you
seeing, and what do you expect to see?  What should happen is that the
server detects the error and throws a BAD_PARAM exception, which
appears on the client.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --