airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saminda Wijeratne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-750) airavataAPI.getProvenanceManager().getExperimentDataList()
Date Tue, 29 Jan 2013 19:01:13 GMT

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

Saminda Wijeratne commented on AIRAVATA-750:
--------------------------------------------

A workaround is to use the following 2 commands,

List<String> experimentIdList = airavataAPI.getProvenanceManager().getExperimentIdList();
for (String id : experimentIdList) {
        	ExperimentData experiment = airavataAPI.getProvenanceManager().getExperimentData(id);
        	....
        	....
}
                
> airavataAPI.getProvenanceManager().getExperimentDataList()
> ----------------------------------------------------------
>
>                 Key: AIRAVATA-750
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-750
>             Project: Airavata
>          Issue Type: Bug
>          Components: Airavata Client
>    Affects Versions: 0.6
>            Reporter: Saminda Wijeratne
>            Assignee: Chathuri Wimalasena
>             Fix For: 0.7
>
>
> From the airavata client distribution add the libraries & the properties to the class
path of a new project & when Airavata API is used to retrieve the experiment data using
the following function
> airavataAPI.getProvenanceManager().getExperimentDataList() following error is thrown,
> Exception in thread "main" org.apache.airavata.client.api.AiravataAPIInvocationException:
Error invoking API
> 	at org.apache.airavata.client.impl.ProvenanceManagerImpl.getWorkflowExperimentDataList(ProvenanceManagerImpl.java:258)
> 	at org.apache.airavata.client.impl.ProvenanceManagerImpl.getWorkflowExperimentDataList(ProvenanceManagerImpl.java:249)
> 	at org.apache.airavata.client.impl.ProvenanceManagerImpl.getExperimentDataList(ProvenanceManagerImpl.java:461)
> 	at Main.main(Main.java:33)
> Caused by: com.sun.jersey.api.client.ClientHandlerException: org.codehaus.jackson.map.JsonMappingException:
Can not construct instance of org.apache.airavata.registry.api.workflow.ExperimentData, problem:
abstract types can only be instantiated with additional type information
>  at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@4883d37a; line:
1, column: 24] (through reference chain: org.apache.airavata.rest.mappings.resourcemappings.ExperimentDataList["experimentDataList"])
> 	at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:575)
> 	at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:517)
> 	at org.apache.airavata.rest.client.ProvenanceResourceClient.getExperimentByUser(ProvenanceResourceClient.java:1155)
> 	at org.apache.airavata.rest.client.RegistryClient.getExperimentByUser(RegistryClient.java:636)
> 	at org.apache.airavata.client.impl.ProvenanceManagerImpl.getWorkflowExperimentDataList(ProvenanceManagerImpl.java:256)
> 	... 3 more
> Caused by: org.codehaus.jackson.map.JsonMappingException: Can not construct instance
of org.apache.airavata.registry.api.workflow.ExperimentData, problem: abstract types can only
be instantiated with additional type information
>  at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@4883d37a; line:
1, column: 24] (through reference chain: org.apache.airavata.rest.mappings.resourcemappings.ExperimentDataList["experimentDataList"])
> 	at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163)
> 	at org.codehaus.jackson.map.deser.StdDeserializationContext.instantiationException(StdDeserializationContext.java:233)
> 	at org.codehaus.jackson.map.deser.AbstractDeserializer.deserialize(AbstractDeserializer.java:97)
> 	at org.codehaus.jackson.map.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:217)
> 	at org.codehaus.jackson.map.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:194)
> 	at org.codehaus.jackson.map.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:30)
> 	at org.codehaus.jackson.map.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:299)
> 	at org.codehaus.jackson.map.deser.SettableBeanProperty$MethodProperty.deserializeAndSet(SettableBeanProperty.java:414)
> 	at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:697)
> 	at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
> 	at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2695)
> 	at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1308)
> 	at org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(JacksonJsonProvider.java:419)
> 	at com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.readFrom(JacksonProviderProxy.java:139)
> 	at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:565)
> 	... 7 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message