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 A0247D930 for ; Sat, 1 Dec 2012 15:28:46 +0000 (UTC) Received: (qmail 96776 invoked by uid 500); 1 Dec 2012 15:28:46 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 96612 invoked by uid 500); 1 Dec 2012 15:28:42 -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 96559 invoked by uid 99); 1 Dec 2012 15:28:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 15:28:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=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 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-wg0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 15:28:33 +0000 Received: by mail-wg0-f47.google.com with SMTP id dq11so618800wgb.26 for ; Sat, 01 Dec 2012 07:28:12 -0800 (PST) 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=VlJDkXEpqRVMJyZKCDvniQIybaVPSVF7Fdt7wN+LLlY=; b=iiZeIQHAreOyaPYbPxpn9ztDl5AwPpC+NOvovCXfx41L6S6zR62hc9+Zu1gtVyTs/m ff33GDiky1CfrOnhyTLkdeeJt6T1pYF+OhZH9rIXvoxaVFOl1ALL7/HvzrgVz1dyTpZS Aua2q+X4s0fEImOJryLkBXD6RAenrdUiM+qpeRa/hpclvjLx/DGf6P2TxVoV1tAriBoC EhoOSXhKAQ4USU8214i2F8JfY3WIJ/0hcCTY3VulhB1UEcRzMp17eUYADe21La2k9LGa AL9BH73n7oG5Xbl6EZ98vq6xLu2SfkcgHLXKeWfnghm/j4xvXqefUwAvvxnc1aQZoEWd wQeg== MIME-Version: 1.0 Received: by 10.180.14.2 with SMTP id l2mr2471979wic.2.1354375692026; Sat, 01 Dec 2012 07:28:12 -0800 (PST) Received: by 10.194.59.40 with HTTP; Sat, 1 Dec 2012 07:28:11 -0800 (PST) In-Reply-To: References: Date: Sat, 1 Dec 2012 10:28:11 -0500 Message-ID: Subject: Re: Exception when starting server From: Amila Jayasekara To: dev@airavata.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi All, Further debugging, sought out that following code is the culprit. In ServiceUtils.generateServiceURLFromConfigurationContext(..), we have following piece of code. try { localAddress = ServerSettings.getSetting(IP); port = (String) ServerSettings.getSetting(PORT); } ... ... if (port == null) { if (transportInDescription != null && transportInDescription.getParameter("port") != null) { port = (String) transportInDescription .getParameter("port").getValue(); } } Here ServerSettings.getSetting(PORT) returns null. Thus transportInDescription is also null. Can all those variables be null ? If not from where those variables are read ? (What is configuration file and where should it reside within tomcat installation ?) Thus we should throw a proper exception if both cannot be null. If both those can be null what shall we do after checking transportInDescription is null ? Thanks Amila On Fri, Nov 30, 2012 at 8:50 PM, Amila Jayasekara wrote: > Hi All, > > I am getting following exception when starting server in tomcat. Seems > a port number is missing when retrieving URL's from registry. Not sure > how to fix this. Appreciate your feedback. The am working on latest > update of trunk (revision 1415900). > > Thanks > Amila > > [1] > > [INFO] Connection Pool Shutting down > [INFO] Fill up thread is interrupted to close > [ERROR] For input string: "null" > java.net.MalformedURLException: For input string: "null" > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.airavata.client.AiravataClient.updateClientConfiguration(AiravataClient.java:256) > at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:237) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:56) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:46) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:42) > at org.apache.airavata.services.gfac.axis2.GFacService$1.run(GFacService.java:136) > [INFO] Clean up thread is interrupted to close > [INFO] All connection is closed > [INFO] Connection Pool Shutdown > [INFO] broker shutting down > [INFO] broker shut down > [ERROR] Error invoking API > org.apache.airavata.client.api.AiravataAPIInvocationException: Error > invoking API > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:59) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:46) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:42) > at org.apache.airavata.services.gfac.axis2.GFacService$1.run(GFacService.java:136) > Caused by: java.net.MalformedURLException: For input string: "null" > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.airavata.client.AiravataClient.updateClientConfiguration(AiravataClient.java:256) > at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:237) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:56) > ... 3 more > [ERROR] For input string: "null" > java.net.MalformedURLException: For input string: "null" > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.airavata.client.AiravataClient.updateClientConfiguration(AiravataClient.java:256) > at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:237) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:56) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:46) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:42) > at org.apache.airavata.wsmg.msgbox.MsgBoxServiceLifeCycle$1.run(MsgBoxServiceLifeCycle.java:116) > [ERROR] Error invoking API > org.apache.airavata.client.api.AiravataAPIInvocationException: Error > invoking API > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:59) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:46) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:42) > at org.apache.airavata.wsmg.msgbox.MsgBoxServiceLifeCycle$1.run(MsgBoxServiceLifeCycle.java:116) > Caused by: java.net.MalformedURLException: For input string: "null" > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.airavata.client.AiravataClient.updateClientConfiguration(AiravataClient.java:256) > at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:237) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:56) > ... 3 more > [ERROR] For input string: "null" > java.net.MalformedURLException: For input string: "null" > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.airavata.client.AiravataClient.updateClientConfiguration(AiravataClient.java:256) > at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:237) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:56) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:46) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:42) > at org.apache.airavata.wsmg.broker.BrokerServiceLifeCycle$1.run(BrokerServiceLifeCycle.java:155) > [ERROR] Error invoking API > org.apache.airavata.client.api.AiravataAPIInvocationException: Error > invoking API > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:59) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:46) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:42) > at org.apache.airavata.wsmg.broker.BrokerServiceLifeCycle$1.run(BrokerServiceLifeCycle.java:155) > Caused by: java.net.MalformedURLException: For input string: "null" > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.airavata.client.AiravataClient.updateClientConfiguration(AiravataClient.java:256) > at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:237) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:56) > ... 3 more > [ERROR] For input string: "null" > java.net.MalformedURLException: For input string: "null" > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.airavata.client.AiravataClient.updateClientConfiguration(AiravataClient.java:256) > at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:237) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:56) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:46) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:42) > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.getAiravataAPI(WorkflowInterpretorSkeleton.java:129) > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.shutDown(WorkflowInterpretorSkeleton.java:428) > at org.apache.axis2.engine.ListenerManager.stop(ListenerManager.java:205) > at org.apache.axis2.engine.ListenerManager$ListenerManagerShutdownThread.run(ListenerManager.java:288) > [ERROR] Unable to create Airavata API > org.apache.airavata.client.api.AiravataAPIInvocationException: Error > invoking API > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:59) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:46) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:42) > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.getAiravataAPI(WorkflowInterpretorSkeleton.java:129) > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.shutDown(WorkflowInterpretorSkeleton.java:428) > at org.apache.axis2.engine.ListenerManager.stop(ListenerManager.java:205) > at org.apache.axis2.engine.ListenerManager$ListenerManagerShutdownThread.run(ListenerManager.java:288) > Caused by: java.net.MalformedURLException: For input string: "null" > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.airavata.client.AiravataClient.updateClientConfiguration(AiravataClient.java:256) > at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:237) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:56) > ... 6 more > [WARN] Msgbox cleanup thread is interrupted to close > [ERROR] For input string: "null" > java.net.MalformedURLException: For input string: "null" > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.airavata.client.AiravataClient.updateClientConfiguration(AiravataClient.java:256) > at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:237) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:56) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:46) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:42) > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.getAiravataAPI(WorkflowInterpretorSkeleton.java:129) > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.access$200(WorkflowInterpretorSkeleton.java:85) > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton$1.run(WorkflowInterpretorSkeleton.java:164) > [ERROR] Unable to create Airavata API > org.apache.airavata.client.api.AiravataAPIInvocationException: Error > invoking API > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:59) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:46) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:42) > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.getAiravataAPI(WorkflowInterpretorSkeleton.java:129) > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton.access$200(WorkflowInterpretorSkeleton.java:85) > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton$1.run(WorkflowInterpretorSkeleton.java:164) > Caused by: java.net.MalformedURLException: For input string: "null" > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.airavata.client.AiravataClient.updateClientConfiguration(AiravataClient.java:256) > at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:237) > at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:56) > ... 5 more > Exception in thread "Thread-18" java.lang.NullPointerException > at org.apache.airavata.xbaya.interpretor.WorkflowInterpretorSkeleton$1.run(WorkflowInterpretorSkeleton.java:165) > Nov 30, 2012 8:18:57 PM org.apache.catalina.core.StandardService stop > INFO: Stopping service Catalina