[Ace-users] [ace-users] Issue occurs when put IDL file into TAO IFR in the second times

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Wed Nov 21 07:06:13 CST 2007


>We have come across some issues when we tried to put IDL into tao IFR.
>Does TAO support to put IDL file that contains keyword 'typedef' into
>IFR multiple times?
>TAO IFR VERSION(generated by command: tao_ifr -V):
>TAO_IDL_FE, version 1.5a (Based on Sun IDL FE, version 1.3.0)
>TAO_IFR_BE, version 1.5a

Since you're using OCI's version of TAO I recommend sending your
questions to taosupport at ociweb.com since they provide excellent
commercial support for their releases of TAO.  Naturally, we encourage
and appreciate other members of the ACE+TAO user community who can
respond to questions about the OCI release if they have the answers.

You may also want to consider upgrading to ACE+TAO+CIAO x.6 (i.e., ACE
5.6, TAO 1.6, and CIAO 0.6), which you can download from


under the heading: "Latest Beta Kit".

The DOC groups at Washington University, UC Irvine, and Vanderbilt
University only provide "best effort" support for non-sponsors for the
latest release, as described in


Thus, if you need more "predictable" help for earlier versions of
ACE+TAO, I recommend that you check out


for a list of companies that will provide you with ACE+TAO commercial



>PROBLEM Description:
>Exceptions occured when we tried to put the same IDL file that
>contains keyword 'typedef' into TAO Interface Repository(IFR) twice.
>Our procdure is:
>1. start up IFR service:
>     $TAO_ROOT/orbsvcs/IFR_Service/IFR_Service -o if_repo.ior
>&             ===>SUCCESS
>2. Put IDL file FMK_ItString.idl into IFR:
>      $ACE_ROOT/bin/tao_ifr -v  -ORBInitRef InterfaceRepository=file://
>if_repo.ior FMK_ItString.idl
>The result is OK and IDL file 'FMK_ItString.idl'(Attached to this
>mail)  is put into IFR successfully. However, exception arises when we
>run this command again. The exception looks like:
>(16592|1) EXCEPTION, visit_typedef
>system exception, ID 'IDL:omg.org/CORBA/BAD_PARAM:1.0'
>OMG minor code (2), described as 'RID already defined in IFR.',
>completed = NO
>(ifr_adding_visitor.cpp:106) ifr_adding_visitor::visit_scope - failed
>to accept visitor
>(ifr_adding_visitor.cpp:217) ifr_adding_visitor::visit_module -
>visit_scope failed
>(ifr_adding_visitor.cpp:106) ifr_adding_visitor::visit_scope - failed
>to accept visitor
>(ifr_adding_visitor.cpp:2177) ifr_adding_visitor::visit_root -
>visit_scope failed
>(be_produce.cpp:221) BE_produce - failed to accept adding visitor
>Fatal Error - Aborting
>However, for other IDL(test_new.idl) that does not contain keyword
>'typedef', there is no problem when we put same it repeatly.
>Additionally, I added new interface for FMK_ItString.idl and tried to
>put this idl to the IFR. Unfortunately, I failed and the same
>exception occured.
>Therefore, Is this a bug of TAO IFR?  Does tao support keyword
>'typedef' in IDL file for IFR? If yes, what actions should we take for
>this case?
>#ifndef __FMK_ITSTRING_IDL__
>#define __FMK_ITSTRING_IDL__
>module wtk {
>  typedef string FMK_ItSeqString;
>#endif // __FMK_ITSTRING_IDL__
>#ifndef _IDL_BBB_TYPE
>#define _IDL_BBB_TYPE
>module warehouse
>  interface BBB
>  {
>    boolean getDeskNumber (in string artist,
>                       inout string title,
>                       out float price);
>  };

Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu

More information about the Ace-users mailing list