airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-2347) In airavata 0.17 JS deployment, cannot edit a project, getting a NullPointerException
Date Mon, 27 Mar 2017 19:10:41 GMT

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

Marcus Christie commented on AIRAVATA-2347:
-------------------------------------------

It looks like the problem is that the ExperimentCatalog is created using the "default" gateway
id: https://github.com/apache/airavata/blob/465f766e3555f7287e4593ea67cd50b4312d0bbd/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java#L3415.
For the Jetstream deployment the "default" gateway is php_reference_gateway.

This results in the experiment catalog user not being able to be found in [ProjectRegistry.updateProject|https://github.com/apache/airavata/blob/aedabdb322fab68cd9432fcf3475eccaba02d52d/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ProjectRegistry.java#L114-L114].

I think the fix is simple, just need to create the ExperimentCatalog with the actual gateway
id in the request.

{code}
experimentCatalog = RegistryFactory.getExperimentCatalog(updatedProject.getGatewayId());
{code}


> In airavata 0.17 JS deployment, cannot edit a project, getting a NullPointerException
> -------------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-2347
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2347
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>
> Stack trace:
> {noformat}
> 2017-03-24 14:27:54 [pool-1-thread-41] ERROR o.a.a.r.a.s.h.RegistryServerHandler - Error
while updating the project
> org.apache.airavata.registry.cpi.RegistryException: Error while updating the resource..PROJECT
>         at org.apache.airavata.registry.core.experiment.catalog.impl.ExperimentCatalogImpl.update(ExperimentCatalogImpl.java:276)
>         at org.apache.airavata.registry.api.service.handler.RegistryServerHandler.updateProject(RegistryServerHandler.java:3423)
>         at org.apache.airavata.registry.api.RegistryService$Processor$updateProject.getResult(RegistryService.java:12240)
>         at org.apache.airavata.registry.api.RegistryService$Processor$updateProject.getResult(RegistryService.java:12224)
>         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)
> Caused by: org.apache.airavata.registry.cpi.RegistryException: java.lang.NullPointerException
>         at org.apache.airavata.registry.core.experiment.catalog.impl.ProjectRegistry.updateProject(ProjectRegistry.java:148)
>         at org.apache.airavata.registry.core.experiment.catalog.impl.ExperimentCatalogImpl.update(ExperimentCatalogImpl.java:217)
>         ... 9 common frames omitted
> Caused by: java.lang.NullPointerException: null
>         at org.apache.airavata.registry.core.experiment.catalog.impl.ProjectRegistry.updateProject(ProjectRegistry.java:115)
>         ... 10 common frames omitted
> 2017-03-24 14:27:54 [pool-8-thread-48] ERROR o.a.a.a.s.h.AiravataServerHandler - Error
while updating the project
> org.apache.airavata.registry.api.exception.RegistryServiceException: Error while updating
the project. More info : Error while updating the resource..PROJECT
>         at org.apache.airavata.registry.api.RegistryService$updateProject_result$updateProject_resultStandardScheme.read(RegistryService.java:37671)
>         at org.apache.airavata.registry.api.RegistryService$updateProject_result$updateProject_resultStandardScheme.read(RegistryService.java:37657)
>         at org.apache.airavata.registry.api.RegistryService$updateProject_result.read(RegistryService.java:37599)
>         at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:86)
>         at org.apache.airavata.registry.api.RegistryService$Client.recv_updateProject(RegistryService.java:3157)
>         at org.apache.airavata.registry.api.RegistryService$Client.updateProject(RegistryService.java:3143)
>         at org.apache.airavata.api.server.handler.AiravataServerHandler.updateProject(AiravataServerHandler.java:808)
>         at org.apache.airavata.api.server.handler.AiravataServerHandler$$EnhancerByGuice$$33a53652.CGLIB$updateProject$19(<generated>)
>         at org.apache.airavata.api.server.handler.AiravataServerHandler$$EnhancerByGuice$$33a53652$$FastClassByGuice$$39729e10.invoke(<generated>)
>         at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
>         at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
>         at org.apache.airavata.api.server.security.interceptor.SecurityInterceptor.invoke(SecurityInterceptor.java:57)
>         at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
>         at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55)
>         at org.apache.airavata.api.server.handler.AiravataServerHandler$$EnhancerByGuice$$33a53652.updateProject(<generated>)
>         at org.apache.airavata.api.Airavata$Processor$updateProject.getResult(Airavata.java:16867)
>         at org.apache.airavata.api.Airavata$Processor$updateProject.getResult(Airavata.java:16851)
>         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}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message