[Dev] Integration test failures on Carbon core

2012-05-22 Thread Isuru Suriarachchi
I updated the entire trunk this morning and built from the scratch. Getting
the following test failure on carbon core and all other products. Any clue?

Results :

Failed tests:
  startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager):
org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
java.lang.RuntimeException: Could not login to Carbon server within
6ms. portOffset=0

Tests run: 28, Failures: 1, Errors: 0, Skipped: 27

surefire report

---
Test set: TestSuite
---
Tests run: 28, Failures: 1, Errors: 0, Skipped: 27, Time elapsed: 69.405
sec <<< FAILURE!
startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager)
 Time elapsed: 0 sec  <<< FAILURE!
org.testng.internal.thread.ThreadExecutionException:
org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
java.lang.RuntimeException: Could not login to Carbon server within
6ms. portOffset=0
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)



-- 
Isuru Suriarachchi
Senior Technical Lead
WSO2 Inc. http://wso2.com
email : is...@wso2.com
blog : http://isurues.wordpress.com/

lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integration test failures on Carbon core

2012-05-22 Thread Afkham Azeez
Update Carbon kernel/core again & retry. I was able to build the entire
kernel with tests this afternoon.

On Tue, May 22, 2012 at 7:42 PM, Isuru Suriarachchi  wrote:

> I updated the entire trunk this morning and built from the scratch.
> Getting the following test failure on carbon core and all other products.
> Any clue?
>
> Results :
>
> Failed tests:
>   startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager):
> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
> java.lang.RuntimeException: Could not login to Carbon server within
> 6ms. portOffset=0
>
> Tests run: 28, Failures: 1, Errors: 0, Skipped: 27
>
> surefire report
>
>
> ---
> Test set: TestSuite
>
> ---
> Tests run: 28, Failures: 1, Errors: 0, Skipped: 27, Time elapsed: 69.405
> sec <<< FAILURE!
> startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager)
>  Time elapsed: 0 sec  <<< FAILURE!
> org.testng.internal.thread.ThreadExecutionException:
> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
> java.lang.RuntimeException: Could not login to Carbon server within
> 6ms. portOffset=0
> 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)
>
>
>
> --
> Isuru Suriarachchi
> Senior Technical Lead
> WSO2 Inc. http://wso2.com
> email : is...@wso2.com
> blog : http://isurues.wordpress.com/
>
> lean . enterprise . middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integration test failures on Carbon core

2012-05-22 Thread Amila Suriarachchi
For CEP and BRS there was a problem of copying a web.xml. After that all
tests got passed.

Please check with Pradeep.

thanks,
Amila.

On Tue, May 22, 2012 at 10:58 PM, Afkham Azeez  wrote:

> Update Carbon kernel/core again & retry. I was able to build the entire
> kernel with tests this afternoon.
>
> On Tue, May 22, 2012 at 7:42 PM, Isuru Suriarachchi wrote:
>
>> I updated the entire trunk this morning and built from the scratch.
>> Getting the following test failure on carbon core and all other products.
>> Any clue?
>>
>> Results :
>>
>> Failed tests:
>>   startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager):
>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>> java.lang.RuntimeException: Could not login to Carbon server within
>> 6ms. portOffset=0
>>
>> Tests run: 28, Failures: 1, Errors: 0, Skipped: 27
>>
>> surefire report
>>
>>
>> ---
>> Test set: TestSuite
>>
>> ---
>> Tests run: 28, Failures: 1, Errors: 0, Skipped: 27, Time elapsed: 69.405
>> sec <<< FAILURE!
>> startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager)
>>  Time elapsed: 0 sec  <<< FAILURE!
>> org.testng.internal.thread.ThreadExecutionException:
>> org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
>> java.lang.RuntimeException: Could not login to Carbon server within
>> 6ms. portOffset=0
>> 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)
>>
>>
>>
>> --
>> Isuru Suriarachchi
>> Senior Technical Lead
>> WSO2 Inc. http://wso2.com
>> email : is...@wso2.com
>> blog : http://isurues.wordpress.com/
>>
>> lean . enterprise . middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Amila Suriarachchi*

Software Architect
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 71 3082805
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integration test failures on Carbon core

2012-05-23 Thread Pradeep Fernando
Hi,

I don't think the above issue is related to newly introduced web.xml.
carbon core distribution starts fine for me (didnt run the
integration)

--Pradeep
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integration test failures on Carbon core

2012-05-23 Thread Dimuthu Leelarathne
Hi all,

I ran core with integration tests and all passed.

thanks,
dimuthu

On Wed, May 23, 2012 at 1:57 PM, Pradeep Fernando  wrote:

> Hi,
>
> I don't think the above issue is related to newly introduced web.xml.
> carbon core distribution starts fine for me (didnt run the
> integration)
>
> --Pradeep
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Dimuthu Leelarathne
Technical Lead

WSO2, Inc. (http://wso2.com)
email: dimut...@wso2.com

Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integration test failures on Carbon core

2012-05-23 Thread Sameera Jayasoma
I just build Carbon core. I got test failure in the core.services module in
Carbon core.

[INFO]

[INFO] Building WSO2 Carbon - Services 4.0.0-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
org.wso2.carbon.core.services ---
[INFO] Deleting
/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/target
[INFO]
[INFO] --- incremental-build-plugin:1.3:incremental-build (default) @
org.wso2.carbon.core.services ---
[INFO] Verifying module descriptor ...
[INFO] Pom descriptor modification detected.
[INFO] Deleting
/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
org.wso2.carbon.core.services ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
org.wso2.carbon.core.services ---
[INFO] Compiling 29 source files to
/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/target/classes
[INFO]
[INFO] --- maven-scr-plugin:1.7.4:scr (generate-scr-scrdescriptor) @
org.wso2.carbon.core.services ---
[WARNING] Class
org.wso2.carbon.core.services.internal.CarbonServicesServiceComponent is
using deprecated javadoc tags  at
file:/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/src/main/java/org/wso2/carbon/core/services/internal/CarbonServicesServiceComponent.java:36
[WARNING] It is highly recommended to fix these problems, as future
versions might not support these features anymore.
[INFO] Generating 2 MetaType Descriptors to
/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/target/scr-plugin-generated/OSGI-INF/metatype/metatype.xml
[INFO] Writing abstract service descriptor
/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/target/scr-plugin-generated/OSGI-INF/scr-plugin/scrinfo.xml
with 1 entries.
[INFO] Generating 1 Service Component Descriptors to
/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/target/scr-plugin-generated/OSGI-INF/serviceComponents.xml
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources)
@ org.wso2.carbon.core.services ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/../../distribution/kernel/carbon-home/lib/core/WEB-INF/classes
[INFO] Copying 0 resource
[INFO] skip non existing resourceDirectory
/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
org.wso2.carbon.core.services ---
[INFO] Compiling 3 source files to
/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @
org.wso2.carbon.core.services ---
[INFO] Surefire report directory:
/Users/sameera/Work/wso2/checkouts/carbon/kernel/trunk/core/org.wso2.carbon.core.services/target/surefire-reports

---
 T E S T S
---
Running org.wso2.carbon.core.services.authentication.AuthenticationUtilTest
log4j:WARN No appenders could be found for logger
(org.apache.axis2.context.AbstractContext).
log4j:WARN Please initialize the log4j system properly.
Tests run: 7, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 1.224 sec
<<< FAILURE!
Running
org.wso2.carbon.core.services.authentication.BasicAccessAuthenticatorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec

Results :

Failed tests:
testOriginatingIPRemoteAddressNegative(org.wso2.carbon.core.services.authentication.AuthenticationUtilTest):
Not a valid originating IP, should fail

testXIPRemoteAddressNegative(org.wso2.carbon.core.services.authentication.AuthenticationUtilTest):
Not a valid originating IP, should fail

testForwardedForRemoteAddressNegative(org.wso2.carbon.core.services.authentication.AuthenticationUtilTest):
Not a valid originating IP, should fail

Tests run: 11, Failures: 3, Errors: 0, Skipped: 0


On Wed, May 23, 2012 at 10:57 AM, Dimuthu Leelarathne wrote:

> Hi all,
>
> I ran core with integration tests and all passed.
>
> thanks,
> dimuthu
>
>
> On Wed, May 23, 2012 at 1:57 PM, Pradeep Fernando wrote:
>
>> Hi,
>>
>> I don't think the above issue is related to newly introduced web.xml.
>> carbon core distribution starts fine for me (didnt run th