[omniORB] Problem in creating a servant

Duncan Grisby duncan at grisby.org
Thu Nov 5 17:26:04 GMT 2009


On Wed, 2009-11-04 at 19:29 +0530, srinath duraisamy wrote:

> I am using Adapter Activator concept for creating a POAs. In main.cpp
> I am activating the Adapter Activator under root POA.
> Also I have an interface say server. In main.cpp I am creating a
> servant(after activating the adapter activator ) like server
> newServer.

Do you mean that you are creating your servant on the stack?

> In C++ implementation of the server interface inside the constructor I
> am throwing an exception. 
> When it comes out of constructor I am getting the following error
>  
> omniORB: ERROR -- A servant has been deleted that is still activated.
>       id: root<0> (active)

Are you activating the servant inside its constructor, before throwing
the exception?  That would cause that error.
 
> If I am activating the Adapter Activator after the creation of servant
> then I am not getting this error. what Adapter Activator has to do
> with this error.

I think you'll have to post some example code that exhibits the problem.
Please post a minimal example.

Cheers,

Duncan.

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





More information about the omniORB-list mailing list