Anyone have any suggestions to debug this?

Priyanshu,

My minimal digging finds the this returned
$ find . -type f -name "*.cpp" | xargs grep "addLocalSubmissionDetails failed" ./airavata/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.cpp: throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "addLocalSubmissionDetails failed: unknown result");

So perhaps you could add some debugging to Airavata.cpp specifically in the function
void AiravataClient::recv_addLocalSubmissionDetails(std::string& _return) {}
to see exactly what is happening ?

We should also ask for suggestions during today's meeting.

-Emre


priyanshu patra wrote:
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

Reply via email to