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 3B84917CE6 for ; Mon, 27 Apr 2015 17:50:48 +0000 (UTC) Received: (qmail 57861 invoked by uid 500); 27 Apr 2015 17:50:48 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 57809 invoked by uid 500); 27 Apr 2015 17:50:48 -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 57799 invoked by uid 99); 27 Apr 2015 17:50:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2015 17:50:47 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: message received from 54.76.25.247 which is an MX secondary for dev@airavata.apache.org) Received: from [54.76.25.247] (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2015 17:50:22 +0000 Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 6BC0321459 for ; Mon, 27 Apr 2015 17:50:20 +0000 (UTC) Received: by oiko83 with SMTP id o83so95820773oik.1 for ; Mon, 27 Apr 2015 10:50:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Z9rpqMXX+ncCSltJh856QDCwmrAkuDynhxZ4Dn2mNXQ=; b=lEO2a+OEVhKO4AhN83Sa5amYQAdHrCSp4Fyv5GYuS6aYtzbaAiKDvFCdo5ToVCGk+p yWTDLID+T4LMSGAE/zsFDDALtfSGaNrM4JETRQhfS3PJUNNJqHt5ktxEbBZ7rxedDKf1 c+90pgz6RiNF/hM9pxZT8jUGRXoz8iFyrga6maznXUDJlxXPIDUQWMx7oP1WstspRQE/ NMZnN5DarFOkuB/wS7hJOx/uCXcVoWQ4w8Timj53+oEWjtR7eE0NXn+Aw7kiuzdDmDKz Pt2JbGpg73zOlr4m969M8gorbohhxtYP8NMCmrEBn3LH5lf41Bz5dj9X6fFgsKBqBBye XUuw== X-Received: by 10.202.77.11 with SMTP id a11mr10334262oib.101.1430157019261; Mon, 27 Apr 2015 10:50:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.55.130 with HTTP; Mon, 27 Apr 2015 10:49:58 -0700 (PDT) In-Reply-To: References: From: Shameera Rathnayaka Date: Mon, 27 Apr 2015 13:49:58 -0400 Message-ID: Subject: Re: Error while launching task To: dev Content-Type: multipart/alternative; boundary=001a1134f14c1b30000514b861b0 X-Virus-Checked: Checked by ClamAV on apache.org --001a1134f14c1b30000514b861b0 Content-Type: text/plain; charset=UTF-8 This comes when there is no any compute resource configure with the application which is you try to run here.To fixed this you should register application deployment with any available compute resource using airavata client. ex: client.registerApplicationDeployment( , ); We should handle this exception in airavata and show appropriet Airavat exception instead of ArrayIndexOutBoundsException. Create a JIRA for this issue and patches are always welcome. Thanks. Shameera. On Sat, Apr 25, 2015 at 7:06 AM, priyanshu patra wrote: > Hi everyone, > > I was trying to launch a workflow using the Subtract application following > the steps mentioned in > https://cwiki.apache.org/confluence/display/AIRAVATA/XBAYA+Quick-Start+Tutorial .However, > I get exceptions from both server and Xbaya while trying to run the > workflow. What could be the cause for getting an *ArrayIndexOutOfBoundsException > *? > > Server Side Exception > -------------------------------- > > [INFO] Publishing status to rabbitmq... > [INFO] Id:Test4_438f2b48-3910-4fd6-b278-2b83272c1519 : Created new > experiment with experiment name Test4 > [INFO] Validation of > org.apache.airavata.orchestrator.core.validator.impl.SimpleAppDataValidator > is SUCCESSFUL > [INFO] Validation of > org.apache.airavata.orchestrator.core.validator.impl.ExperimentStatusValidator > is SUCCESSFUL > [WARN] Error closing connection. > [INFO] Couldn't identify the gateway Id using the credential token, Use > default gateway Id > [INFO] A custom workflow parser is not defined, Use default Airavata > workflow parser > [INFO] Publishing to process queue ... > [ERROR] Id:Subtract_467db881-eb7b-47d3-ad08-ea82176e7c1d : Error while > launching task > java.lang.ArrayIndexOutOfBoundsException: 0 > at java.util.Arrays$ArrayList.get(Arrays.java:3841) > at > org.apache.airavata.gfac.core.scheduler.impl.SimpleHostScheduler.schedule(SimpleHostScheduler.java:31) > at > org.apache.airavata.orchestrator.server.OrchestratorServerHandler.getAppDeployment(OrchestratorServerHandler.java:520) > at > org.apache.airavata.orchestrator.server.OrchestratorServerHandler.getAppDeployment(OrchestratorServerHandler.java:494) > at > org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchTask(OrchestratorServerHandler.java:461) > at > org.apache.airavata.orchestrator.server.OrchestratorServerHandler$ProcessConsumer.onMessage(OrchestratorServerHandler.java:810) > at > org.apache.airavata.messaging.core.impl.RabbitMQProcessConsumer$2.handleDelivery(RabbitMQProcessConsumer.java:134) > at > com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:140) > at > com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:76) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > [ERROR] Error while launching task : > Subtract_467db881-eb7b-47d3-ad08-ea82176e7c1d > > Thanks, > Priyanshu > -- Best Regards, Shameera Rathnayaka. email: shameera AT apache.org , shameerainfo AT gmail.com Blog : http://shameerarathnayaka.blogspot.com/ --001a1134f14c1b30000514b861b0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thi= s comes when there is no any compute resource configure with the applicatio= n which is you try to run here.To fixed this you should register applicatio= n deployment with any available compute resource using airavata client. ex:= client.registerApplicationDeployment(<gatewayId> , <ApplicationDe= ployment>);
=
We should = handle this exception in airavata and show appropriet Airavat exception ins= tead of ArrayIndexOutBoundsException. Create a JIRA for this issue and =C2= =A0patches are always welcome.=C2=A0

Thanks.
Shameera.

On Sat, Apr 25, 2015 at 7:06 AM, priyanshu patra <pri.patra@gma= il.com> wrote:
Hi everyone,

I was trying to launch a workflow usin= g the Subtract application following the steps mentioned in=C2=A0https://cwiki.apache.org/confluence/display/AIRAVA= TA/XBAYA+Quick-Start+Tutorial=C2=A0.However, I get exceptions from both= server and Xbaya while trying to run the workflow. What could be the cause= for getting an ArrayIndexOutOfBoundsException ?

Server Side Exception
------------------------------= --

[INFO] Publishing = status to rabbitmq...
[INFO] Id:Te= st4_438f2b48-3910-4fd6-b278-2b83272c1519 : Created new experiment with expe= riment name Test4
[INFO] Validatio= n of org.apache.airavata.orchestrator.core.validator.impl.SimpleAppDataVali= dator is SUCCESSFUL
[INFO] Validat= ion of org.apache.airavata.orchestrator.core.validator.impl.ExperimentStatu= sValidator is SUCCESSFUL
[WARN] Er= ror closing connection.
[INFO] Cou= ldn't identify the gateway Id using the credential token, Use default g= ateway Id
[INFO] A custom workflow= parser is not defined, Use default Airavata workflow parser
[INFO] Publishing to process queue ...
[ERROR] Id:Subtract_467db881-eb7b-47d3-ad08= -ea82176e7c1d : Error while launching task=C2=A0
java.lang.ArrayIndexOutOfBoundsException: 0
at ja= va.util.Arrays$ArrayList.get(Arrays.java:3841)
at org.apache.air= avata.gfac.core.scheduler.impl.SimpleHostScheduler.schedule(SimpleHostSched= uler.java:31)
at org.apache.airavata.orchestrator.server.Orchest= ratorServerHandler.getAppDeployment(OrchestratorServerHandler.java:520)
= at org.apache.airavata.orchestrator.server.OrchestratorServerHandle= r.getAppDeployment(OrchestratorServerHandler.java:494)
at org.ap= ache.airavata.orchestrator.server.OrchestratorServerHandler.launchTask(Orch= estratorServerHandler.java:461)
at org.apache.airavata.orchestra= tor.server.OrchestratorServerHandler$ProcessConsumer.onMessage(Orchestrator= ServerHandler.java:810)
at org.apache.airavata.messaging.core.im= pl.RabbitMQProcessConsumer$2.handleDelivery(RabbitMQProcessConsumer.java:13= 4)
at com.rabbitmq.client.impl.ConsumerDispatcher$5.run(Consumer= Dispatcher.java:140)
at com.rabbitmq.client.impl.ConsumerWorkS= ervice$WorkPoolRunnable.run(ConsumerWorkService.java:76)
<= font color=3D"#cc0000"> at java= .util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)=
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo= lExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[ERROR] Error while launching task : = Subtract_467db881-eb7b-47d3-ad08-ea82176e7c1d

Thanks,
Priyanshu



--
Best Regards,
Shameera Rathnayaka.

email: shameera AT apache.org , shameerainfo AT gmail.com
Blog : http://shameerarathnayaka.blogspot.com/
<= /div>
--001a1134f14c1b30000514b861b0--