[cosmic-users] Incorrect method signature
Matthew Gillen
mgillen at bbn.com
Tue Apr 25 12:27:25 CDT 2006
Hi Nicholas,
In your .cdp file you have this:
<location>ProxyComponent_svnt</location>
<execParameter>
<name>entryPoint</name>
<value>
<type>
<kind>tk_string</kind>
</type>
<value>
<string>create_MyProxyComponent_ProxyComponentHome_Servant</string>
</value>
</value>
</execParameter>
</artifact>
The "create_MyProxyComponent_ProxyComponentHome_Servant" string tells CIAO what
function to look for. It looks like you have the create function named:
"createProxyComponentHome_Impl"
Those two strings need to match, so either change the .cdp file or rename your
function to match what's in the .cdp file.
Matt
Try moving the
Nicholas Grimes wrote:
> 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/characterization
> NodeDaemon Name : localhost
> NodeDaemon Port : 10000
> -ORBEndpoint iiop://localhost:10000 -s
> /proj/CHSIRAD/BUILD_0/DRM/Middleware/ACE_wrappers/TAO/CIAO/DAnCE/NodeApplication/NodeApplicationCIAO_NodeManager
> IOR:
> IOR:010000001900000049444c3a4349414f2f4e6f64654d616e616765723a312e3000000000010000000000000068000000010102000a0000006c6f63616c686f73740010271b00000014010f00525354ab234e447eab0e000000000001000000010000000002000000000000000800000001000000004f41540100000018000000010000000100010001000000010001050901010000000000
> 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-users mailing list
> cosmic-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/cosmic-users
More information about the cosmic-users
mailing list