[Ace-users] [ciao-users] CIAO - Help with Stock Quoter Example
Sowayan, Abdullah (N-DUA)
abdullah.sowayan at lmco.com
Mon Mar 3 13:13:12 CST 2008
Jeff,
> I can make a quick fix that will fix the Quoter example
> problem, but in general it will make the assumption that for
> a component Foo, its associated home type is FooHome. The
> fix for the general case requires that the entry point name
> be created from visiting the home, not the component, which
> is problematic and at the very least, a time-consuming fix.
Perhaps we should put this in bugzilla and have it as a blocker to CIAO 1.0 (whenever that may get released).
Thanks,
Abdul
> That said, it's important that the example work without
> problems regardless, so I will make the quick fix ASAP.
>
> Jeff
>
> > -----Original Message-----
> > From: Sowayan, Abdullah (N-DUA) [mailto:abdullah.sowayan at lmco.com]
> > Sent: Monday, March 03, 2008 11:25 AM
> > To: Andre Muniz; Jeff Parsons; CIAO Users Mailing List
> > Subject: RE: CIAO - Help with Stock Quoter Example
> >
> > Hi Jeff,
> >
> > Lord of the CIDLC and TAO_IDL, do you know if the signatures
> > of the factories that are generated by CIDLC and idl_to_picml
> > match? We ran into the problem in the past, I thought we
> > fixed it, but according to Andre's email below, this still
> > seems to be a problem. I would validate it, but I no longer
> > have the tools (latest CoSMIC, latest CIDLC) at hand since I
> > don't do CIAO work anymore.
> >
> > If this is indeed a valid bug report, it may be worth while
> > to fix this before CIAO 0.6.4 ships out.
> >
> > Thanks,
> > Abdul
> >
> > > -----Original Message-----
> > > From: Andre Muniz [mailto:alnmuniz at gmail.com]
> > > Sent: Monday, March 03, 2008 12:17 PM
> > > To: Sowayan, Abdullah (N-DUA)
> > > Subject: Re: CIAO - Help with Stock Quoter Example
> > >
> > > Sorry, I've mentioned latest version of CoSMIC, but the one
> > I have is
> > > the 0.6, because the 0.6.3 was released this saturday, isn't it?
> > >
> > > Yes, I started the modeling from scratch, not only this
> > part, but the
> > > whole tutorial! :)
> > >
> > > It was just a little difference between the signatures, while in the
> > > cidlc generated file is "create_Stock_StockDistributorHome_Impl", in
> > > the cosmic model we have
> > "create_Stock_StockDistributor_Home_Impl". It
> > > is just a "_" of difference, between "Distributor" and "Home".
> > >
> > > Andre
> > >
> > > On Mon, Mar 3, 2008 at 1:50 PM, Sowayan, Abdullah (N-DUA)
> > > <abdullah.sowayan at lmco.com> wrote:
> > > > Hi Andre,
> > > >
> > > > It is strange that you're running into these problems. I
> > updated the
> > > tutorial on the 3rd of December, 2007. I don't think
> > anything signitures
> > > have changed in CIAO or CoSMIC. I will have to check. If
> > so, i'll update
> > > the tutorial once I have some free time. Thanks for
> > bringing this to my
> > > attention.
> > > >
> > > > Quick question, when you updated to the latest CoSMIC
> > (version 0.6.3),
> > > did you start the modeling part from scratch again (i.e.,
> > did you do the
> > > idl_to_picml), or did you recycle the older one generated
> > by the older
> > > CoSMIC?
> > > >
> > > > THanks,
> > > > Abdul
> > > >
> > > > ________________________________
> > > >
> > > >
> > > > From: Andre Muniz [mailto:alnmuniz at gmail.com]
> > > > Sent: Mon 3/3/2008 11:47 AM
> > > >
> > > > To: Sowayan, Abdullah (N-DUA)
> > > >
> > > >
> > > > Subject: Re: CIAO - Help with Stock Quoter Example
> > > >
> > > >
> > > >
> > > > Hi, Abdul
> > > >
> > > > I finally got it to work! :) But there were some other
> > things that I
> > > > had to do besides those that you have mentioned.
> > > >
> > > > I've updated to the latest version of both CIAO and
> > CoSMIC, but that
> > > > error with the NodeManager continued. The problem was
> > that the nodes
> > > > in the NodeMap.dat had different names from those in the
> > CoSMIC model.
> > > >
> > > > After that, I saw that even with the latest version of
> > CoSMIC, the
> > > > signatures between the cidlc generated files and the
> > picml generated
> > > > files were still different. So I've changed the signatures in the
> > > > CoSMIC model by hand and it worked.
> > > >
> > > > Then I had problems with the plan_launcher. But that one
> > was easy, I
> > > > don't remember right now how I did to fix it.
> > > >
> > > > Now that I have completed the tutorial without problems,
> > I'm trying to
> > > > write my own example, but the CIDLC is giving an error
> > of "invalid
> > > > string literal format", and I don't know why this is happening,
> > > > because my cidl file is almost the same of the
> > StockDistributor.cidl.
> > > > I'm going to send this question to the ciao-users list in a new
> > > > thread.
> > > >
> > > > Thank you very much for you attention. If you have any
> > advice to give
> > > > me about this cidlc problem, I'll be very grateful.
> > > >
> > > > Regards,
> > > > Andre
> > > >
> > > >
> > > > On Wed, Feb 27, 2008 at 5:33 PM, Andre Muniz <alnmuniz at gmail.com>
> > > wrote:
> > > > > 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
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > 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