Tried another build, having deleted the target directories:

D:\httpcomponents-core-4.0-alpha6-SNAPSHOT>mvn package
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   HttpComponents Core
[INFO]   HttpCore (base module)
[INFO]   HttpCore (NIO extensions module)
[INFO] -------------------------------------------------------------------------
---
[INFO] Building HttpComponents Core
[INFO]    task-segment: [package]
[INFO] -------------------------------------------------------------------------
---
[INFO] [site:attach-descriptor]
[INFO] [antrun:run {execution: java1.4-warning}]
[INFO] Executing tasks
     [echo] =======================================================
     [echo] WARNING: Java 1.5 dependent modules are NOT included!
     [echo] =======================================================
[INFO] Executed tasks
[INFO] -------------------------------------------------------------------------
---
[INFO] Building HttpCore (base module)
[INFO]    task-segment: [package]
[INFO] -------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 146 source files to D:\httpcomponents-core-4.0-alpha6-SNAPSHOT\module-
main\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 66 source files to D:\httpcomponents-core-4.0-alpha6-SNAPSHOT\module-m
ain\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: D:\httpcomponents-core-4.0-alpha6-SNAPSHOT\mod
ule-main\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.http.TestAll
Tests run: 370, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.641 sec

Results :
Tests run: 370, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar: D:\httpcomponents-core-4.0-alpha6-SNAPSHOT\module-main\targ
et\httpcore-4.0-alpha6-SNAPSHOT.jar
[INFO] [antrun:run {execution: java1.4-warning}]
[INFO] Executing tasks
     [echo] =======================================================
     [echo] WARNING: Java 1.5 dependent modules are NOT included!
     [echo] =======================================================
[INFO] Executed tasks
[INFO] -------------------------------------------------------------------------
---
[INFO] Building HttpCore (NIO extensions module)
[INFO]    task-segment: [package]
[INFO] -------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 85 source files to D:\httpcomponents-core-4.0-alpha6-SNAPSHOT\module-n
io\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 27 source files to D:\httpcomponents-core-4.0-alpha6-SNAPSHOT\module-n
io\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: D:\httpcomponents-core-4.0-alpha6-SNAPSHOT\mod
ule-nio\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.http.nio.TestAll
java.lang.IllegalStateException: Buffer already closed for writing
        at org.apache.http.nio.util.SharedOutputBuffer.write(SharedOutputBuffer.
java:112)
        at org.apache.http.nio.entity.ContentOutputStream.write(ContentOutputStr
eam.java:67)
        at org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:7
6)
        at org.apache.http.nio.protocol.ThrottlingHttpClientHandler$1.run(Thrott
lingHttpClientHandler.java:417)
        at org.apache.http.mockup.SimpleThreadPoolExecutor$WorkerThread.run(Simp
leThreadPoolExecutor.java:204)
Tests run: 108, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 27.344 sec <<<
 FAILURE!

Results :
Tests run: 108, Failures: 2, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Wed Oct 03 18:21:07 BST 2007
[INFO] Final Memory: 12M/25M
[INFO] ------------------------------------------------------------------------

D:\httpcomponents-core-4.0-alpha6-SNAPSHOT>

The  surefire file contains:

-------------------------------------------------------------------------------
Test set: org.apache.http.nio.TestAll
-------------------------------------------------------------------------------
Tests run: 108, Failures: 2, Errors: 0, Skipped: 0, Time elapsed:
27.328 sec <<< FAILURE!
testSimpleHttpPostsHTTP10(org.apache.http.nio.protocol.TestNIOHttp)
Time elapsed: 10.063 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<0> but was:<32>
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.failNotEquals(Assert.java:282)
        at junit.framework.Assert.assertEquals(Assert.java:64)
        at junit.framework.Assert.assertEquals(Assert.java:201)
        at junit.framework.Assert.assertEquals(Assert.java:207)
        at 
org.apache.http.nio.protocol.TestNIOHttp.testSimpleHttpPostsHTTP10(TestNIOHttp.java:826)

testSimpleHttpHeads(org.apache.http.nio.protocol.TestNIOHttp)  Time
elapsed: 10.047 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<60> but was:<76>
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.failNotEquals(Assert.java:282)
        at junit.framework.Assert.assertEquals(Assert.java:64)
        at junit.framework.Assert.assertEquals(Assert.java:201)
        at junit.framework.Assert.assertEquals(Assert.java:207)
        at 
org.apache.http.nio.protocol.TestNIOHttp.testSimpleHttpHeads(TestNIOHttp.java:1240)

But a second run (without deleting target) works OK.

What's a bit odd though is that it says the NIOSSL tests succeed, even
though I'm running with Java 1.4:

[INFO] Executing tasks
     [echo] =======================================================
     [echo] WARNING: Java 1.5 dependent modules are NOT included!
     [echo] =======================================================
[INFO] Executed tasks
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] HttpComponents Core ................................... SUCCESS [2.657s]
[INFO] HttpCore (base module) ................................ SUCCESS [2.656s]
[INFO] HttpCore (NIO extensions module) ...................... SUCCESS [8.078s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL


Sebb

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to