Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A9F4410808 for ; Tue, 27 Aug 2013 16:54:06 +0000 (UTC) Received: (qmail 96005 invoked by uid 500); 27 Aug 2013 16:54:06 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 95892 invoked by uid 500); 27 Aug 2013 16:54:03 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 95885 invoked by uid 99); 27 Aug 2013 16:54:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Aug 2013 16:54:01 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of thejaka.amila@gmail.com designates 209.85.214.179 as permitted sender) Received: from [209.85.214.179] (HELO mail-ob0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Aug 2013 16:53:57 +0000 Received: by mail-ob0-f179.google.com with SMTP id fb19so5063399obc.38 for ; Tue, 27 Aug 2013 09:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=bBXNdW5imkGGgFdqNCXG7eeAZSy8n+jFB0hHKFT5DZc=; b=ZeA7MwESFXFVodPqthTPjv4pizJRiSa4f8nJ5TF6NZfhTFGnXnrnE3Mf2AXSCM9Aye 9EYFhC20BSrswJ7Tnks7MmHfDy0pU74ks15os7tIERkDt18FhlTP4eTX8YshviO++1lS /4hSYS+X/mdImOAVjtC5vYB2Es8K/4vcw3SQ+J9wmbIp/TWOIVqiANtD/jzxY7GiSpYU 6ttVHdn5UuxJnbI1tmfVQX298C/nOLT6v+uqKr7cEtewHzdxQA1B+9/oX48V260VQKm7 aNBQpY4/+Z2Dr3OJgbFRB3t6k9g+Qg39zRexuAqxGC+LjoHp4qQjy7+Xgm/9nLb+aCya bLiA== MIME-Version: 1.0 X-Received: by 10.182.29.233 with SMTP id n9mr2546910obh.38.1377622415944; Tue, 27 Aug 2013 09:53:35 -0700 (PDT) Received: by 10.76.182.49 with HTTP; Tue, 27 Aug 2013 09:53:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Aug 2013 12:53:35 -0400 Message-ID: Subject: Re: Exception when trying to invoke API From: Amila Jayasekara To: dev@airavata.apache.org Content-Type: multipart/alternative; boundary=001a11c2047abcb61504e4f0b6ab X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2047abcb61504e4f0b6ab Content-Type: text/plain; charset=ISO-8859-1 Any feedback on this ? Thanks Amila On Mon, Aug 26, 2013 at 5:52 PM, Amila Jayasekara wrote: > Hi All, > > I am getting following exception when trying to invoke API. Any idea why I > am getting following exception ? > > Thanks > Amila > > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/Users/thejaka/.m2/repository/org/slf4j/slf4j-log4j12/1.7.2/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/Users/thejaka/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/Users/thejaka/.m2/repository/org/slf4j/slf4j-simple/1.6.1/slf4j-simple-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/Users/thejaka/.m2/repository/org/slf4j/slf4j-simple/1.7.2/slf4j-simple-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] > Aug 26, 2013 5:49:01 PM com.sun.jersey.api.client.ClientResponse getEntity > SEVERE: A message body reader for Java class > org.apache.airavata.rest.mappings.resourcemappings.URLList, and Java type > class org.apache.airavata.rest.mappings.resourcemappings.URLList, and MIME > media type application/json was not found > Aug 26, 2013 5:49:01 PM com.sun.jersey.api.client.ClientResponse getEntity > SEVERE: The registered message body readers compatible with the MIME media > type are: > */* -> > com.sun.jersey.core.impl.provider.entity.FormProvider > com.sun.jersey.core.impl.provider.entity.MimeMultipartProvider > com.sun.jersey.core.impl.provider.entity.StringProvider > com.sun.jersey.core.impl.provider.entity.ByteArrayProvider > com.sun.jersey.core.impl.provider.entity.FileProvider > com.sun.jersey.core.impl.provider.entity.InputStreamProvider > com.sun.jersey.core.impl.provider.entity.DataSourceProvider > com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General > com.sun.jersey.core.impl.provider.entity.ReaderProvider > com.sun.jersey.core.impl.provider.entity.DocumentProvider > > com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader > com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader > com.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader > com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General > com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General > com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General > com.sun.jersey.core.impl.provider.entity.EntityHolderReader > > > org.apache.airavata.client.api.exception.AiravataAPIInvocationException: > Error while initializing the Airavata API > at > org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:64) > at > org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:43) > at > org.apache.airavata.sample.gateway.executor.WorkflowExecutor.setupExperiment(WorkflowExecutor.java:110) > at > org.apache.airavata.sample.gateway.executor.WorkflowExecutorTest.testRunWorkflow(WorkflowExecutorTest.java:56) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) > at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) > at org.junit.runners.ParentRunner.run(ParentRunner.java:236) > at org.junit.runner.JUnitCore.run(JUnitCore.java:157) > at > com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77) > at > com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) > Caused by: > org.apache.airavata.client.api.exception.AiravataAPIInvocationException: > Error while initializing the Airavata API > at > org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:178) > at > org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:61) > ... 28 more > Caused by: com.sun.jersey.api.client.ClientHandlerException: A message > body reader for Java class > org.apache.airavata.rest.mappings.resourcemappings.URLList, and Java type > class org.apache.airavata.rest.mappings.resourcemappings.URLList, and MIME > media type application/json was not found > at > com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:561) > at > com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:517) > at > org.apache.airavata.rest.client.ConfigurationResourceClient.getWorkflowInterpreterURIs(ConfigurationResourceClient.java:467) > at > org.apache.airavata.rest.client.RegistryClient.getWorkflowInterpreterURIs(RegistryClient.java:159) > at > org.apache.airavata.client.AiravataClient.createConfig(AiravataClient.java:135) > at > org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:159) > ... 29 more > > --001a11c2047abcb61504e4f0b6ab Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Any feedback on this ?

Thanks
Amila


On Mon, Aug 26, 2013 at 5:52 PM, Amila Jayasekara &l= t;thejaka.amil= a@gmail.com> wrote:
Hi All,

= I am getting following exception when trying to invoke API. Any idea why I = am getting following exception ?

Thanks
Amila

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: F= ound binding in [jar:file:/Users/thejaka/.m2/repository/org/slf4j/slf4j-log= 4j12/1.7.2/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class= ]
SLF4J: Found binding in [jar:file:/Users/thejaka/.m2/repository/org/sl= f4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLogge= rBinder.class]
SLF4J: Found binding in [jar:file:/Users/thejaka/.= m2/repository/org/slf4j/slf4j-simple/1.6.1/slf4j-simple-1.6.1.jar!/org/slf4= j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/thejaka/.m2/repository/org/sl= f4j/slf4j-simple/1.7.2/slf4j-simple-1.7.2.jar!/org/slf4j/impl/StaticLoggerB= inder.class]
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Aug 26, 2013 5:49:01 PM com.sun.jersey.api.client.ClientResponse g= etEntity
SEVERE: A message body reader for Java class org.apache.= airavata.rest.mappings.resourcemappings.URLList, and Java type class org.ap= ache.airavata.rest.mappings.resourcemappings.URLList, and MIME media type a= pplication/json was not found
Aug 26, 2013 5:49:01 PM com.sun.jersey.api.client.ClientResponse getEn= tity
SEVERE: The registered message body readers compatible with = the MIME media type are:
*/* ->
=A0 com.sun.jersey.c= ore.impl.provider.entity.FormProvider
=A0 com.sun.jersey.core.impl.provider.entity.MimeMultipartProvider
=A0 com.sun.jersey.core.impl.provider.entity.StringProvider
=A0 com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
= =A0 com.sun.jersey.core.impl.provider.entity.FileProvider
=A0 com.sun.jersey.core.impl.provider.entity.InputStreamProvider
=
=A0 com.sun.jersey.core.impl.provider.entity.DataSourceProvider
<= div>=A0 com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Gen= eral
=A0 com.sun.jersey.core.impl.provider.entity.ReaderProvider
= =A0 com.sun.jersey.core.impl.provider.entity.DocumentProvider
=A0= com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader=
=A0 com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceR= eader
=A0 com.sun.jersey.core.impl.provider.entity.SourceProvider= $DOMSourceReader
=A0 com.sun.jersey.core.impl.provider.entity.XML= RootElementProvider$General
=A0 com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Ge= neral
=A0 com.sun.jersey.core.impl.provider.entity.XMLRootObjectP= rovider$General
=A0 com.sun.jersey.core.impl.provider.entity.Enti= tyHolderReader


org.apache.airavata.client.api.exception= .AiravataAPIInvocationException: Error while initializing the Airavata API<= /div>
at org.apache.airava= ta.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:64)
at org.apache.airavata.cl= ient.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:43)
at org.apache.airavata.sample.gatewa= y.executor.WorkflowExecutor.setupExperiment(WorkflowExecutor.java:110)
at org.apache.airavata.sa= mple.gateway.executor.WorkflowExecutorTest.testRunWorkflow(WorkflowExecutor= Test.java:56)
at sun= .reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMeth= odAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessor= Impl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.junit.runners.mode= l.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.mo= del.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.mode= l.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.stat= ements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.Bloc= kJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4Cla= ssRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.Pare= ntRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner= .java:52)
at org.junit.runners.Pare= ntRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(Parent= Runner.java:42)
at org.junit.runners.Pare= ntRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.j= ava:236)
at org.junit.runner.JUnit= Core.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JU= nit4IdeaTestRunner.java:77)
at com.intellij.rt.execut= ion.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
<= div> at com.intellij.rt.executi= on.junit.JUnitStarter.main(JUnitStarter.java:63)
at sun.reflect.NativeMeth= odAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMeth= odAccessorImpl.java:39)
at com.intellij.rt.execut= ion.application.AppMain.main(AppMain.java:120)
Caused by: org.apa= che.airavata.client.api.exception.AiravataAPIInvocationException: Error whi= le initializing the Airavata API
at org.apache.airavata.cl= ient.AiravataClient.initialize(AiravataClient.java:178)
at org.apache.airavata.client.AiravataA= PIFactory.getAPI(AiravataAPIFactory.java:61)
... 28 more
Cau= sed by: com.sun.jersey.api.client.ClientHandlerException: A message body re= ader for Java class org.apache.airavata.rest.mappings.resourcemappings.URLL= ist, and Java type class org.apache.airavata.rest.mappings.resourcemappings= .URLList, and MIME media type application/json was not found
at com.sun.jersey.api.cli= ent.ClientResponse.getEntity(ClientResponse.java:561)
at com.sun.jersey.api.client.ClientRespon= se.getEntity(ClientResponse.java:517)
at org.apache.airavata.re= st.client.ConfigurationResourceClient.getWorkflowInterpreterURIs(Configurat= ionResourceClient.java:467)
= at org.apache.airavata.rest.client.RegistryClient.getWorkflowInterp= reterURIs(RegistryClient.java:159)
at org.apache.airavata.cl= ient.AiravataClient.createConfig(AiravataClient.java:135)
at org.apache.airavata.client.Airavat= aClient.initialize(AiravataClient.java:159)
... 29 more


--001a11c2047abcb61504e4f0b6ab--