You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/06/11 16:40:00 UTC

[jira] [Commented] (AIRAVATA-2821) TaskStatusPK.hashCode NullPointerException

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

ASF subversion and git services commented on AIRAVATA-2821:
-----------------------------------------------------------

Commit 0d3e2872619530107a5d3942ed5298b41a0214c1 in airavata's branch refs/heads/group-based-auth from [~marcuschristie]
[ https://gitbox.apache.org/repos/asf?p=airavata.git;h=0d3e287 ]

AIRAVATA-2821 Set STATUS_ID on TaskState in TaskRepository


> TaskStatusPK.hashCode NullPointerException
> ------------------------------------------
>
>                 Key: AIRAVATA-2821
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2821
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>
> RegisterServerHandler.addTask fails:
> {noformat}
> 2018-06-11 15:34:18,200 [pool-9-thread-23] ERROR o.a.a.r.a.s.h.RegistryServerHandler  - PROCESS_ffc4ae35-f8c3-4c4a-88b8
> -028f8ba9af13
> org.apache.openjpa.persistence.PersistenceException: null
>         at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:1017)
>         at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:916)
>         at org.apache.openjpa.kernel.BrokerImpl.isDetached(BrokerImpl.java:4594)
>         at org.apache.openjpa.kernel.BrokerImpl.isDetached(BrokerImpl.java:4563)
>         at org.apache.openjpa.kernel.VersionAttachStrategy.attach(VersionAttachStrategy.java:80)
>         at org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:252)
>         at org.apache.openjpa.kernel.AttachStrategy.attachCollection(AttachStrategy.java:348)
>         at org.apache.openjpa.kernel.AttachStrategy.attachField(AttachStrategy.java:227)
>         at org.apache.openjpa.kernel.VersionAttachStrategy.attach(VersionAttachStrategy.java:155)
>         at org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:252)
>         at org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:105)
>         at org.apache.openjpa.kernel.BrokerImpl.attach(BrokerImpl.java:3474)
>         at org.apache.openjpa.kernel.DelegatingBroker.attach(DelegatingBroker.java:1214)
>         at org.apache.openjpa.persistence.EntityManagerImpl.merge(EntityManagerImpl.java:878)
>         at org.apache.airavata.registry.core.repositories.expcatalog.TaskRepository.lambda$saveTask$3(TaskRepository.ja
> va:79)
>         at org.apache.airavata.registry.core.repositories.expcatalog.ExpCatAbstractRepository.execute(ExpCatAbstractRep
> ository.java:99)
>         at org.apache.airavata.registry.core.repositories.expcatalog.TaskRepository.saveTask(TaskRepository.java:79)
>         at org.apache.airavata.registry.core.repositories.expcatalog.TaskRepository.saveTaskModelData(TaskRepository.ja
> va:44)
>         at org.apache.airavata.registry.core.repositories.expcatalog.TaskRepository.addTask(TaskRepository.java:84)
>         at org.apache.airavata.registry.api.service.handler.RegistryServerHandler.addTask(RegistryServerHandler.java:94
> 9)
>         at org.apache.airavata.registry.api.RegistryService$Processor$addTask.getResult(RegistryService.java:15845)
>         at org.apache.airavata.registry.api.RegistryService$Processor$addTask.getResult(RegistryService.java:15829)
>         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:748)
> Caused by: java.lang.NullPointerException: null
>         at org.apache.airavata.registry.core.entities.expcatalog.TaskStatusPK.hashCode(TaskStatusPK.java:70)
>         at org.apache.openjpa.util.ObjectId.idHash(ObjectId.java:58)
>         at org.apache.openjpa.util.OpenJPAId.hashCode(OpenJPAId.java:124)
>         at org.apache.commons.collections.map.AbstractHashedMap.hash(AbstractHashedMap.java:372)
>         at org.apache.commons.collections.map.AbstractHashedMap.getEntry(AbstractHashedMap.java:432)
>         at org.apache.commons.collections.map.AbstractReferenceMap.getEntry(AbstractReferenceMap.java:404)
>         at org.apache.commons.collections.map.AbstractReferenceMap.get(AbstractReferenceMap.java:229)
>         at org.apache.openjpa.kernel.ManagedCache.getById(ManagedCache.java:67)
>         at org.apache.openjpa.kernel.BrokerImpl.getStateManagerImplById(BrokerImpl.java:4632)
>         at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:940)
>         ... 27 common frames omitted
> {noformat}
> And
> {noformat}
> 2018-06-11 15:34:18,203 [pool-31-thread-4] ERROR o.a.a.o.s.OrchestratorServerHandler experiment_id=EchoonJun11,201811:33AM_fd6c092c-d628-4504-88b8-dcad31eb78ae, gateway_id=seagrid - Experiment launch failed due to Thrift conversion error, experimentId: EchoonJun11,201811:33AM_fd6c092c-d628-4504-88b8-dcad31eb78ae, gatewayId: seagrid
> org.apache.thrift.TException: Experiment 'EchoonJun11,201811:33AM_fd6c092c-d628-4504-88b8-dcad31eb78ae' launch failed. Unable to figureout execution type for application Echo_3f480d1f-ea86-4018-94bb-015423d66a1c
>         at org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchExperiment(OrchestratorServerHandler.java:262)
>         at org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchExperiment(OrchestratorServerHandler.java:711)
>         at org.apache.airavata.orchestrator.server.OrchestratorServerHandler.access$500(OrchestratorServerHandler.java:77)
>         at org.apache.airavata.orchestrator.server.OrchestratorServerHandler$ExperimentHandler.onMessage(OrchestratorServerHandler.java:665)
>         at org.apache.airavata.messaging.core.impl.ExperimentConsumer.handleDelivery(ExperimentConsumer.java:84)
>         at com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:144)
>         at com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:99)
>         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:748)
> Caused by: org.apache.airavata.orchestrator.core.exception.OrchestratorException: Error during creating process
>         at org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.createAndSaveTasks(SimpleOrchestratorImpl.java:361)
>         at org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchExperiment(OrchestratorServerHandler.java:230)
>         ... 9 common frames omitted
> Caused by: org.apache.thrift.TApplicationException: Internal error processing addTask
>         at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79)
>         at org.apache.airavata.registry.api.RegistryService$Client.recv_addTask(RegistryService.java:4212)
>         at org.apache.airavata.registry.api.RegistryService$Client.addTask(RegistryService.java:4198)
>         at org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.createAndSaveEnvSetupTask(SimpleOrchestratorImpl.java:399)
>         at org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.createAndSaveTasks(SimpleOrchestratorImpl.java:326)
>         ... 10 common frames omitted
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)