[cosmic-users] RE: [cosmic-dev] Incorrect method signature

Jeff Parsons j.parsons at vanderbilt.edu
Thu Apr 27 12:44:35 CDT 2006


Hi Hi,

I'm at OCI and finally able to send email with Outlook.
I know we spoke about most of the stuff below already on
the phone, but I'll send this belated email anyway in the
interest of closure.

thanks,

Jeff

Hi,

I think this may be due to version skew. When I changed the CIDL
compiler to generate a complete scope flat name for the entry
points, the IDL importer and interpreters were changed ad well.
So there may be an older interpreter being used here - if nobody
else has looked into that by the time I get back, I'll do it.

Jeff 

> -----Original Message-----
> From: DouglasS. [mailto:schmidt at dre.vanderbilt.edu] 
> Sent: Wednesday, April 26, 2006 8:47 AM
> To: Nicholas Grimes; Will_Otte; Jaiganesh B.; Jeff Parsons
> Cc: cosmic-users at list.isis.vanderbilt.edu; 
> cosmic-dev at list.isis.vanderbilt.edu; Keith W Muzzioli; John K 
> Black; Paul R Legault; John M Slaby
> Subject: Re: [cosmic-dev] Incorrect method signature 
> 
> 
> Hi Nick, 
> 
>    Thanks for the bug report.  Jeff/Will/Jai, is this 
> something you guys could fix while Kitty's out of town? 
> 
> Thanks, 
> 
>         Doug 
> 
> > CoSMIC VERSION: 0.4.5
> > 
> >     HOST MACHINE and OPERATING SYSTEM: 
> >       i.e., which version of Windows are you using. Windows 
> XP, CentOS 
> > 4.2
> > 
> >     TOOL/AREA/CLASS/EXAMPLE AFFECTED: 
> > [Particularly, which tool in CoSMIC is affected? PICML or 
> > generate_component_mpc.pl
> > 
> >     DOES THE PROBLEM AFFECT: 
> >         COMPILATION? 
> >         LINKING? 
> >         EXECUTION? Incorrect method signature 
> >         OTHER
> > 
> >     SYNOPSIS: 
> > 
> > Note: I used “Building a Stock Quooter with CoSMIC and 
> Dance Tutorial 
> > for guidance.
> > 
> > Modelling Side (Windows XP)
> > 
> > 1. Create ProxyComponent.idl
> > 
> > //ProxyComponent.idl,v 1.1 2006
> > #include <Components.idl>
> > module MyProxyComponent
> > {
> > 
> >   interface Dummy { 
> >       void DoNothing(); 
> >   }; 
> >   /** 
> >    * @class ProxyCOmponent 
> >    * 
> >    * @brief component 
> >    */ 
> >   component ProxyComponent supports Dummy 
> >   { 
> >       attribute string theExecutable; 
> >       attribute string theArg0; 
> >       attribute string theArg1; 
> >       attribute string theArg2; 
> >       attribute string theArg3; 
> >       attribute string theArg4; 
> >       attribute string theArg5; 
> >       attribute string theArg6; 
> >       attribute string theArg7; 
> >       attribute string theArg8; 
> >       attribute string theArg9; 
> >       attribute string theEnvironmentFile; 
> >   };
> > 
> >   /** 
> >    * @class ProxyComponentHome 
> >    * 
> >    * @brief home for ProxyComponent component 
> >    */ 
> >   home ProxyComponentHome manages ProxyComponent 
> >   { 
> >   };
> > };
> > 
> > 2. Create ProxyComponnent.cidl
> > 
> > #ifndef PROXYCOMPONENT_CIDL
> > #define PROXYCOMPONENT_CIDL
> > #include "ProxyComponent.idl" 
> > module MyProxyComponent
> > { 
> >   composition session ProxyComponent_Impl 
> >   { 
> >     home executor ProxyComponentHome_Exec 
> >     { 
> >       implements ProxyComponentHome; 
> >       manages ProxyComponent_Exec; 
> >     }; 
> >   };
> > };
> > #endif // !defined PROXYCOMPONENT_CIDL
> > 
> > 3. Run C:\Program Files\Microsoft Visual Studio .NET 
> > 2003\Vc7\bin\VCVARS32.bat
> > 
> > 4 Run idl_to_picml -x ProxyComponent ProxyComponent.idl
> > 
> > 5. In GME, Create Project, PICML, D:\njg\env\ProxyComponent
> > 
> > 6 In GME Run File->Import XML d:\njg\env\ProxyComponent.xme
> > 
> > 7 In GME ComponentImplementations, Expand 
> > ProxyComponentImplementation, ProxyComponent_svnt,
> >    entrypoin and note the value: createProxyComponentHome_Servant
> > 
> >  8. Finish up the model details and Generate FlattendDeploymentPlan 
> > with name PC_Plan.
> > 
> > Code Side  (LINUX CENTOS)
> > 
> > 1. Put PC_Plan into descriptors folder, characterization file 
> > ProxyComponent.wlgChar into characterization folder. (Attached)
> > 
> > 2. Write the code for ProxyComponent_exec.(cpp h)  (Attached)
> > 
> > 3. Source the shell script to setup ACE/TAO/CIAO environment. 
> > 
> > 4. Create folder and put in ProxyComponent_exec.(cpp h), 
> > ProxyComponent.idl and ProxyComponent.cidl.
> > 
> > 5. Run $CIAO_ROOT/bin/cidlc  ProxyComponent.cidl. 
> > 
> > 6. Run $CIAO_ROOT/bin/generate_component_mpc.pl ProxyComponent. 
> > 
> > 7. Run $ACE_ROOT/bin/mwc.pl. 
> > 
> > 8. Run gmake and fix bugs until a closure is formed. 
> > 
> > 3. Run Node Manager and Execution Manager and Plan Launcher. 
> > 
> > 4. Dies trying to find createProxyComponentHome_Servant. 
> > 
> > (output): 
> > 
> > Node Manager
> > 
> > Node Daemon Profile
> > ------------------------------------
> > Current Directory  : 
> > 
> /proj/CHSIRAD/BUILD_0/DRM/AIF/ComponentizedWLG/ComponentWLG/ch
aracterization 
> > NodeDaemon Name    : localhost 
> > NodeDaemon Port    : 10000 
> > -ORBEndpoint iiop://localhost:10000 -s 
> > 
> /proj/CHSIRAD/BUILD_0/DRM/Middleware/ACE_wrappers/TAO/CIAO/DAnCE/NodeA
> > pplication/NodeApplicationCIAO_NodeManager
> >  IOR: 
> > 
> IOR:010000001900000049444c3a4349414f2f4e6f64654d616e616765723a312e3000
> > 
> 000000010000000000000068000000010102000a0000006c6f63616c686f7374001027
> > 
> 1b00000014010f00525354ab234e447eab0e0000000000010000000100000000020000
> > 
> 00000000000800000001000000004f4154010000001800000001000000010001000100
> > 0000010001050901010000000000
> 
> > CIAO_NodeManager is running... 
> > *** Starting NodeApplication
> > Running NodeApplication... 
> > (5358|3086887776) EXCEPTION, Container_Impl::install
> > 
> > user exception, ID 'IDL:Deployment/ImplEntryPointNotFound:1.0' 
> > (5358|3086887776) EXCEPTION, CIAO_NodeApplication::install error
> > 
> > user exception, ID 'IDL:Deployment/ImplEntryPointNotFound:1.0' 
> > 
> > 
> **********************************************************************
> > *********
> > Execution Manager
> > 
> > CIAO_ExecutionManager is running... 
> > (5351|3086882496) EXCEPTION, 
> > DomainApplicationManager_Impl::startLaunch
> > 
> > user exception, ID 'IDL:Deployment/StartError:1.0' 
> > 
> > 
> **********************************************************************
> > *********
> > 
> > Plan Launcher
> > 
> > (5356|3086874304) Initializing the Xerces runtime
> > CIAO_PlanLauncher: start Launch application... 
> > EXCEPTION: StartError exception caught: 
> > SessionContainer::ciao_install_home, Entry point 
> > createProxyComponentHome_Servant invalid in dll ProxyComponent_svnt 
> > Deployment failed.  Plan_Launcher exiting.
> > 
> > 
> **********************************************************************
> > *********
> > 
> > 5. Should be looking for 
> > create_MyProxyComponent_ProxyComponentHome_Servant
> > . 
> > 
> > 6. Verify by running nm -o libProxyComponent_svnt.so | grep 
> > Home_Servant and noting it finds
> >      create_MyProxyComponent_ProxyComponentHome_Servant but not 
> >      create_MyProxyComponent_ProxyComponentHome_Servant
> > 
> > Modelling side
> > 
> > 1. Change name in ArtifactContainer, redeploy. 
> > 
> > Code Side
> > 
> > 1. Repeat test and it works. 
> > 
> > (See attached file: ProxyComponent_exec.h)(See attached file: 
> > ProxyComponent.cidl)(See attached file: ProxyComponent.idl)(See 
> > attached
> > file: ProxyComponent.wlgChar)(See attached file: 
> > ProxyComponent_exec.cpp) (See attached file: PC_Plan.cdp)
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > cosmic-dev mailing list
> > cosmic-dev at list.isis.vanderbilt.edu
> > http://list.isis.vanderbilt.edu/mailman/listinfo/cosmic-dev
> 
> 



More information about the cosmic-users mailing list