Hi All,
I'm writing the code for c++ version of
https://github.com/apache/airavata/blob/0.14_release/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/tools/RegisterSampleApplications.java
<http://s.bl-1.com/h/oSMp6DN?url=https://github.com/apache/airavata/blob/0.14_release/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/tools/RegisterSampleApplications.java>
to
aid users to register modules without necessarily having java installed
(for eg., those who want to run genapp- c++/qt modules). The code upon
execution is throwing an exception in the following part (*bolded*)
----------------------------------------------------------------------------------------------
cout << "\n #### Registering Localhost Computational Resources" << endl;
string hostname="localhost";
string hostDesc="LocalHost";
set<string> ipAddresses;
set<string> hostAliases;
ComputeResourceDescription host;
host.__set_hostName(hostname);
host.__set_resourceDescription(hostDesc);
host.__set_ipAddresses(ipAddresses);
host.__set_hostAliases(hostAliases);
ResourceJobManagerType::type resourceJobManagerType =
ResourceJobManagerType::FORK;
ResourceJobManager resourceJobManager;
map<JobManagerCommand::type, std::string> jobManagerCommand;
resourceJobManager.__set_resourceJobManagerType(resourceJobManagerType);
resourceJobManager.__set_pushMonitoringEndpoint("");
resourceJobManager.__set_jobManagerBinPath("");
resourceJobManager.__set_jobManagerCommands(jobManagerCommand);
LOCALSubmission localSubmission;
localSubmission.__set_resourceJobManager(resourceJobManager);
bool submissionStatus =
*airavataClient->addLocalSubmissionDetails(localhostId,1,localSubmission);*
------------------------------------------------------------------------------------------------------------
error:"addLocalSubmissionDetails failed: unknown result"
What might be the possible causes for it?
Thanks,
Priyanshu