[Ace-users] [ciao-users] CIAO - Help with Stock Quoter Example

Andre Muniz alnmuniz at gmail.com
Wed Feb 27 14:33:27 CST 2008


Abdul,

>  I generally recommend upgrading to the greatest and latest of CIAO and CoSMIC.

Ok, I'll do that.

>  What were you trying to do? Were you trying to follow the tutorial and recreate the CoSMIC model, and generate the descriptors, then run and deploy the system?

Yes, that's exactly what I was trying to do.

>  You have one of two option, changing all the signatures in the CoSMIC model yourself by hand. Or installing a newer CoSMIC and import the IDLs again, this will generate the newer signatures in the CosMIC model.

I've changed the signatures in the model by hand, but the error
persists. I tried to run the NodeManager in Debug mode in Visual
Studio and I saw that there was some kind of error with the
CIAO_Serverd.dll. Now I'm rebuilding CIAO to update the files and see
if it works.


Thanks,
Andre

On Wed, Feb 27, 2008 at 4:39 PM, Sowayan, Abdullah (N-DUA)
<abdullah.sowayan at lmco.com> wrote:
> Andre,
>
>  I generally recommend upgrading to the greatest and latest of CIAO and CoSMIC.
>
>  What were you trying to do? Were you trying to follow the tutorial and recreate the CoSMIC model, and generate the descriptors, then run and deploy the system? If so, I guess you ran into the problem that the signatures generated by the older CosMIC didn't match the signatures generated the new CIDLC. At some point between CIAO 0.4.8 and 0.6.3 we changed the way we generate those signatures, and folded the new algorithm into the newer CoSMIC, but since you were using the older CoSMIC, you ran into that conflict.
>
>  You have one of two option, changing all the signatures in the CoSMIC model yourself by hand. Or installing a newer CoSMIC and import the IDLs again, this will generate the newer signatures in the CosMIC model.
>
>
>  Thanks,
>  Abdul
>
>  > -----Original Message-----
>  > From: Andre Muniz [mailto:alnmuniz at gmail.com]
>
>
> > Sent: Wednesday, February 27, 2008 2:34 PM
>  > To: Sowayan, Abdullah (N-DUA)
>  > Cc: CIAO Users Mailing List
>  > Subject: Re: CIAO - Help with Stock Quoter Example
>  >
>  > Thanks, Abdul and William.
>  >
>  > You were right, the signatures are different. What is the best to do
>  > now? Upgrade to the x.6.3 version?
>  >
>  > Andre
>  >
>  > On Wed, Feb 27, 2008 at 4:20 PM, Sowayan, Abdullah (N-DUA)
>  > <abdullah.sowayan at lmco.com> wrote:
>  > > Andre,
>  > >
>  > >  If you look at $CIAO_ROOT\docs\tutorials\Quoter\Simple\03.html
>  > >
>  > >  Go to figure 4 (Implementation Artifacts), you'll find an entryPoint,
>  > click on it, if you look at the properties, you'll find the Signature.
>  > >
>  > >  Thanks,
>  > >  Abdul
>  > >
>  > >
>  > >
>  > >  > -----Original Message-----
>  > >  > From: Andre Muniz [mailto:alnmuniz at gmail.com]
>  > >  > Sent: Wednesday, February 27, 2008 2:01 PM
>  > >  > To: Sowayan, Abdullah (N-DUA)
>  > >  > Cc: CIAO Users Mailing List
>  > >  > Subject: Re: CIAO - Help with Stock Quoter Example
>  > >  >
>  > >  > Abdul,
>  > >  >
>  > >  > How do I check that signature in the CoSMIC model?
>  > >  >
>  > >  > Here is the PRF:
>  > >  >
>  > >  > -----------------------------------
>  > >  >     CIAO VERSION: 0.6.1
>  > >  >     TAO VERSION : 1.6.1
>  > >  >     ACE VERSION : 5.6.1
>  > >  >     *COSMIC VERSION : 0.4.8
>  > >  >
>  > >  >     HOST MACHINE and OPERATING SYSTEM:
>  > >  >         AMD Turion 64 Mobile 2.2 GHz, 1.0 GB RAM
>  > >  >         MS Windows XP Professional - Service Pack 2
>  > >  >
>  > >  >     TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
>  > >  >
>  > >  >     COMPILER NAME AND VERSION (AND PATCHLEVEL):
>  > >  >         MS Visual C++ 8.0 (Visual Studio 2005)
>  > >  >
>  > >  >     THE $ACE_ROOT/ace/config.h FILE :
>  > >  >         #include "ace/config-win32.h"
>  > >  >
>  > >  >     CONTENTS OF
>  > $ACE_ROOT/bin/MakeProjectCreator/config/default.features
>  > >  >     (used by MPC when you generate your own makefiles):
>  > >  >         cidl=1
>  > >  >         boost=1
>  > >  >
>  > >  >     AREA/CLASS/EXAMPLE AFFECTED:
>  > >  >         Stock Quoter Tutorial - Step 6: System Deployment
>  > >  >
>  > >  >     DOES THE PROBLEM AFFECT:
>  > >  >         Deployment
>  > >  >
>  > >  >     SYNOPSIS:
>  > >  >         The NodeManager does not start.
>  > >  >
>  > >  >     DESCRIPTION:
>  > >  >         I've done all the modeling as described in the previous step
>  > >  > of the tutorial. At the deployment stage, when I try to start the
>  > >  > NodeManager by running
>  > >  >
>  > >  > %CIAO_ROOT%/bin/NodeManager -ORBListenendpoints
>  > iiop://localhost:30000
>  > >  > -s %CIAO_ROOT%/bin/NodeApplication -d 1000
>  > >  >
>  > >  > an application error occurs and the program is closed.
>  > >  > ------------------------------------
>  > >  >
>  > >  > Thanks,
>  > >  > Andre
>  > >  >
>  > >  > On Wed, Feb 27, 2008 at 12:37 PM, Sowayan, Abdullah (N-DUA)
>  > >  > <abdullah.sowayan at lmco.com> wrote:
>  > >  > > Andre
>  > >  > >
>  > >  > >
>  > >  > >  > Thanks a lot, Abdul. I apologize for sending that question
>  > directly
>  > >  > to
>  > >  > >  > you. I did it because your email address is at the bottom of the
>  > >  > >  > tutorial page, so I thought you would the one to get in touch
>  > with.
>  > >  > >  > Sorry :-)
>  > >  > >
>  > >  > >  Not a problem. The reason I ask you post to the list is that I may
>  > be
>  > >  > on travel or vacation, so you may not get a response. Besides, there
>  > are
>  > >  > people who are a lot more knowledgeable about ACE/TAO/CIAO on the
>  > user
>  > >  > list that may respond to your question.
>  > >  > >
>  > >  > >
>  > >  > >  > I did just as you said and it worked perfectly.
>  > >  > >
>  > >  > >  Excellent
>  > >  > >
>  > >  > >
>  > >  > >  > But another error
>  > >  > >  > occurred at the deployment stage. It seems that the NodeManager
>  > is
>  > >  > not
>  > >  > >  > starting correctly. I will try to figure out what is going on
>  > here
>  > >  > >  > before I send any questions again. Next time I'll use the PRF.
>  > >  > >
>  > >  > >  Can you use the PRF now? As a matter of fact, always use the PRF.
>  > I
>  > >  > have no idea which version of CIAO you are using, as such, I have to
>  > guess
>  > >  > what your problem might be.
>  > >  > >
>  > >  > >  Here is my advice:
>  > >  > >  1) Upgrade to the latest ACE/TAO/CIAO (which is x.6.3 now)
>  > >  > >  2) Upgrade to the latest CoSMIC version (I Believe it is 0.6.0)
>  > >  > >  3) Try to run the tutorial as is, see if it works for you (it
>  > works for
>  > >  > me).
>  > >  > >
>  > >  > >  If you are trying to follow the tutorial, then you have to have
>  > the
>  > >  > latest versions of the tools. If I remember correctly, there was a
>  > >  > mismatch between the factory signatures that the CIDLC generates and
>  > >  > CoSMIC generates.
>  > >  > >
>  > >  > >  I would check in your CoSMIC model and the code (including
>  > generated
>  > >  > code) if the signatures match. If they don't, you'll get a deployment
>  > >  > failure.
>  > >  > >
>  > >  > >  For example, here is the signature factory function in
>  > >  > StockBroker_exec.h:
>  > >  > >
>  > >  > >   extern "C" STOCKBROKER_EXEC_Export
>  > ::Components::HomeExecutorBase_ptr
>  > >  > >   create_Stock_StockBrokerHome_Impl (void);
>  > >  > >
>  > >  > >  Look into the CoSMIC model, and see if they are the same.
>  > >  > >
>  > >  > >  Thanks,
>  > >  > >  Abdul
>  > >  > >
>  > >  > >
>  > >  > >
>  > >  > >  > The CoSMIC version I have is 0.4.8.
>  > >  > >  >
>  > >  > >  > Thank you very much for your attention.
>  > >  > >  >
>  > >  > >  > Andre
>  > >  > >  >
>  > >  > >  > On Tue, Feb 26, 2008 at 3:51 PM, Sowayan, Abdullah (N-DUA)
>  > >  > >  > <abdullah.sowayan at lmco.com> wrote:
>  > >  > >  > > Andre
>  > >  > >  > >
>  > >  > >  > >  Please send any questions you have about to ACE/TAO/CIAO to
>  > the
>  > >  > >  > >  ACE/TAO/CIAO users group and not to me directly.
>  > >  > >  > >
>  > >  > >  > >  To ensure that we have proper version/platform/compiler
>  > >  > information,
>  > >  > >  > >  please make sure you fill out the appropriate problem report
>  > form
>  > >  > >  > >  (PRF), which is in
>  > >  > >  > >
>  > >  > >  > >  $CIAO_ROOT/PROBLEM-REPORT-FORM
>  > >  > >  > >
>  > >  > >  > >  or in
>  > >  > >  > >
>  > >  > >  > >  $CIAO_ROOT/BUG-REPORT-FORM
>  > >  > >  > >
>  > >  > >  > >  in older versions of ACE+TAO+CIAO.  Make sure to include this
>  > >  > >  > >  information
>  > >  > >  > >  when asking any questions about ACE+TAO+CIAO since otherwise
>  > we
>  > >  > have to
>  > >  > >  > >  "guess" what version/platform/compiler/options you've using,
>  > which
>  > >  > is
>  > >  > >  > >  very error-prone and slows down our responsiveness.  If you
>  > don't
>  > >  > use
>  > >  > >  > >  the PRF, therefore, it is less likely that someone from the
>  > core
>  > >  > >  > >  ACE+TAO developer team will be able to answer your question.
>  > >  > >  > >  Naturally, we encourage and appreciate other members of the
>  > >  > >  > ACE+TAO+CIAO
>  > >  > >  > >  user community who can respond to questions that they have
>  > the
>  > >  > answers
>  > >  > >  > >  to.
>  > >  > >  > >
>  > >  > >  > >
>  > >  > >  > >  > My name is Andre Muniz and I'm a MSc. student at Federal
>  > >  > University
>  > >  > >  > of
>  > >  > >  > >  > Bahia (Brazil). I'm new to CIAO and CoSMIC and I want to
>  > learn
>  > >  > about
>  > >  > >  > >  > these tools for my project, which concerns Component-Based
>  > DRE
>  > >  > >  > >  > Systems.
>  > >  > >  > >
>  > >  > >  > >  Welcome to CIAO ;-)
>  > >  > >  > >
>  > >  > >  > >
>  > >  > >  > >  > I was following the Stock Quoter tutorial and I got an
>  > error at
>  > >  > the
>  > >  > >  > >  > "Importing IDL to PICML" part. I think it's a simple error,
>  > but
>  > >  > I
>  > >  > >  > >  > couldn't solve it until now. I would appreciate if you
>  > could
>  > >  > help me
>  > >  > >  > >  > with it.
>  > >  > >  > >  >
>  > >  > >  > >  > When I try to do "idl_to_picml -x Quoter -r ." I get the
>  > >  > following
>  > >  > >  > >  > message:
>  > >  > >  > >  >
>  > >  > >  > >  > "Error: Filename CCM_Container.idl, included in
>  > >  > >  > >  > ./Broker/StockBrokerE.idl, not found in id table.
>  > >  > CCM_Container.idl
>  > >  > >  > >  > was omitted from command line or spelling differs in case"
>  > >  > >  > >
>  > >  > >  > >  It seems that you have compiled the project already. When you
>  > >  > import
>  > >  > >  > the
>  > >  > >  > >  IDL files to CoSMIC/PICML, you shouldn't import the generated
>  > IDL
>  > >  > >  > files.
>  > >  > >  > >  Clean the project first (that will remove generated files)
>  > then
>  > >  > import
>  > >  > >  > >  IDL to CoSMIC/PICML as the tutorial mentions.
>  > >  > >  > >
>  > >  > >  > >
>  > >  > >  > >  > This CCM_Container.idl file is located at
>  > "%CIAO_ROOT%\ciao"
>  > >  > >  > >  > directory. I checked the spelling case and it's the same. I
>  > also
>  > >  > >  > tried
>  > >  > >  > >  > to pass "-I%CIAO_ROOT%\ciao" as an argument to
>  > idl_to_picml, but
>  > >  > >  > >  > nothing happend.
>  > >  > >  > >  >
>  > >  > >  > >  > So, I have no clue about what is causing this error.
>  > >  > >  > >
>  > >  > >  > >  Follow my instructions above.
>  > >  > >  > >
>  > >  > >  > >
>  > >  > >  > >  > I would be very grateful if you could help me with this. If
>  > you
>  > >  > need
>  > >  > >  > >  > further information, please let me know.
>  > >  > >  > >
>  > >  > >  > >  The PROBLEM-REPORT-FORM would be very helpful. Also, what
>  > version
>  > >  > of
>  > >  > >  > >  CoSMIC do you have?
>  > >  > >  > >
>  > >  > >  > >  Thanks,
>  > >  > >  > >  Abdul
>  > >  > >  > >
>  > >  > >  >
>  > >  > >  >
>  > >  > >  >
>  > >  > >  > --
>  > >  > >  > André Muniz
>  > >  > >  > alnmuniz at gmail.com
>  > >  > >  > amuniz at dcc.ufba.br
>  > >  > >
>  > >  >
>  > >  >
>  > >  >
>  > >  > --
>  > >  > André Muniz
>  > >  > alnmuniz at gmail.com
>  > >  > amuniz at dcc.ufba.br
>  > >
>  >
>  >
>  >
>  > --
>  > André Muniz
>  > alnmuniz at gmail.com
>  > amuniz at dcc.ufba.br
>



-- 
André Muniz
alnmuniz at gmail.com
amuniz at dcc.ufba.br



More information about the Ace-users mailing list