You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Ashan Dhananjaya <dh...@gmail.com> on 2015/05/05 15:41:13 UTC

Stratos Mock IaaS build Failure

Hi All,

I have started to build the stratos Mock with a all new .m2 repository and
works with the latest pull. I got this exception while building the
integration test.

Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 32.746 sec
<<< FAILURE!
startServer(org.apache.stratos.integration.tests.SampleApplicationsTest)
 Time elapsed: 32.669 sec  <<< FAILURE!
org.testng.internal.thread.ThreadExecutionException:
org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
java.lang.AssertionError: Login failed!
at
org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
at
org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
at
org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
at org.testng.TestNG.run(TestNG.java:999)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
at
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
java.lang.AssertionError: Login failed!
at
org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
at
org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.AssertionError: Login failed!
at
org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
at
org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
at
org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
at
org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
at
org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
at
org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
at
org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at
org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
... 6 more
Caused by: org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
java.lang.AssertionError: Login failed!
at
org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
at
org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.AssertionError: Login failed!
at
org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
at
org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
at
org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
at
org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
at
org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
at
org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
at
org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at
org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
... 6 more


Any help really appreciated.


Thank You!
Best Regards,
Ashan

Re: Stratos Mock IaaS build Failure

Posted by Vishanth Balasubramaniam <vi...@wso2.com>.
Hi,

It says failed to clean the project [1]. Try to execute the clean with
sudo.
Are you running any wso2 product when building the stratos?

[1] - [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on
project stratos-integration: Failed to clean project: Failed to delete
/home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration/target/carbontmp1430921215955/apache-stratos-4.1.0-SNAPSHOT/repository
-> [Help 1]

Regards,
Vishanth

On Thu, May 7, 2015 at 2:16 PM, Chamila De Alwis <ch...@wso2.com> wrote:

> Hi Ashan,
>
> Lahiru had earlier suggested use a fresh VM instance to do the build. Were
> you able to do that?
>
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Thu, May 7, 2015 at 11:16 AM, Ashan Dhananjaya <dh...@gmail.com>
> wrote:
>
>> Hi Reka,
>>
>> OS is Ubuntu 12.04 (precise) 64-bit.And i have gave all the permission
>> using "sudo chmod -R 777 ".After that i try to build it and end up with
>> this ERROR plus exception.
>>
>> [2015-05-06 19:51:04,982] ERROR
>> {org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector} -
>>  Could not connect to message broker
>> javax.jms.JMSException: Could not connect to broker URL:
>> tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
>> at
>> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
>> at
>> org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.net.ConnectException: Connection refused
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
>> at
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
>> at
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:579)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
>> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>> at
>> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
>> ... 9 more
>> [2015-05-06 19:51:04,982] ERROR
>> {org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector} -
>>  Could not connect to message broker
>> javax.jms.JMSException: Could not connect to broker URL:
>> tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
>> at
>> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
>> at
>> org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.net.ConnectException: Connection refused
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
>> at
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
>> at
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:579)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
>> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>> at
>> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
>> ... 9 more
>> [2015-05-06 19:51:04,983]  WARN
>> {org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber} -
>>  Could not reconnect to message broker
>> org.apache.stratos.messaging.domain.exception.MessagingException: Could
>> not connect to message broker
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:82)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
>> at
>> org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: javax.jms.JMSException: Could not connect to broker URL:
>> tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
>> at
>> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
>> ... 6 more
>> Caused by: java.net.ConnectException: Connection refused
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
>> at
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
>> at
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:579)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
>> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>> at
>> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
>> ... 9 more
>> [2015-05-06 19:51:04,983]  WARN
>> {org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber} -
>>  Could not reconnect to message broker
>> org.apache.stratos.messaging.domain.exception.MessagingException: Could
>> not connect to message broker
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:82)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
>> at
>> org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: javax.jms.JMSException: Could not connect to broker URL:
>> tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
>> at
>> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
>> at
>> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
>> ... 6 more
>> Caused by: java.net.ConnectException: Connection refused
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
>> at
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
>> at
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:579)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
>> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>> at
>> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>> at
>> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
>> ... 9 more
>>
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on
>> project stratos-integration: Failed to clean project: Failed to delete
>> /home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration/target
>> -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>> [ERROR]   mvn <goals> -rf :stratos-integration
>>
>> Thank You!
>> Best Regards,
>> Ashan
>>
>> On Wed, May 6, 2015 at 11:59 PM, Reka Thirunavukkarasu <re...@wso2.com>
>> wrote:
>>
>>> Hi Ashan,
>>>
>>> It says that failed to delete when cleaning the directory.
>>>
>>> ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on
>>> project stratos-integration: Failed to clean project: Failed to delete
>>> /home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration/target/carbontmp1430921215955/apache-stratos-4.1.0-SNAPSHOT/repository
>>> -> [Help 1]
>>>
>>> It seems to be some permission issue. Can you check on the permission of
>>> /home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration
>>> directory? In which user are you building the project? Also, what is your
>>> OS?
>>>
>>> Thanks,
>>> Reka
>>>
>>> On Wed, May 6, 2015 at 11:16 PM, Ashan Dhananjaya <
>>> dhananjaya92@gmail.com> wrote:
>>>
>>>> Hi Chamila,
>>>>
>>>> Attaching the nohup file.
>>>>
>>>> Thank You!
>>>> Best Regards,
>>>> Ashan
>>>>
>>>> On Wed, May 6, 2015 at 11:14 PM, Ashan Dhananjaya <
>>>> dhananjaya92@gmail.com> wrote:
>>>>
>>>>> Hi Imesh,
>>>>>
>>>>> I will look into it again.
>>>>>
>>>>> Thank You!
>>>>> Best Regards,
>>>>> Ashan
>>>>>
>>>>> On Wed, May 6, 2015 at 7:17 PM, Imesh Gunaratne <im...@apache.org>
>>>>> wrote:
>>>>>
>>>>>> Hi Ashan,
>>>>>>
>>>>>> I cannot see any relation of this error to the Mock IaaS. Looks like
>>>>>> the Stratos server has not started properly in the integration test. May be
>>>>>> the same problem you encountered earlier.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> On Wed, May 6, 2015 at 11:55 AM, Ashan Dhananjaya <
>>>>>> dhananjaya92@gmail.com> wrote:
>>>>>>
>>>>>>> Yes i did it.
>>>>>>>
>>>>>>> On Wed, May 6, 2015 at 6:43 AM, Lahiru Sandaruwan <la...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Did you only build the mock component with the new m2 repo?
>>>>>>>>
>>>>>>>> You have to build whole repo if the m2 repo is new.
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> On Tue, May 5, 2015 at 7:11 PM, Ashan Dhananjaya <
>>>>>>>> dhananjaya92@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi All,
>>>>>>>>>
>>>>>>>>> I have started to build the stratos Mock with a all new .m2
>>>>>>>>> repository and works with the latest pull. I got this exception while
>>>>>>>>> building the integration test.
>>>>>>>>>
>>>>>>>>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed:
>>>>>>>>> 32.746 sec <<< FAILURE!
>>>>>>>>> startServer(org.apache.stratos.integration.tests.SampleApplicationsTest)
>>>>>>>>>  Time elapsed: 32.669 sec  <<< FAILURE!
>>>>>>>>> org.testng.internal.thread.ThreadExecutionException:
>>>>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>>>>> java.lang.AssertionError: Login failed!
>>>>>>>>> at
>>>>>>>>> org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
>>>>>>>>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
>>>>>>>>> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>>>>>>>>> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>>>>>>>>> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>>>>>>>>> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
>>>>>>>>> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
>>>>>>>>> at org.testng.TestNG.run(TestNG.java:999)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>>> at
>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>>>>>>>>> at
>>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>>>>>>>>> Caused by:
>>>>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>>>>> java.lang.AssertionError: Login failed!
>>>>>>>>> at
>>>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>>> Caused by: java.lang.AssertionError: Login failed!
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>>>>>>> at
>>>>>>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>>> at
>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>>>>>>> ... 6 more
>>>>>>>>> Caused by:
>>>>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>>>>> java.lang.AssertionError: Login failed!
>>>>>>>>> at
>>>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>>> Caused by: java.lang.AssertionError: Login failed!
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>>>>>>> at
>>>>>>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>>>>>>> at
>>>>>>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>>> at
>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>>>>>> at
>>>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>>>>>>> ... 6 more
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Any help really appreciated.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thank You!
>>>>>>>>> Best Regards,
>>>>>>>>> Ashan
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> --
>>>>>>>> Lahiru Sandaruwan
>>>>>>>> Committer and PMC member, Apache Stratos,
>>>>>>>> Senior Software Engineer,
>>>>>>>> WSO2 Inc., http://wso2.com
>>>>>>>> lean.enterprise.middleware
>>>>>>>>
>>>>>>>> phone: +94773325954
>>>>>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>>>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Imesh Gunaratne
>>>>>>
>>>>>> Senior Technical Lead, WSO2
>>>>>> Committer & PMC Member, Apache Stratos
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Reka Thirunavukkarasu
>>> Senior Software Engineer,
>>> WSO2, Inc.:http://wso2.com,
>>> Mobile: +94776442007
>>>
>>>
>>>
>>
>


-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth <http://about.me/vishanth>*

Re: Stratos Mock IaaS build Failure

Posted by Chamila De Alwis <ch...@wso2.com>.
Hi Ashan,

Lahiru had earlier suggested use a fresh VM instance to do the build. Were
you able to do that?


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Thu, May 7, 2015 at 11:16 AM, Ashan Dhananjaya <dh...@gmail.com>
wrote:

> Hi Reka,
>
> OS is Ubuntu 12.04 (precise) 64-bit.And i have gave all the permission
> using "sudo chmod -R 777 ".After that i try to build it and end up with
> this ERROR plus exception.
>
> [2015-05-06 19:51:04,982] ERROR
> {org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector} -
>  Could not connect to message broker
> javax.jms.JMSException: Could not connect to broker URL:
> tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
> at
> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
> at
> org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
> at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:579)
> at
> org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
> at
> org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
> at
> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
> ... 9 more
> [2015-05-06 19:51:04,982] ERROR
> {org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector} -
>  Could not connect to message broker
> javax.jms.JMSException: Could not connect to broker URL:
> tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
> at
> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
> at
> org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
> at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:579)
> at
> org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
> at
> org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
> at
> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
> ... 9 more
> [2015-05-06 19:51:04,983]  WARN
> {org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber} -
>  Could not reconnect to message broker
> org.apache.stratos.messaging.domain.exception.MessagingException: Could
> not connect to message broker
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:82)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
> at
> org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.jms.JMSException: Could not connect to broker URL:
> tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
> at
> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> ... 6 more
> Caused by: java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
> at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:579)
> at
> org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
> at
> org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
> at
> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
> ... 9 more
> [2015-05-06 19:51:04,983]  WARN
> {org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber} -
>  Could not reconnect to message broker
> org.apache.stratos.messaging.domain.exception.MessagingException: Could
> not connect to message broker
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:82)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
> at
> org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.jms.JMSException: Could not connect to broker URL:
> tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
> at
> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
> at
> org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
> ... 6 more
> Caused by: java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
> at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:579)
> at
> org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
> at
> org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
> at
> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
> ... 9 more
>
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on
> project stratos-integration: Failed to clean project: Failed to delete
> /home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration/target
> -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :stratos-integration
>
> Thank You!
> Best Regards,
> Ashan
>
> On Wed, May 6, 2015 at 11:59 PM, Reka Thirunavukkarasu <re...@wso2.com>
> wrote:
>
>> Hi Ashan,
>>
>> It says that failed to delete when cleaning the directory.
>>
>> ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on
>> project stratos-integration: Failed to clean project: Failed to delete
>> /home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration/target/carbontmp1430921215955/apache-stratos-4.1.0-SNAPSHOT/repository
>> -> [Help 1]
>>
>> It seems to be some permission issue. Can you check on the permission of
>> /home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration
>> directory? In which user are you building the project? Also, what is your
>> OS?
>>
>> Thanks,
>> Reka
>>
>> On Wed, May 6, 2015 at 11:16 PM, Ashan Dhananjaya <dhananjaya92@gmail.com
>> > wrote:
>>
>>> Hi Chamila,
>>>
>>> Attaching the nohup file.
>>>
>>> Thank You!
>>> Best Regards,
>>> Ashan
>>>
>>> On Wed, May 6, 2015 at 11:14 PM, Ashan Dhananjaya <
>>> dhananjaya92@gmail.com> wrote:
>>>
>>>> Hi Imesh,
>>>>
>>>> I will look into it again.
>>>>
>>>> Thank You!
>>>> Best Regards,
>>>> Ashan
>>>>
>>>> On Wed, May 6, 2015 at 7:17 PM, Imesh Gunaratne <im...@apache.org>
>>>> wrote:
>>>>
>>>>> Hi Ashan,
>>>>>
>>>>> I cannot see any relation of this error to the Mock IaaS. Looks like
>>>>> the Stratos server has not started properly in the integration test. May be
>>>>> the same problem you encountered earlier.
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Wed, May 6, 2015 at 11:55 AM, Ashan Dhananjaya <
>>>>> dhananjaya92@gmail.com> wrote:
>>>>>
>>>>>> Yes i did it.
>>>>>>
>>>>>> On Wed, May 6, 2015 at 6:43 AM, Lahiru Sandaruwan <la...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Did you only build the mock component with the new m2 repo?
>>>>>>>
>>>>>>> You have to build whole repo if the m2 repo is new.
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>> On Tue, May 5, 2015 at 7:11 PM, Ashan Dhananjaya <
>>>>>>> dhananjaya92@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi All,
>>>>>>>>
>>>>>>>> I have started to build the stratos Mock with a all new .m2
>>>>>>>> repository and works with the latest pull. I got this exception while
>>>>>>>> building the integration test.
>>>>>>>>
>>>>>>>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed:
>>>>>>>> 32.746 sec <<< FAILURE!
>>>>>>>> startServer(org.apache.stratos.integration.tests.SampleApplicationsTest)
>>>>>>>>  Time elapsed: 32.669 sec  <<< FAILURE!
>>>>>>>> org.testng.internal.thread.ThreadExecutionException:
>>>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>>>> java.lang.AssertionError: Login failed!
>>>>>>>> at
>>>>>>>> org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
>>>>>>>> at
>>>>>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
>>>>>>>> at
>>>>>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
>>>>>>>> at
>>>>>>>> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
>>>>>>>> at
>>>>>>>> org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
>>>>>>>> at
>>>>>>>> org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
>>>>>>>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
>>>>>>>> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>>>>>>>> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>>>>>>>> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>>>>>>>> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
>>>>>>>> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
>>>>>>>> at org.testng.TestNG.run(TestNG.java:999)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>> at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>>>>>>>> at
>>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>>>>>>>> Caused by:
>>>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>>>> java.lang.AssertionError: Login failed!
>>>>>>>> at
>>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>>>>>> at
>>>>>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>>>>>> at
>>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>>>>> at
>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>>> at
>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>> Caused by: java.lang.AssertionError: Login failed!
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>>>>>> at
>>>>>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>> at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>> at
>>>>>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>>>>> at
>>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>>>>>> ... 6 more
>>>>>>>> Caused by:
>>>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>>>> java.lang.AssertionError: Login failed!
>>>>>>>> at
>>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>>>>>> at
>>>>>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>>>>>> at
>>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>>>>> at
>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>>> at
>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>> Caused by: java.lang.AssertionError: Login failed!
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>>>>>> at
>>>>>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>>>>>> at
>>>>>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>> at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>> at
>>>>>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>>>>> at
>>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>>>>>> ... 6 more
>>>>>>>>
>>>>>>>>
>>>>>>>> Any help really appreciated.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thank You!
>>>>>>>> Best Regards,
>>>>>>>> Ashan
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Lahiru Sandaruwan
>>>>>>> Committer and PMC member, Apache Stratos,
>>>>>>> Senior Software Engineer,
>>>>>>> WSO2 Inc., http://wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>> phone: +94773325954
>>>>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Imesh Gunaratne
>>>>>
>>>>> Senior Technical Lead, WSO2
>>>>> Committer & PMC Member, Apache Stratos
>>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> Reka Thirunavukkarasu
>> Senior Software Engineer,
>> WSO2, Inc.:http://wso2.com,
>> Mobile: +94776442007
>>
>>
>>
>

Re: Stratos Mock IaaS build Failure

Posted by Ashan Dhananjaya <dh...@gmail.com>.
Hi Reka,

OS is Ubuntu 12.04 (precise) 64-bit.And i have gave all the permission
using "sudo chmod -R 777 ".After that i try to build it and end up with
this ERROR plus exception.

[2015-05-06 19:51:04,982] ERROR
{org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector} -
 Could not connect to message broker
javax.jms.JMSException: Could not connect to broker URL:
tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
at
org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
at
org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at
org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
at
org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
at
org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
... 9 more
[2015-05-06 19:51:04,982] ERROR
{org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector} -
 Could not connect to message broker
javax.jms.JMSException: Could not connect to broker URL:
tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
at
org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
at
org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at
org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
at
org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
at
org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
... 9 more
[2015-05-06 19:51:04,983]  WARN
{org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber} -
 Could not reconnect to message broker
org.apache.stratos.messaging.domain.exception.MessagingException: Could not
connect to message broker
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:82)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
at
org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.jms.JMSException: Could not connect to broker URL:
tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
at
org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
... 6 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at
org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
at
org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
at
org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
... 9 more
[2015-05-06 19:51:04,983]  WARN
{org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber} -
 Could not reconnect to message broker
org.apache.stratos.messaging.domain.exception.MessagingException: Could not
connect to message broker
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:82)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicSubscriber.reconnect(AmqpTopicSubscriber.java:111)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector$1.onException(AmqpTopicConnector.java:75)
at
org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:2005)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.jms.JMSException: Could not connect to broker URL:
tcp://localhost:61617. Reason: java.net.ConnectException: Connection refused
at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
at
org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
at
org.apache.stratos.messaging.broker.connect.amqp.AmqpTopicConnector.connect(AmqpTopicConnector.java:70)
... 6 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at
org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
at
org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
at
org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
... 9 more


[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on
project stratos-integration: Failed to clean project: Failed to delete
/home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration/target
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :stratos-integration

Thank You!
Best Regards,
Ashan

On Wed, May 6, 2015 at 11:59 PM, Reka Thirunavukkarasu <re...@wso2.com>
wrote:

> Hi Ashan,
>
> It says that failed to delete when cleaning the directory.
>
> ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on
> project stratos-integration: Failed to clean project: Failed to delete
> /home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration/target/carbontmp1430921215955/apache-stratos-4.1.0-SNAPSHOT/repository
> -> [Help 1]
>
> It seems to be some permission issue. Can you check on the permission of
> /home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration
> directory? In which user are you building the project? Also, what is your
> OS?
>
> Thanks,
> Reka
>
> On Wed, May 6, 2015 at 11:16 PM, Ashan Dhananjaya <dh...@gmail.com>
> wrote:
>
>> Hi Chamila,
>>
>> Attaching the nohup file.
>>
>> Thank You!
>> Best Regards,
>> Ashan
>>
>> On Wed, May 6, 2015 at 11:14 PM, Ashan Dhananjaya <dhananjaya92@gmail.com
>> > wrote:
>>
>>> Hi Imesh,
>>>
>>> I will look into it again.
>>>
>>> Thank You!
>>> Best Regards,
>>> Ashan
>>>
>>> On Wed, May 6, 2015 at 7:17 PM, Imesh Gunaratne <im...@apache.org>
>>> wrote:
>>>
>>>> Hi Ashan,
>>>>
>>>> I cannot see any relation of this error to the Mock IaaS. Looks like
>>>> the Stratos server has not started properly in the integration test. May be
>>>> the same problem you encountered earlier.
>>>>
>>>> Thanks
>>>>
>>>> On Wed, May 6, 2015 at 11:55 AM, Ashan Dhananjaya <
>>>> dhananjaya92@gmail.com> wrote:
>>>>
>>>>> Yes i did it.
>>>>>
>>>>> On Wed, May 6, 2015 at 6:43 AM, Lahiru Sandaruwan <la...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Did you only build the mock component with the new m2 repo?
>>>>>>
>>>>>> You have to build whole repo if the m2 repo is new.
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> On Tue, May 5, 2015 at 7:11 PM, Ashan Dhananjaya <
>>>>>> dhananjaya92@gmail.com> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> I have started to build the stratos Mock with a all new .m2
>>>>>>> repository and works with the latest pull. I got this exception while
>>>>>>> building the integration test.
>>>>>>>
>>>>>>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed:
>>>>>>> 32.746 sec <<< FAILURE!
>>>>>>> startServer(org.apache.stratos.integration.tests.SampleApplicationsTest)
>>>>>>>  Time elapsed: 32.669 sec  <<< FAILURE!
>>>>>>> org.testng.internal.thread.ThreadExecutionException:
>>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>>> java.lang.AssertionError: Login failed!
>>>>>>> at
>>>>>>> org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
>>>>>>> at
>>>>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
>>>>>>> at
>>>>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
>>>>>>> at
>>>>>>> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
>>>>>>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
>>>>>>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
>>>>>>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
>>>>>>> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>>>>>>> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>>>>>>> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>>>>>>> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
>>>>>>> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
>>>>>>> at org.testng.TestNG.run(TestNG.java:999)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>>>>>>> at
>>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>>>>>>> Caused by:
>>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>>> java.lang.AssertionError: Login failed!
>>>>>>> at
>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>>>>> at
>>>>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>>>>> at
>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>>>> at
>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>> at
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>> Caused by: java.lang.AssertionError: Login failed!
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>>>>> at
>>>>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>> at
>>>>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>>>> at
>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>>>>> ... 6 more
>>>>>>> Caused by:
>>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>>> java.lang.AssertionError: Login failed!
>>>>>>> at
>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>>>>> at
>>>>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>>>>> at
>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>>>> at
>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>> at
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>> Caused by: java.lang.AssertionError: Login failed!
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>>>>> at
>>>>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>>>>> at
>>>>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>> at
>>>>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>>>> at
>>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>>>>> ... 6 more
>>>>>>>
>>>>>>>
>>>>>>> Any help really appreciated.
>>>>>>>
>>>>>>>
>>>>>>> Thank You!
>>>>>>> Best Regards,
>>>>>>> Ashan
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Lahiru Sandaruwan
>>>>>> Committer and PMC member, Apache Stratos,
>>>>>> Senior Software Engineer,
>>>>>> WSO2 Inc., http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> phone: +94773325954
>>>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Imesh Gunaratne
>>>>
>>>> Senior Technical Lead, WSO2
>>>> Committer & PMC Member, Apache Stratos
>>>>
>>>
>>>
>>
>
>
> --
> Reka Thirunavukkarasu
> Senior Software Engineer,
> WSO2, Inc.:http://wso2.com,
> Mobile: +94776442007
>
>
>

Re: Stratos Mock IaaS build Failure

Posted by Reka Thirunavukkarasu <re...@wso2.com>.
Hi Ashan,

It says that failed to delete when cleaning the directory.

ERROR] Failed to execute goal
org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on
project stratos-integration: Failed to clean project: Failed to delete
/home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration/target/carbontmp1430921215955/apache-stratos-4.1.0-SNAPSHOT/repository
-> [Help 1]

It seems to be some permission issue. Can you check on the permission of
/home/wso2/gsoc/sofwares/stratosMock/stratos/products/stratos/modules/integration
directory? In which user are you building the project? Also, what is your
OS?

Thanks,
Reka

On Wed, May 6, 2015 at 11:16 PM, Ashan Dhananjaya <dh...@gmail.com>
wrote:

> Hi Chamila,
>
> Attaching the nohup file.
>
> Thank You!
> Best Regards,
> Ashan
>
> On Wed, May 6, 2015 at 11:14 PM, Ashan Dhananjaya <dh...@gmail.com>
> wrote:
>
>> Hi Imesh,
>>
>> I will look into it again.
>>
>> Thank You!
>> Best Regards,
>> Ashan
>>
>> On Wed, May 6, 2015 at 7:17 PM, Imesh Gunaratne <im...@apache.org> wrote:
>>
>>> Hi Ashan,
>>>
>>> I cannot see any relation of this error to the Mock IaaS. Looks like the
>>> Stratos server has not started properly in the integration test. May be the
>>> same problem you encountered earlier.
>>>
>>> Thanks
>>>
>>> On Wed, May 6, 2015 at 11:55 AM, Ashan Dhananjaya <
>>> dhananjaya92@gmail.com> wrote:
>>>
>>>> Yes i did it.
>>>>
>>>> On Wed, May 6, 2015 at 6:43 AM, Lahiru Sandaruwan <la...@wso2.com>
>>>> wrote:
>>>>
>>>>> Did you only build the mock component with the new m2 repo?
>>>>>
>>>>> You have to build whole repo if the m2 repo is new.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Tue, May 5, 2015 at 7:11 PM, Ashan Dhananjaya <
>>>>> dhananjaya92@gmail.com> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I have started to build the stratos Mock with a all new .m2
>>>>>> repository and works with the latest pull. I got this exception while
>>>>>> building the integration test.
>>>>>>
>>>>>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed:
>>>>>> 32.746 sec <<< FAILURE!
>>>>>> startServer(org.apache.stratos.integration.tests.SampleApplicationsTest)
>>>>>>  Time elapsed: 32.669 sec  <<< FAILURE!
>>>>>> org.testng.internal.thread.ThreadExecutionException:
>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>> java.lang.AssertionError: Login failed!
>>>>>> at
>>>>>> org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
>>>>>> at
>>>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
>>>>>> at
>>>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
>>>>>> at
>>>>>> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
>>>>>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
>>>>>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
>>>>>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
>>>>>> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>>>>>> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>>>>>> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>>>>>> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
>>>>>> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
>>>>>> at org.testng.TestNG.run(TestNG.java:999)
>>>>>> at
>>>>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
>>>>>> at
>>>>>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
>>>>>> at
>>>>>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>> at
>>>>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>>>>>> at
>>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>>>>>> Caused by:
>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>> java.lang.AssertionError: Login failed!
>>>>>> at
>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>>>> at
>>>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>>>> at
>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>>> at
>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>> at
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>> Caused by: java.lang.AssertionError: Login failed!
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>>>> at
>>>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>> at
>>>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>>> at
>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>>>> ... 6 more
>>>>>> Caused by:
>>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>>> java.lang.AssertionError: Login failed!
>>>>>> at
>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>>>> at
>>>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>>>> at
>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>>> at
>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>> at
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>> Caused by: java.lang.AssertionError: Login failed!
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>>>> at
>>>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>>>> at
>>>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>> at
>>>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>>> at
>>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>>>> ... 6 more
>>>>>>
>>>>>>
>>>>>> Any help really appreciated.
>>>>>>
>>>>>>
>>>>>> Thank You!
>>>>>> Best Regards,
>>>>>> Ashan
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> --
>>>>> Lahiru Sandaruwan
>>>>> Committer and PMC member, Apache Stratos,
>>>>> Senior Software Engineer,
>>>>> WSO2 Inc., http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> phone: +94773325954
>>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Senior Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Re: Stratos Mock IaaS build Failure

Posted by Ashan Dhananjaya <dh...@gmail.com>.
Hi Chamila,

Attaching the nohup file.

Thank You!
Best Regards,
Ashan

On Wed, May 6, 2015 at 11:14 PM, Ashan Dhananjaya <dh...@gmail.com>
wrote:

> Hi Imesh,
>
> I will look into it again.
>
> Thank You!
> Best Regards,
> Ashan
>
> On Wed, May 6, 2015 at 7:17 PM, Imesh Gunaratne <im...@apache.org> wrote:
>
>> Hi Ashan,
>>
>> I cannot see any relation of this error to the Mock IaaS. Looks like the
>> Stratos server has not started properly in the integration test. May be the
>> same problem you encountered earlier.
>>
>> Thanks
>>
>> On Wed, May 6, 2015 at 11:55 AM, Ashan Dhananjaya <dhananjaya92@gmail.com
>> > wrote:
>>
>>> Yes i did it.
>>>
>>> On Wed, May 6, 2015 at 6:43 AM, Lahiru Sandaruwan <la...@wso2.com>
>>> wrote:
>>>
>>>> Did you only build the mock component with the new m2 repo?
>>>>
>>>> You have to build whole repo if the m2 repo is new.
>>>>
>>>> Thanks.
>>>>
>>>> On Tue, May 5, 2015 at 7:11 PM, Ashan Dhananjaya <
>>>> dhananjaya92@gmail.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I have started to build the stratos Mock with a all new .m2 repository
>>>>> and works with the latest pull. I got this exception while building the
>>>>> integration test.
>>>>>
>>>>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 32.746
>>>>> sec <<< FAILURE!
>>>>> startServer(org.apache.stratos.integration.tests.SampleApplicationsTest)
>>>>>  Time elapsed: 32.669 sec  <<< FAILURE!
>>>>> org.testng.internal.thread.ThreadExecutionException:
>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>> java.lang.AssertionError: Login failed!
>>>>> at
>>>>> org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
>>>>> at
>>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
>>>>> at
>>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
>>>>> at
>>>>> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
>>>>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
>>>>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
>>>>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
>>>>> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>>>>> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>>>>> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>>>>> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
>>>>> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
>>>>> at org.testng.TestNG.run(TestNG.java:999)
>>>>> at
>>>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
>>>>> at
>>>>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
>>>>> at
>>>>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>> at
>>>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>>>>> at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>>>>> Caused by:
>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>> java.lang.AssertionError: Login failed!
>>>>> at
>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>>> at
>>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>>> at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>> at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>> Caused by: java.lang.AssertionError: Login failed!
>>>>> at
>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>>> at
>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>>> at
>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>>> at
>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>>> at
>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>>> at
>>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>>> at
>>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>> at
>>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>> at
>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>>> ... 6 more
>>>>> Caused by:
>>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>>> java.lang.AssertionError: Login failed!
>>>>> at
>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>>> at
>>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>>> at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>> at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>> Caused by: java.lang.AssertionError: Login failed!
>>>>> at
>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>>> at
>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>>> at
>>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>>> at
>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>>> at
>>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>>> at
>>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>>> at
>>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>> at
>>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>> at
>>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>>> ... 6 more
>>>>>
>>>>>
>>>>> Any help really appreciated.
>>>>>
>>>>>
>>>>> Thank You!
>>>>> Best Regards,
>>>>> Ashan
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> Lahiru Sandaruwan
>>>> Committer and PMC member, Apache Stratos,
>>>> Senior Software Engineer,
>>>> WSO2 Inc., http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> phone: +94773325954
>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>
>>>>
>>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Senior Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>

Re: Stratos Mock IaaS build Failure

Posted by Ashan Dhananjaya <dh...@gmail.com>.
Hi Imesh,

I will look into it again.

Thank You!
Best Regards,
Ashan

On Wed, May 6, 2015 at 7:17 PM, Imesh Gunaratne <im...@apache.org> wrote:

> Hi Ashan,
>
> I cannot see any relation of this error to the Mock IaaS. Looks like the
> Stratos server has not started properly in the integration test. May be the
> same problem you encountered earlier.
>
> Thanks
>
> On Wed, May 6, 2015 at 11:55 AM, Ashan Dhananjaya <dh...@gmail.com>
> wrote:
>
>> Yes i did it.
>>
>> On Wed, May 6, 2015 at 6:43 AM, Lahiru Sandaruwan <la...@wso2.com>
>> wrote:
>>
>>> Did you only build the mock component with the new m2 repo?
>>>
>>> You have to build whole repo if the m2 repo is new.
>>>
>>> Thanks.
>>>
>>> On Tue, May 5, 2015 at 7:11 PM, Ashan Dhananjaya <dhananjaya92@gmail.com
>>> > wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have started to build the stratos Mock with a all new .m2 repository
>>>> and works with the latest pull. I got this exception while building the
>>>> integration test.
>>>>
>>>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 32.746
>>>> sec <<< FAILURE!
>>>> startServer(org.apache.stratos.integration.tests.SampleApplicationsTest)
>>>>  Time elapsed: 32.669 sec  <<< FAILURE!
>>>> org.testng.internal.thread.ThreadExecutionException:
>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>> java.lang.AssertionError: Login failed!
>>>> at
>>>> org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
>>>> at
>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
>>>> at
>>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
>>>> at
>>>> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
>>>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
>>>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
>>>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
>>>> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>>>> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>>>> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>>>> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
>>>> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
>>>> at org.testng.TestNG.run(TestNG.java:999)
>>>> at
>>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
>>>> at
>>>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
>>>> at
>>>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>> at
>>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>>> at
>>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>>> at
>>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>>>> at
>>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>>>> Caused by:
>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>> java.lang.AssertionError: Login failed!
>>>> at
>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>> at
>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>> at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>> at java.lang.Thread.run(Thread.java:745)
>>>> Caused by: java.lang.AssertionError: Login failed!
>>>> at
>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>> at
>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>> at
>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>> at
>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>> at
>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>> at
>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>> at
>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>> at
>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>> at
>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>> ... 6 more
>>>> Caused by:
>>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>>> java.lang.AssertionError: Login failed!
>>>> at
>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>>> at
>>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>>> at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>> at java.lang.Thread.run(Thread.java:745)
>>>> Caused by: java.lang.AssertionError: Login failed!
>>>> at
>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>>> at
>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>>> at
>>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>>> at
>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>>> at
>>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>>> at
>>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>>> at
>>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>> at
>>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>> at
>>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>>> ... 6 more
>>>>
>>>>
>>>> Any help really appreciated.
>>>>
>>>>
>>>> Thank You!
>>>> Best Regards,
>>>> Ashan
>>>>
>>>>
>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior Software Engineer,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> phone: +94773325954
>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>
>
>
> --
> Imesh Gunaratne
>
> Senior Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>

Re: Stratos Mock IaaS build Failure

Posted by Imesh Gunaratne <im...@apache.org>.
Hi Ashan,

I cannot see any relation of this error to the Mock IaaS. Looks like the
Stratos server has not started properly in the integration test. May be the
same problem you encountered earlier.

Thanks

On Wed, May 6, 2015 at 11:55 AM, Ashan Dhananjaya <dh...@gmail.com>
wrote:

> Yes i did it.
>
> On Wed, May 6, 2015 at 6:43 AM, Lahiru Sandaruwan <la...@wso2.com>
> wrote:
>
>> Did you only build the mock component with the new m2 repo?
>>
>> You have to build whole repo if the m2 repo is new.
>>
>> Thanks.
>>
>> On Tue, May 5, 2015 at 7:11 PM, Ashan Dhananjaya <dh...@gmail.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I have started to build the stratos Mock with a all new .m2 repository
>>> and works with the latest pull. I got this exception while building the
>>> integration test.
>>>
>>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 32.746
>>> sec <<< FAILURE!
>>> startServer(org.apache.stratos.integration.tests.SampleApplicationsTest)
>>>  Time elapsed: 32.669 sec  <<< FAILURE!
>>> org.testng.internal.thread.ThreadExecutionException:
>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>> java.lang.AssertionError: Login failed!
>>> at
>>> org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
>>> at
>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
>>> at
>>> org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
>>> at
>>> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
>>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
>>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
>>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
>>> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>>> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>>> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>>> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
>>> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
>>> at org.testng.TestNG.run(TestNG.java:999)
>>> at
>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
>>> at
>>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
>>> at
>>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at
>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>> at
>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>> at
>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>>> Caused by:
>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>> java.lang.AssertionError: Login failed!
>>> at
>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>> at
>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:745)
>>> Caused by: java.lang.AssertionError: Login failed!
>>> at
>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>> at
>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>> at
>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>> at
>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>> at
>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>> at
>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>> at
>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at
>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>> at
>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>> ... 6 more
>>> Caused by:
>>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>>> java.lang.AssertionError: Login failed!
>>> at
>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>>> at
>>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:745)
>>> Caused by: java.lang.AssertionError: Login failed!
>>> at
>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>>> at
>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>>> at
>>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>>> at
>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>>> at
>>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>>> at
>>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>>> at
>>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at
>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>> at
>>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>>> ... 6 more
>>>
>>>
>>> Any help really appreciated.
>>>
>>>
>>> Thank You!
>>> Best Regards,
>>> Ashan
>>>
>>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> phone: +94773325954
>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>


-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Stratos Mock IaaS build Failure

Posted by Ashan Dhananjaya <dh...@gmail.com>.
Yes i did it.

On Wed, May 6, 2015 at 6:43 AM, Lahiru Sandaruwan <la...@wso2.com> wrote:

> Did you only build the mock component with the new m2 repo?
>
> You have to build whole repo if the m2 repo is new.
>
> Thanks.
>
> On Tue, May 5, 2015 at 7:11 PM, Ashan Dhananjaya <dh...@gmail.com>
> wrote:
>
>> Hi All,
>>
>> I have started to build the stratos Mock with a all new .m2 repository
>> and works with the latest pull. I got this exception while building the
>> integration test.
>>
>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 32.746
>> sec <<< FAILURE!
>> startServer(org.apache.stratos.integration.tests.SampleApplicationsTest)
>>  Time elapsed: 32.669 sec  <<< FAILURE!
>> org.testng.internal.thread.ThreadExecutionException:
>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>> java.lang.AssertionError: Login failed!
>> at
>> org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
>> at
>> org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
>> at
>> org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
>> at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
>> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
>> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
>> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
>> at org.testng.TestNG.run(TestNG.java:999)
>> at
>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
>> at
>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
>> at
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>> Caused by:
>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>> java.lang.AssertionError: Login failed!
>> at
>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>> at
>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.AssertionError: Login failed!
>> at
>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>> at
>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>> at
>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>> at
>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>> at
>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>> at
>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>> at
>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>> at
>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>> ... 6 more
>> Caused by:
>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>> java.lang.AssertionError: Login failed!
>> at
>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
>> at
>> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.AssertionError: Login failed!
>> at
>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
>> at
>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
>> at
>> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
>> at
>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
>> at
>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
>> at
>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
>> at
>> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>> at
>> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
>> ... 6 more
>>
>>
>> Any help really appreciated.
>>
>>
>> Thank You!
>> Best Regards,
>> Ashan
>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> phone: +94773325954
> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>

Re: Stratos Mock IaaS build Failure

Posted by Lahiru Sandaruwan <la...@wso2.com>.
Did you only build the mock component with the new m2 repo?

You have to build whole repo if the m2 repo is new.

Thanks.

On Tue, May 5, 2015 at 7:11 PM, Ashan Dhananjaya <dh...@gmail.com>
wrote:

> Hi All,
>
> I have started to build the stratos Mock with a all new .m2 repository and
> works with the latest pull. I got this exception while building the
> integration test.
>
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 32.746 sec
> <<< FAILURE!
> startServer(org.apache.stratos.integration.tests.SampleApplicationsTest)
>  Time elapsed: 32.669 sec  <<< FAILURE!
> org.testng.internal.thread.ThreadExecutionException:
> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
> java.lang.AssertionError: Login failed!
> at
> org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
> at
> org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
> at
> org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
> at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
> at org.testng.TestNG.run(TestNG.java:999)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
> at
> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Caused by:
> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
> java.lang.AssertionError: Login failed!
> at
> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
> at
> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.AssertionError: Login failed!
> at
> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
> at
> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
> at
> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
> at
> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
> at
> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
> at
> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
> at
> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
> at
> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
> ... 6 more
> Caused by:
> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
> java.lang.AssertionError: Login failed!
> at
> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:49)
> at
> org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:37)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.AssertionError: Login failed!
> at
> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:110)
> at
> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:79)
> at
> org.wso2.carbon.integration.framework.LoginLogoutUtil.login(LoginLogoutUtil.java:63)
> at
> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:67)
> at
> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:50)
> at
> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:109)
> at
> org.apache.stratos.integration.tests.StratosTestServerManager.startServer(StratosTestServerManager.java:104)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
> at
> org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:46)
> ... 6 more
>
>
> Any help really appreciated.
>
>
> Thank You!
> Best Regards,
> Ashan
>
>


-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

phone: +94773325954
email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146