[ 
https://issues.apache.org/jira/browse/AIRAVATA-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15761884#comment-15761884
 ] 

Marcus Christie commented on AIRAVATA-2041:
-------------------------------------------

On the backend, registry has this error:
{noformat}
2016-12-19 12:52:43 [pool-1-thread-329] ERROR org.apache.thrift.ProcessFunction 
- Internal error processing getExperiment
org.apache.airavata.model.error.ExperimentNotFoundException: Requested 
experiment id foo does not exist in the system..
        at 
org.apache.airavata.registry.api.service.handler.RegistryServerHandler.getExperimentInternal(RegistryServerHandler.java:3593)
        at 
org.apache.airavata.registry.api.service.handler.RegistryServerHandler.getExperiment(RegistryServerHandler.java:581)
        at 
org.apache.airavata.registry.api.RegistryService$Processor$getExperiment.getResult(RegistryService.java:12470)
        at 
org.apache.airavata.registry.api.RegistryService$Processor$getExperiment.getResult(RegistryService.java:12454)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
{noformat}

But then in the API server
{noformat}
2016-12-19 12:52:43 [pool-6-thread-46] ERROR org.apache.thrift.ProcessFunction 
- Internal error processing getExperimentByAdmin
org.apache.thrift.TApplicationException: Internal error processing getExperiment
        at 
org.apache.thrift.TApplicationException.read(TApplicationException.java:111)
        at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79)
        at 
org.apache.airavata.registry.api.RegistryService$Client.recv_getExperiment(RegistryService.java:3464)
        at 
org.apache.airavata.registry.api.RegistryService$Client.getExperiment(RegistryService.java:3451)
        at 
org.apache.airavata.api.server.handler.AiravataServerHandler.getExperimentByAdmin(AiravataServerHandler.java:1191)
        at 
org.apache.airavata.api.server.security.interceptor.SecurityInterceptor.invoke(SecurityInterceptor.java:57)
        at 
org.apache.airavata.api.Airavata$Processor$getExperimentByAdmin.getResult(Airavata.java:17239)
        at 
org.apache.airavata.api.Airavata$Processor$getExperimentByAdmin.getResult(Airavata.java:17223)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
{noformat}

I think the problem is that registry-api.thrift doesn't declare that it throws 
an ExperimentNotFoundException causing an internal Thrift error.



> Provide proper error message when searched non existing experiment ID in 
> Experiment Statistics page
> ---------------------------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-2041
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2041
>             Project: Airavata
>          Issue Type: Bug
>          Components: PGA PHP Web Gateway
>            Reporter: Eroma
>            Assignee: Marcus Christie
>             Fix For: 0.17
>
>
> When searched a non existing or wrong experiment ID 
> 1. New tab opens with message 'Exception: Internal error processing 
> getExperiment'
> This should be replaced with proper PGA message meaningful to the end user.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to