airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raminderjeet Singh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-1142) getAllExperimentsInProject throws exeption instead of null result
Date Tue, 15 Apr 2014 19:54:18 GMT

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

Raminderjeet Singh commented on AIRAVATA-1142:
----------------------------------------------

This is the exception from the server. 
Caused by: java.lang.Exception: javax.persistence.NoResultException: Query "SELECT p FROM
Project p WHERE p.project_name =:param0" selected no result, but expected unique result.
	at org.apache.airavata.persistance.registry.jpa.impl.ExperimentRegistry.getExperimentList(ExperimentRegistry.java:1622)
	at org.apache.airavata.persistance.registry.jpa.impl.RegistryImpl.get(RegistryImpl.java:366)
	... 9 more
Caused by: javax.persistence.NoResultException: Query "SELECT p FROM Project p WHERE p.project_name
=: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.WorkerResource.get(WorkerResource.java:149)
	at org.apache.airavata.persistance.registry.jpa.resources.WorkerResource.getProject(WorkerResource.java:357)
	at org.apache.airavata.persistance.registry.jpa.impl.ExperimentRegistry.getExperimentList(ExperimentRegistry.java:1603)
	... 10 more

> getAllExperimentsInProject throws exeption instead of null result
> -----------------------------------------------------------------
>
>                 Key: AIRAVATA-1142
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-1142
>             Project: Airavata
>          Issue Type: Bug
>          Components: Airavata Client
>    Affects Versions: 0.12
>         Environment: PHP
>            Reporter: David Reagan
>
> If you ask for a project that doesn't exist, an AiravataSystemException is thrown instead
of returning an empty array.
> Fatal error: Uncaught exception 'Airavata\API\Error\AiravataSystemException' in C:\wamp\www\Airavata-PHP-Client-Samples\lib\Airavata\API\Airavata.php
on line 2280



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message