Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-849

Error messages from Airavata API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8
    • 0.8
    • Airavata Client
    • None

    Description

      Main error messages thrown from Airavata API are not useful. We always give this error org.apache.airavata.client.api.AiravataAPIInvocationException: Error invoking API if someone is doing a getLocalMessage in the error trace. Main error is hidden way down in the error stack. If you see the following error log, we have the right error coming from log message but when i tried to do e.getLocalizedMessage() to return the calling service i just get "java.lang.RuntimeException: org.apache.airavata.client.api.AiravataAPIInvocationException: Error invoking API". We need improve throwing the right error message to the client.

      [INFO] Calling airavata client to run US3-test-stampede
      [INFO] Submitting the request with airavata on http://156.56.104.85:7070/airavata-server/services/WorkflowInterpretor
      [ERROR] The workflow US3_Service does not exists in user space!!!
      org.apache.airavata.registry.api.exception.worker.UserWorkflowDoesNotExistsException: The workflow US3_Service does not exists in user space!!!
      at org.apache.airavata.persistance.registry.jpa.impl.AiravataJPARegistry.getWorkflowGraphXML(AiravataJPARegistry.java:1109)
      at org.apache.airavata.client.impl.WorkflowManagerImpl.getWorkflowAsString(WorkflowManagerImpl.java:221)
      at org.apache.airavata.client.impl.WorkflowManagerImpl.getWorkflow(WorkflowManagerImpl.java:214)
      at org.apache.airavata.client.impl.WorkflowManagerImpl.getWorkflow(WorkflowManagerImpl.java:335)
      at org.apache.airavata.client.impl.WorkflowManagerImpl.getWorkflowInputs(WorkflowManagerImpl.java:464)
      at org.ogce.airavata.client.UltrascanRun.runWorkflow(UltrascanRun.java:150)
      at org.ogce.airavata.client.UltrascanRun.runWorkflow(UltrascanRun.java:132)
      at org.ogce.gram.job.AiravataJobRun$JobRunner.call(AiravataJobRun.java:374)
      at org.ogce.gram.job.AiravataJobRun$JobRunner.call(AiravataJobRun.java:363)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      [ERROR] Error invoking API
      org.apache.airavata.client.api.AiravataAPIInvocationException: Error invoking API
      at org.apache.airavata.client.impl.WorkflowManagerImpl.getWorkflowAsString(WorkflowManagerImpl.java:223)
      at org.apache.airavata.client.impl.WorkflowManagerImpl.getWorkflow(WorkflowManagerImpl.java:214)
      at org.apache.airavata.client.impl.WorkflowManagerImpl.getWorkflow(WorkflowManagerImpl.java:335)
      at org.apache.airavata.client.impl.WorkflowManagerImpl.getWorkflowInputs(WorkflowManagerImpl.java:464)
      at org.ogce.airavata.client.UltrascanRun.runWorkflow(UltrascanRun.java:150)
      at org.ogce.airavata.client.UltrascanRun.runWorkflow(UltrascanRun.java:132)
      at org.ogce.gram.job.AiravataJobRun$JobRunner.call(AiravataJobRun.java:374)
      at org.ogce.gram.job.AiravataJobRun$JobRunner.call(AiravataJobRun.java:363)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: org.apache.airavata.registry.api.exception.worker.UserWorkflowDoesNotExistsException: The workflow US3_Service does not exists in user space!!!
      at org.apache.airavata.persistance.registry.jpa.impl.AiravataJPARegistry.getWorkflowGraphXML(AiravataJPARegistry.java:1109)
      at org.apache.airavata.client.impl.WorkflowManagerImpl.getWorkflowAsString(WorkflowManagerImpl.java:221)
      ... 12 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            raminder Raminderjeet Singh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: