You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by Hasini Gunasinghe <ha...@gmail.com> on 2015/05/16 07:32:20 UTC
Test failure in Airavata API Server
Hi all,
I got the following test failure [1] while building the source code.
When I tried to find the issue, it seemed to me that at the initialization
of the AiravataServerHandler, it tries to obtain a connection to RabbitMQ
sever, which is not running in my machine.
Do we need to have RabbitMQ running during the build time as well?
I appreciate any insight on getting over this test failure. Please let me
know if I have missed something.
[1] [INFO] connection failed to rabbitmq: null for
airavata_rabbitmq_exchange
[ERROR] could not open channel for exchange airavata_rabbitmq_exchange
[ERROR] Failed to load the publisher from the publisher class property:
org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher
java.lang.Exception: could not open channel for exchange
airavata_rabbitmq_exchange
at
org.apache.airavata.messaging.core.impl.RabbitMQProducer.open(RabbitMQProducer.java:123)
at
org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher.<init>(RabbitMQStatusPublisher.java:56)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at
org.apache.airavata.messaging.core.PublisherFactory.createActivityPublisher(PublisherFactory.java:43)
at
org.apache.airavata.api.server.handler.AiravataServerHandler.<init>(AiravataServerHandler.java:77)
at
org.apache.airavata.api.server.handler.AiravataServerHandlerTest.setupBeforeClass(AiravataServerHandlerTest.java:53)
Thanks & Best Regards,
Hasini.
Re: Test failure in Airavata API Server
Posted by Hasini Gunasinghe <ha...@gmail.com>.
Hi Chathuri,
Thank you for the reply. Actually the above test failure occurred when
building the source code. I think it is fixed now by Supun.
Thanks,
Hasini.
On Sat, May 16, 2015 at 1:01 PM, Chathuri Wimalasena <ka...@gmail.com>
wrote:
> Hi Hasini,
>
> RabbitMQ is a needed component now. If you are trying to run airavata, you
> need to have rabbitMQ server running.
>
> Thanks..
> Chathuri
>
> On Sat, May 16, 2015 at 2:59 AM, Hasini Gunasinghe <ha...@gmail.com>
> wrote:
>
>> Hi Supun,
>>
>> Thank you for the quick fix. Yes, It has fixed the test failure during
>> build time.
>>
>> Thanks & Best Regards,
>> Hasini.
>>
>> On Sat, May 16, 2015 at 2:23 AM, Supun Nakandala <
>> supun.nakandala@gmail.com> wrote:
>>
>>> Hi Hasini,
>>>
>>> Recently a test class was added (AiravataServerHandlerTest) which is
>>> causing this issue. But you don't need to run rabbitmq unless you are using
>>> the XBaya gui. So I have added a quick fix to code base. Can you try
>>> building after fetching the new changes.
>>>
>>> On Sat, May 16, 2015 at 11:02 AM, Hasini Gunasinghe <ha...@gmail.com>
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I got the following test failure [1] while building the source code.
>>>> When I tried to find the issue, it seemed to me that at the
>>>> initialization of the AiravataServerHandler, it tries to obtain a
>>>> connection to RabbitMQ sever, which is not running in my machine.
>>>> Do we need to have RabbitMQ running during the build time as well?
>>>>
>>>> I appreciate any insight on getting over this test failure. Please let
>>>> me know if I have missed something.
>>>>
>>>> [1] [INFO] connection failed to rabbitmq: null for
>>>> airavata_rabbitmq_exchange
>>>> [ERROR] could not open channel for exchange airavata_rabbitmq_exchange
>>>> [ERROR] Failed to load the publisher from the publisher class property:
>>>> org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher
>>>> java.lang.Exception: could not open channel for exchange
>>>> airavata_rabbitmq_exchange
>>>> at
>>>> org.apache.airavata.messaging.core.impl.RabbitMQProducer.open(RabbitMQProducer.java:123)
>>>> at
>>>> org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher.<init>(RabbitMQStatusPublisher.java:56)
>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>>> Method)
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>>>> at java.lang.Class.newInstance(Class.java:442)
>>>> at
>>>> org.apache.airavata.messaging.core.PublisherFactory.createActivityPublisher(PublisherFactory.java:43)
>>>> at
>>>> org.apache.airavata.api.server.handler.AiravataServerHandler.<init>(AiravataServerHandler.java:77)
>>>> at
>>>> org.apache.airavata.api.server.handler.AiravataServerHandlerTest.setupBeforeClass(AiravataServerHandlerTest.java:53)
>>>>
>>>>
>>>> Thanks & Best Regards,
>>>> Hasini.
>>>>
>>>
>>>
>>>
>>> --
>>> Thank you
>>> Supun Nakandala
>>> Dept. Computer Science and Engineering
>>> University of Moratuwa
>>>
>>
>>
>
Re: Test failure in Airavata API Server
Posted by Chathuri Wimalasena <ka...@gmail.com>.
Hi Hasini,
RabbitMQ is a needed component now. If you are trying to run airavata, you
need to have rabbitMQ server running.
Thanks..
Chathuri
On Sat, May 16, 2015 at 2:59 AM, Hasini Gunasinghe <ha...@gmail.com>
wrote:
> Hi Supun,
>
> Thank you for the quick fix. Yes, It has fixed the test failure during
> build time.
>
> Thanks & Best Regards,
> Hasini.
>
> On Sat, May 16, 2015 at 2:23 AM, Supun Nakandala <
> supun.nakandala@gmail.com> wrote:
>
>> Hi Hasini,
>>
>> Recently a test class was added (AiravataServerHandlerTest) which is
>> causing this issue. But you don't need to run rabbitmq unless you are using
>> the XBaya gui. So I have added a quick fix to code base. Can you try
>> building after fetching the new changes.
>>
>> On Sat, May 16, 2015 at 11:02 AM, Hasini Gunasinghe <ha...@gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> I got the following test failure [1] while building the source code.
>>> When I tried to find the issue, it seemed to me that at the
>>> initialization of the AiravataServerHandler, it tries to obtain a
>>> connection to RabbitMQ sever, which is not running in my machine.
>>> Do we need to have RabbitMQ running during the build time as well?
>>>
>>> I appreciate any insight on getting over this test failure. Please let
>>> me know if I have missed something.
>>>
>>> [1] [INFO] connection failed to rabbitmq: null for
>>> airavata_rabbitmq_exchange
>>> [ERROR] could not open channel for exchange airavata_rabbitmq_exchange
>>> [ERROR] Failed to load the publisher from the publisher class property:
>>> org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher
>>> java.lang.Exception: could not open channel for exchange
>>> airavata_rabbitmq_exchange
>>> at
>>> org.apache.airavata.messaging.core.impl.RabbitMQProducer.open(RabbitMQProducer.java:123)
>>> at
>>> org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher.<init>(RabbitMQStatusPublisher.java:56)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>>> at java.lang.Class.newInstance(Class.java:442)
>>> at
>>> org.apache.airavata.messaging.core.PublisherFactory.createActivityPublisher(PublisherFactory.java:43)
>>> at
>>> org.apache.airavata.api.server.handler.AiravataServerHandler.<init>(AiravataServerHandler.java:77)
>>> at
>>> org.apache.airavata.api.server.handler.AiravataServerHandlerTest.setupBeforeClass(AiravataServerHandlerTest.java:53)
>>>
>>>
>>> Thanks & Best Regards,
>>> Hasini.
>>>
>>
>>
>>
>> --
>> Thank you
>> Supun Nakandala
>> Dept. Computer Science and Engineering
>> University of Moratuwa
>>
>
>
Re: Test failure in Airavata API Server
Posted by Hasini Gunasinghe <ha...@gmail.com>.
Hi Supun,
Thank you for the quick fix. Yes, It has fixed the test failure during
build time.
Thanks & Best Regards,
Hasini.
On Sat, May 16, 2015 at 2:23 AM, Supun Nakandala <su...@gmail.com>
wrote:
> Hi Hasini,
>
> Recently a test class was added (AiravataServerHandlerTest) which is
> causing this issue. But you don't need to run rabbitmq unless you are using
> the XBaya gui. So I have added a quick fix to code base. Can you try
> building after fetching the new changes.
>
> On Sat, May 16, 2015 at 11:02 AM, Hasini Gunasinghe <ha...@gmail.com>
> wrote:
>
>> Hi all,
>>
>> I got the following test failure [1] while building the source code.
>> When I tried to find the issue, it seemed to me that at the
>> initialization of the AiravataServerHandler, it tries to obtain a
>> connection to RabbitMQ sever, which is not running in my machine.
>> Do we need to have RabbitMQ running during the build time as well?
>>
>> I appreciate any insight on getting over this test failure. Please let me
>> know if I have missed something.
>>
>> [1] [INFO] connection failed to rabbitmq: null for
>> airavata_rabbitmq_exchange
>> [ERROR] could not open channel for exchange airavata_rabbitmq_exchange
>> [ERROR] Failed to load the publisher from the publisher class property:
>> org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher
>> java.lang.Exception: could not open channel for exchange
>> airavata_rabbitmq_exchange
>> at
>> org.apache.airavata.messaging.core.impl.RabbitMQProducer.open(RabbitMQProducer.java:123)
>> at
>> org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher.<init>(RabbitMQStatusPublisher.java:56)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>> at java.lang.Class.newInstance(Class.java:442)
>> at
>> org.apache.airavata.messaging.core.PublisherFactory.createActivityPublisher(PublisherFactory.java:43)
>> at
>> org.apache.airavata.api.server.handler.AiravataServerHandler.<init>(AiravataServerHandler.java:77)
>> at
>> org.apache.airavata.api.server.handler.AiravataServerHandlerTest.setupBeforeClass(AiravataServerHandlerTest.java:53)
>>
>>
>> Thanks & Best Regards,
>> Hasini.
>>
>
>
>
> --
> Thank you
> Supun Nakandala
> Dept. Computer Science and Engineering
> University of Moratuwa
>
Re: Test failure in Airavata API Server
Posted by Supun Nakandala <su...@gmail.com>.
Hi Hasini,
Recently a test class was added (AiravataServerHandlerTest) which is
causing this issue. But you don't need to run rabbitmq unless you are using
the XBaya gui. So I have added a quick fix to code base. Can you try
building after fetching the new changes.
On Sat, May 16, 2015 at 11:02 AM, Hasini Gunasinghe <ha...@gmail.com>
wrote:
> Hi all,
>
> I got the following test failure [1] while building the source code.
> When I tried to find the issue, it seemed to me that at the initialization
> of the AiravataServerHandler, it tries to obtain a connection to RabbitMQ
> sever, which is not running in my machine.
> Do we need to have RabbitMQ running during the build time as well?
>
> I appreciate any insight on getting over this test failure. Please let me
> know if I have missed something.
>
> [1] [INFO] connection failed to rabbitmq: null for
> airavata_rabbitmq_exchange
> [ERROR] could not open channel for exchange airavata_rabbitmq_exchange
> [ERROR] Failed to load the publisher from the publisher class property:
> org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher
> java.lang.Exception: could not open channel for exchange
> airavata_rabbitmq_exchange
> at
> org.apache.airavata.messaging.core.impl.RabbitMQProducer.open(RabbitMQProducer.java:123)
> at
> org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher.<init>(RabbitMQStatusPublisher.java:56)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at java.lang.Class.newInstance(Class.java:442)
> at
> org.apache.airavata.messaging.core.PublisherFactory.createActivityPublisher(PublisherFactory.java:43)
> at
> org.apache.airavata.api.server.handler.AiravataServerHandler.<init>(AiravataServerHandler.java:77)
> at
> org.apache.airavata.api.server.handler.AiravataServerHandlerTest.setupBeforeClass(AiravataServerHandlerTest.java:53)
>
>
> Thanks & Best Regards,
> Hasini.
>
--
Thank you
Supun Nakandala
Dept. Computer Science and Engineering
University of Moratuwa