Hi,

On Fri, Jan 13, 2012 at 10:25 PM, Hiranya Jayathilaka <[email protected]>wrote:

>
>
> On Fri, Jan 13, 2012 at 9:31 PM, Afkham Azeez <[email protected]> wrote:
>
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1:03:53.127s
>> [INFO] Finished at: Fri Jan 13 17:03:34 IST 2012
>> [INFO] Final Memory: 402M/743M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on
>> project httpcore-nio: There are test failures.
>> [ERROR]
>> [ERROR] Please refer to
>> /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/httpcore-nio/4.1.0-wso2v1/target/surefire-reports
>> for the individual test results.
>> [ERROR] -> [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/MojoFailureException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>> [ERROR]   mvn <goals> -rf :httpcore-nio
>>
>>
>>
>> The surefire-report is shown below:
>>
>>
>> -------------------------------------------------------------------------------
>> Test set: org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor
>>
>> -------------------------------------------------------------------------------
>> Tests run: 3, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.519 sec
>> <<< FAILURE!
>> testEndpointUpAndDown(org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor)
>>  Time elapsed: 0.007 sec  <<< FAILURE!
>> junit.framework.AssertionFailedError: expected:<2> but was:<1>
>>  at junit.framework.Assert.fail(Assert.java:47)
>> at junit.framework.Assert.failNotEquals(Assert.java:283)
>>  at junit.framework.Assert.assertEquals(Assert.java:64)
>> at junit.framework.Assert.assertEquals(Assert.java:195)
>>  at junit.framework.Assert.assertEquals(Assert.java:201)
>> at
>> org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor.testEndpointUpAndDown(TestDefaultListeningIOReactor.java:118)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>>  at junit.framework.TestCase.runTest(TestCase.java:168)
>> at junit.framework.TestCase.runBare(TestCase.java:134)
>>  at junit.framework.TestResult$1.protect(TestResult.java:110)
>> at junit.framework.TestResult.runProtected(TestResult.java:128)
>>  at junit.framework.TestResult.run(TestResult.java:113)
>> at junit.framework.TestCase.run(TestCase.java:124)
>>  at junit.framework.TestSuite.runTest(TestSuite.java:232)
>> at junit.framework.TestSuite.run(TestSuite.java:227)
>>  at
>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
>> at
>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
>>  at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
>>  at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
>>  at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
>>
>> testEndpointAlreadyBoundFatal(org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor)
>>  Time elapsed: 0.003 sec  <<< ERROR!
>> java.lang.IllegalStateException: I/O reactor has been shut down
>> at
>> org.apache.http.impl.nio.reactor.DefaultListeningIOReactor.listen(DefaultListeningIOReactor.java:175)
>>  at
>> org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor.testEndpointAlreadyBoundFatal(TestDefaultListeningIOReactor.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  at java.lang.reflect.Method.invoke(Method.java:597)
>> at junit.framework.TestCase.runTest(TestCase.java:168)
>>  at junit.framework.TestCase.runBare(TestCase.java:134)
>> at junit.framework.TestResult$1.protect(TestResult.java:110)
>>  at junit.framework.TestResult.runProtected(TestResult.java:128)
>> at junit.framework.TestResult.run(TestResult.java:113)
>>  at junit.framework.TestCase.run(TestCase.java:124)
>> at junit.framework.TestSuite.runTest(TestSuite.java:232)
>>  at junit.framework.TestSuite.run(TestSuite.java:227)
>> at
>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
>>  at
>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
>>  at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
>> at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>>  at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
>>
>>
>> Any idea what is going on?
>>
>
AFAIK, there weren't any recent changes in the dependency, and it has been
building successfully with tests for a long time now. Doubt whether
parallel builds were going on and there was a port conflict. We experienced
a similar behavior on the Bamboo builder, exception raised was the same.
See "Carbon Trunk Unit test fails at httpcore-nio" by Dushan.

Anyway, Hiranya is correct, httpcore-nio 4.1.0-wso21 and 4.1.3-wso2v2
dependencies were created to commit some important fixes to HttpCore 4.1
and 4.1.3. The latest release, 4.1.4, contains all those fixes.

Thanks,
Sadeep


> Not really. But if I'm not mistaken this code is here because we had to
> patch HTTP Core 4.1 to resolve some issue (Sadeep should know the details).
> This patch should be available in the latest GA release of HTTP Core
> (4.1.4). We should simply upgrade our platform to the above version and get
> rid of this branch in our SVN tree.
>
> Thanks,
> Hiranya
>
> --
> Hiranya Jayathilaka
> Associate Technical Lead;
> WSO2 Inc.;  http://wso2.org
> E-mail: [email protected];  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>



-- 
Sadeep Jayasumana

Software Engineer
WSO2 Inc.
Email - [email protected]
Mobile - +94 77 22 66 507
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to