[Bug 698] New: RTT CORBA masks lack of connection to name server

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=698

Summary: RTT CORBA masks lack of connection to name server
Product: RTT
Version: rtt-trunk
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P3
Component: Corba
AssignedTo: orocos-dev [..] ...
ReportedBy: kiwi [dot] net [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

We would like to be able to detect a failed initial connection to the CORBA
name server. Looking in ControlTaskServer:: ControlTaskServer(...) it appears
that the exception related to this condition is caught, and instead it dumps an
IOR file and continues. Essentially, we'd like to be able to say "connect to
name server otherwise fail".

Are there any repercussions to adding a flag to that function (and others that
call it, like ::CreateServer() ) to indicate this kind of behaviour? Is there
some other way we should do this?

Stephen

[Bug 698] RTT CORBA masks lack of connection to name server

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=698

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution| |FIXED
Status|ASSIGNED |RESOLVED

--- Comment #4 from Peter Soetens <peter [..] ...> 2009-10-27 12:09:31 ---
(In reply to comment #1)
> Created an attachment (id=500)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=500)
> Support requiring CORBA name service in RTT ControlTaskServer and
> ControlTaskProxy
>
> The defaults should provide the same behaviour, except for the following: I
> believe that the only difference is that ControlTaskProxy::Create() does not
> throw a CORBA TRANSIENT exception now when the name service is required but not
> found, instead it returns 0. This matches what ControlTaskServer::Create()
> already did.

Both patches applied on git/svn, but not back-ported to rtt-1.10.

Thanks, this is certainly useful.

Peter

[Bug 698] RTT CORBA masks lack of connection to name server

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=698

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |peter [..] ...
Status|NEW |ASSIGNED

--- Comment #3 from Peter Soetens <peter [..] ...> 2009-10-02 15:55:30 ---
Ack. It's in my queue.

[Bug 698] RTT CORBA masks lack of connection to name server

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=698

--- Comment #2 from S Roderick <kiwi [dot] net [..] ...> 2009-09-22 16:09:28 ---
Created an attachment (id=501)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=501)
Add command line options to OCL deployers to require CORBA name service

There should be no difference in behaviour here.

[Bug 698] RTT CORBA masks lack of connection to name server

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=698

--- Comment #1 from S Roderick <kiwi [dot] net [..] ...> 2009-09-22 16:08:43 ---
Created an attachment (id=500)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=500)
Support requiring CORBA name service in RTT ControlTaskServer and
ControlTaskProxy

The defaults should provide the same behaviour, except for the following: I
believe that the only difference is that ControlTaskProxy::Create() does not
throw a CORBA TRANSIENT exception now when the name service is required but not
found, instead it returns 0. This matches what ControlTaskServer::Create()
already did.

NB we should probably pull out the IllegalServer exception struct from
ControlTaskProxy.hpp into its own file.