airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AMILA RANATUNGA <newair...@gmail.com>
Subject Writing Airavata output to a FILE
Date Tue, 18 Jun 2013 11:57:57 GMT
Hi,

How we can write Airavata out put to a file instead in std out. I tried
something like using API.

outputParameter.setParameterDescription("wps output");
        ParameterType outputParaType =
outputParameter.addNewParameterType();

//if I change the STD_OUT to File

 outputParaType.setType(DataType.FILE);


I got the following exception. But  I get the output correctly with the
STD_OUT.  After that how to save it to custom location?




<ns:invokingServiceFailed infoModelVersion="2.6"
  xmlns:ns="http://airavata.apache.org/schemas/wft/2011/08">
  <ns:notificationSource
ns:serviceID="Workflow1_e5a72bea_ee03_45ac_b8ce_33ab559115e7"
ns:experimentID="Workflow1_e5a72bea-ee03-45ac-b8ce-33ab559115e7" />
  <ns:timestamp>2013-06-18T17:18:18.230+05:30</ns:timestamp>
  <ns:description>Error while invoking provider
org.apache.airavata.gfac.provider.impl.LocalProvider dispose method.:
org.apache.airavata.gfac.GFacException: Error while invoking provider
org.apache.airavata.gfac.provider.impl.LocalProvider dispose
method.</ns:description>
  <ns:annotation>
    <stackTrace>org.apache.airavata.gfac.GFacException: Error while
invoking provider org.apache.airavata.gfac.provider.impl.LocalProvider
dispose method.
at org.apache.airavata.gfac.GFacAPI.disposeProvider(GFacAPI.java:102)
at org.apache.airavata.gfac.GFacAPI.schedule(GFacAPI.java:72)
at org.apache.airavata.gfac.GFacAPI.submitJob(GFacAPI.java:53)
at
org.apache.airavata.xbaya.invoker.EmbeddedGFacInvoker.invoke(EmbeddedGFacInvoker.java:330)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpreter.handleWSComponent(WorkflowInterpreter.java:682)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpreter.executeDynamically(WorkflowInterpreter.java:501)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpreter.scheduleDynamically(WorkflowInterpreter.java:186)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.executeWorkflow(WorkflowInterpretorSkeleton.java:385)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.access$400(WorkflowInterpretorSkeleton.java:78)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton$2.run(WorkflowInterpretorSkeleton.java:378)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.airavata.gfac.provider.GFacProviderException: Error
in retrieving results
at
org.apache.airavata.gfac.provider.impl.LocalProvider.dispose(LocalProvider.java:138)
at org.apache.airavata.gfac.GFacAPI.disposeProvider(GFacAPI.java:100)
... 10 more
Caused by: java.lang.Exception: Data for the output parameter 'wps_output'
was not found
at
org.apache.airavata.gfac.utils.OutputUtils.parseStdout(OutputUtils.java:82)
at
org.apache.airavata.gfac.utils.OutputUtils.fillOutputFromStdout(OutputUtils.java:59)
at
org.apache.airavata.gfac.provider.impl.LocalProvider.dispose(LocalProvider.java:132)
... 11 more
</stackTrace>
  </ns:annotation>
  <ns:receiver ns:serviceID="WPS_invoke"
ns:workflowID="Workflow1_e5a72bea_ee03_45ac_b8ce_33ab559115e7"
ns:workflowTimestep="0" ns:workflowNodeID="WPS_invoke" />
  <ns:failure>
    <ns:trace xsi:type="xs:string" xmlns:xs="
http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:ns="http://airavata.apache.org/schemas/wft/2011/08">org.apache.airavata.gfac.GFacException:
Error while invoking provider
org.apache.airavata.gfac.provider.impl.LocalProvider dispose method.
at org.apache.airavata.gfac.GFacAPI.disposeProvider(GFacAPI.java:102)
at org.apache.airavata.gfac.GFacAPI.schedule(GFacAPI.java:72)
at org.apache.airavata.gfac.GFacAPI.submitJob(GFacAPI.java:53)
at
org.apache.airavata.xbaya.invoker.EmbeddedGFacInvoker.invoke(EmbeddedGFacInvoker.java:330)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpreter.handleWSComponent(WorkflowInterpreter.java:682)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpreter.executeDynamically(WorkflowInterpreter.java:501)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpreter.scheduleDynamically(WorkflowInterpreter.java:186)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.executeWorkflow(WorkflowInterpretorSkeleton.java:385)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.access$400(WorkflowInterpretorSkeleton.java:78)
at
org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton$2.run(WorkflowInterpretorSkeleton.java:378)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.airavata.gfac.provider.GFacProviderException: Error
in retrieving results
at
org.apache.airavata.gfac.provider.impl.LocalProvider.dispose(LocalProvider.java:138)
at org.apache.airavata.gfac.GFacAPI.disposeProvider(GFacAPI.java:100)
... 10 more
Caused by: java.lang.Exception: Data for the output parameter 'wps_output'
was not found
at
org.apache.airavata.gfac.utils.OutputUtils.parseStdout(OutputUtils.java:82)
at
org.apache.airavata.gfac.utils.OutputUtils.fillOutputFromStdout(OutputUtils.java:59)
at
org.apache.airavata.gfac.provider.impl.LocalProvider.dispose(LocalProvider.java:132)
... 11 more
</ns:trace>
  </ns:failure>
</ns:invokingServiceFailed>



Thank You !

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message