[omniORB] problem using ThreadPool in OmniORB

Malge Nishant MNishant at quark.co.in
Fri May 16 16:56:16 BST 2003


hi,
	I am using ThreadPool in omniORB. I have enabled it by disabling
threadPerConnectionPolicy. (-ORBthreadPerConnectionPolicy 0). Now the
problem --
I am running eg2_impl sample given in examples/echo. I have modified the
eg2_clt in examples/echo so that after each call to server (e->echoString)
it will sleep for one second. (loops infinite)

During run time, If I stop the server (eg2_impl) and restart it, for the
next call -  eg2_clt gets an exception - OBJECT_NOT_EXIST. eg2_clt ignores
the exception and loops again and makes an echoString call to the server and
hangs forever. No exception is received. 

What could be the reason??

	If I enable -ORBthreadPerConnectionPolicy 1, after eg2_impl restarts
each call from eg2_clt is receiving OBJECT_NOT_EXIST( which should happen).

I think there is no need to attach the traceLevel because there are no
messages on server screen (even with trace level 40).

Here is Client Call Stack :(sorry for the junk)-----

	-----------------  lwp# 1 / thread# 1  --------------------
 fef9be04 recv     (3, 99228, 2000, 0)
 ff2be02c __1cEomniNtcpConnectionERecv6MpvILL_i_ (9917c, 99228, 2000, 0, 0,
2018) + 10c
 ff27d07c __1cEomniKgiopStreamMinputMessage6M_pn0ARgiopStream_Buffer__
(970bc, 9917c, ff32d7d4, 99210, ff2bd
f20, 96f98) + 174
 ff295564 __1cEomniKgiopImpl12PinputReplyBegin6Fpn0AKgiopStream_pF3_v_v_
(970bc, ff295c94, 2418, 890f8, ff32
8fb8, 96f98) + 1a4
 ff2956f8 __1cEomniKgiopImpl12RinputMessageBegin6Fpn0AKgiopStream_pF3_v_v_
(970bc, ff295c94, 87c08, 96ea0, 9
a488, ff31e7c8) + 2c
 ff2843d4 __1cEomniGGIOP_CMReceiveReply6M_nEGIOPPReplyStatusType__ (970b8,
970bc, 96df4, e, 96e60, ffbeec20)
 + 98
 ff263dbc __1cSomniRemoteIdentityIdispatch6MrnSomniCallDescriptor__v_
(96df0, ffbeec20, ff28421c, 84968, 840
14, ff31e7c8) + 128
 ff244024 __1cKomniObjRefH_invoke6MrnSomniCallDescriptor_b_v_ (96ed0,
ffbeec20, 2000, 2d48, ff32752c, ff3278
30) + 214
 0002d390 __1cM_objref_EchoKechoString6Mpkc_pc_ (96ec0, 951d8, 84a10, 3b43c,
84e68, 0) + 3c
 0002c2d8 __1cFhello6FpnM_objref_Echo__v_ (96ec0, 1, 8, 86908, 2e304, 48b60)
+ 30
 0002c548 main     (6dc71, ffbeedac, ffbeedb8, 4, 0, 0) + 148
 0002c248 _start   (0, 0, 0, 0, 0, 0) + 108


PS : But one interesting thing is, if I close the restarted server eg2_clt
will unblock.



More information about the omniORB-list mailing list