airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suresh Marru <sma...@apache.org>
Subject Re: Exception when starting server
Date Sat, 01 Dec 2012 17:05:36 GMT
Hi Amila,

Currently the port and ip address are picked up from airavata-server.properties if they cannot
be picked up by the service. Will the tomcat installation have the properties file?

Cheers,
Suresh

On Dec 1, 2012, at 10:28 AM, Amila Jayasekara <thejaka.amila@gmail.com> wrote:

> 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
> <thejaka.amila@gmail.com> 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.<init>(URL.java:601)
>>        at java.net.URL.<init>(URL.java:464)
>>        at java.net.URL.<init>(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.<init>(URL.java:601)
>>        at java.net.URL.<init>(URL.java:464)
>>        at java.net.URL.<init>(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.<init>(URL.java:601)
>>        at java.net.URL.<init>(URL.java:464)
>>        at java.net.URL.<init>(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.<init>(URL.java:601)
>>        at java.net.URL.<init>(URL.java:464)
>>        at java.net.URL.<init>(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.<init>(URL.java:601)
>>        at java.net.URL.<init>(URL.java:464)
>>        at java.net.URL.<init>(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.<init>(URL.java:601)
>>        at java.net.URL.<init>(URL.java:464)
>>        at java.net.URL.<init>(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.<init>(URL.java:601)
>>        at java.net.URL.<init>(URL.java:464)
>>        at java.net.URL.<init>(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.<init>(URL.java:601)
>>        at java.net.URL.<init>(URL.java:464)
>>        at java.net.URL.<init>(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.<init>(URL.java:601)
>>        at java.net.URL.<init>(URL.java:464)
>>        at java.net.URL.<init>(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.<init>(URL.java:601)
>>        at java.net.URL.<init>(URL.java:464)
>>        at java.net.URL.<init>(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


Mime
View raw message