Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-750

airavataAPI.getProvenanceManager().getExperimentDataList()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.7
    • Airavata Client
    • None

    Description

      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

      Attachments

        Activity

          People

            chathuri Chathuri Wimalasena
            samindaw Saminda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: