Raminderjeet Singh created AIRAVATA-1073:
--------------------------------------------
Summary: Unable to add error details
Key: AIRAVATA-1073
URL: https://issues.apache.org/jira/browse/AIRAVATA-1073
Project: Airavata
Issue Type: Bug
Components: GFac, Registry API
Reporter: Raminderjeet Singh
GFacUtils.saveErrorDetails is not able to save the job error details by passing
the taskid. Registry API is failing while checking for experiment exist.
java.lang.Exception: javax.persistence.NoResultException: Query "SELECT p FROM
Experiment p WHERE p.expId =:param0" selected no result, but expected unique
result.
at
org.apache.airavata.persistance.registry.jpa.impl.ExperimentRegistry.addErrorDetails(ExperimentRegistry.java:1284)
at
org.apache.airavata.persistance.registry.jpa.impl.RegistryImpl.add(RegistryImpl.java:142)
... 15 more
Caused by: javax.persistence.NoResultException: Query "SELECT p FROM Experiment
p WHERE p.expId =:param0" selected no result, but expected unique result.
at
org.apache.openjpa.persistence.QueryImpl.getSingleResult(QueryImpl.java:332)
at
org.apache.airavata.persistance.registry.jpa.resources.GatewayResource.get(GatewayResource.java:246)
at
org.apache.airavata.persistance.registry.jpa.resources.GatewayResource.getExperiment(GatewayResource.java:745)
at
org.apache.airavata.persistance.registry.jpa.impl.ExperimentRegistry.addErrorDetails(ExperimentRegistry.java:1235)
--
This message was sent by Atlassian JIRA
(v6.2#6252)