Discussion:
[omniORB] Problem in creating a servant
srinath duraisamy
2009-11-04 20:00:22 UTC
Permalink
Hi all,

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.*
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)

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.
Any help will be very grateful. Thanks in advance

Srinath.D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20091104/adba4fbb/attachment.htm
Duncan Grisby
2009-11-05 23:26:06 UTC
Permalink
Post by srinath duraisamy
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?
Post by srinath duraisamy
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.
Post by srinath duraisamy
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 --
-- ***@grisby.org --
-- http://www.grisby.org --
srinath duraisamy
2009-11-06 16:00:00 UTC
Permalink
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.rar
Type: application/octet-stream
Size: 2749 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20091106/56ac22de/test.obj
Duncan Grisby
2009-11-15 03:02:45 UTC
Permalink
Post by srinath duraisamy
omniORB: ERROR -- A servant has been deleted that is still activated.
id: root<0> (active)
The servant it is talking about is your AdapterActivator, not the other
servant.

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...