You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Oleg Kalnichevski <ol...@apache.org> on 2007/10/01 16:37:31 UTC

[HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Folks,

Please do find a few minutes to review the release notes and the
pre-release packages for HttpCore 4.0-alpha6 

Release notes: 
http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt

Packages:
http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/

Web site:
http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/

If I hear no complaints I'll proceed with the official release procedure
in a few days.

I also would like to urge all upstream projects dependent on HttpCore to
use this opportunity to test their products against the latest build and
report regressions if found.

Oleg




---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2007-10-01 at 16:04 +0100, sebb wrote:
> A minor point:
> 
> Core requires Java 1.3, NIO needs 1.4 according to the page:
> 
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/
> 
> There is no such information for NIOSSL, but the MANIFEST suggests it
> needs1.5 - is this the case?
> 

Yes, this is indeed the case. 

> Also, might be worth adding that NIOSSL depends on NIO - it should be
> obvious, but it would do no harm to add the info along with the Java
> requirements.
> 

I'll do so.

Thanks, Sebastian

Oleg

> 
> On 01/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> > Folks,
> >
> > Please do find a few minutes to review the release notes and the
> > pre-release packages for HttpCore 4.0-alpha6
> >
> > Release notes:
> > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt
> >
> > Packages:
> > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/
> >
> > Web site:
> > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/
> >
> > If I hear no complaints I'll proceed with the official release procedure
> > in a few days.
> >
> > I also would like to urge all upstream projects dependent on HttpCore to
> > use this opportunity to test their products against the latest build and
> > report regressions if found.
> >
> > Oleg
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by sebb <se...@gmail.com>.
A minor point:

Core requires Java 1.3, NIO needs 1.4 according to the page:

http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/

There is no such information for NIOSSL, but the MANIFEST suggests it
needs1.5 - is this the case?

Also, might be worth adding that NIOSSL depends on NIO - it should be
obvious, but it would do no harm to add the info along with the Java
requirements.


On 01/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> Folks,
>
> Please do find a few minutes to review the release notes and the
> pre-release packages for HttpCore 4.0-alpha6
>
> Release notes:
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt
>
> Packages:
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/
>
> Web site:
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/
>
> If I hear no complaints I'll proceed with the official release procedure
> in a few days.
>
> I also would like to urge all upstream projects dependent on HttpCore to
> use this opportunity to test their products against the latest build and
> report regressions if found.
>
> Oleg
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by Roland Weber <os...@dubioso.net>.
Hi Oleg,

I added a sentence to the release notes about SIP messages.
I still hope that might attract some new users :-)

The NOTICE.txt and README.txt were using different project
names. I've dropped the Jakarta reference from README.txt
in core and client. The names are now consistent across
the NOTICE, README and RELEASE_NOTES in both components.
Our association with Jakarta is still clear from the
project URL in the README.

cheers,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by Roland Weber <os...@dubioso.net>.
Hi Oleg,

> I think Ant build script should still work

NIOSSL never had an Ant build script, as that module was meant
to be in core only temporarily. I've suggested before to remove
the build.xml files, at least from the releases. If anyone was
actually using them, we'll hear about it :-)

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by sebb <se...@gmail.com>.
On 03/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> sebb wrote:
> > On 03/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> >> On Wed, 2007-10-03 at 18:26 +0100, sebb wrote:
> >>> Tried another build, having deleted the target directories:
> >>>
> >>> -------------------------------------------------------------------------------
> >>> 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.
> >>>
> >> Sebastian,
> >>
> >> Would it be a big deal for you to pull out the latest snapshot off the
> >> SVN trunk and re-run the tests?
> >
> > OK, I'll try that later.
> >
> >> I had to remove test decorators that employ the more advanced throttling
> >> versions of the protocol handlers instead of simpler buffering ones. I
> >> am currently unable to test them properly as do not have a multicore box
> >> at my disposal. Those protocol handlers seem to work well with both Java
> >> 1.5 and Java 1.4 on my old Pentium M box.
> >>
> >> I guess I have to tell my wife she won't be able to check her emails and
> >> browse her favorite news sites unless we upgrade our PC. Ehhh.
> >>
> >>> What's a bit odd though is that it says the NIOSSL tests succeed, even
> >>> though I'm running with Java 1.4:
> >>>
> >> That's OK. NIOSSL tests were not run. Otherwise it would have said
> >> something like that
> >>
> >> [INFO] HttpCore (NIO SSL extensions module) .................. SUCCESS
> >> [5.480s]
> >
> > Rather confusing - it should say NOT RUN or similar.
> >
> > And why does it take 8 seconds to do nothing?
> >
>
> All right. Let me try it again. Please see the output below once again.
> There is no mentioning of NIO SSL anywhere (not to be confused with NIO
> extensions).
>

Sorry, you were right first time.

Must clean those glasses more often ;-)

> >>> [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
> >>>
>
> No mentioning of NIO SSL extensions. They were _not_ run. They were
> _excluded_ because of the JDK level (1.4).
>
> Oleg
>
> >>> Sebb
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> >>> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Thu, 2007-10-04 at 00:21 +0100, sebb wrote:
> On 03/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> > On Wed, 2007-10-03 at 18:26 +0100, sebb wrote:
> 
> [...]
> 
> > Would it be a big deal for you to pull out the latest snapshot off the
> > SVN trunk and re-run the tests?
> 
> I've tried with the current trunk, and it seems OK with 1.4 and 1.5 and 1.6
> 
> The only minor problem is the following:
> 
> [WARNING] Unable to load parent project from repository:
> 
> which I guess can be ignored.
> 
> [...]
> 

Many thanks, Sebastian. 

Folks

Are there any objections to my proceeding with the release? 

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by sebb <se...@gmail.com>.
On 03/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> On Wed, 2007-10-03 at 18:26 +0100, sebb wrote:

[...]

> Would it be a big deal for you to pull out the latest snapshot off the
> SVN trunk and re-run the tests?

I've tried with the current trunk, and it seems OK with 1.4 and 1.5 and 1.6

The only minor problem is the following:

[WARNING] Unable to load parent project from repository:

which I guess can be ignored.

[...]

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by Oleg Kalnichevski <ol...@apache.org>.
sebb wrote:
> On 03/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
>> On Wed, 2007-10-03 at 18:26 +0100, sebb wrote:
>>> Tried another build, having deleted the target directories:
>>>
>>> -------------------------------------------------------------------------------
>>> 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.
>>>
>> Sebastian,
>>
>> Would it be a big deal for you to pull out the latest snapshot off the
>> SVN trunk and re-run the tests?
> 
> OK, I'll try that later.
> 
>> I had to remove test decorators that employ the more advanced throttling
>> versions of the protocol handlers instead of simpler buffering ones. I
>> am currently unable to test them properly as do not have a multicore box
>> at my disposal. Those protocol handlers seem to work well with both Java
>> 1.5 and Java 1.4 on my old Pentium M box.
>>
>> I guess I have to tell my wife she won't be able to check her emails and
>> browse her favorite news sites unless we upgrade our PC. Ehhh.
>>
>>> What's a bit odd though is that it says the NIOSSL tests succeed, even
>>> though I'm running with Java 1.4:
>>>
>> That's OK. NIOSSL tests were not run. Otherwise it would have said
>> something like that
>>
>> [INFO] HttpCore (NIO SSL extensions module) .................. SUCCESS
>> [5.480s]
> 
> Rather confusing - it should say NOT RUN or similar.
> 
> And why does it take 8 seconds to do nothing?
> 

All right. Let me try it again. Please see the output below once again. 
There is no mentioning of NIO SSL anywhere (not to be confused with NIO 
extensions).


>>> [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
>>>

No mentioning of NIO SSL extensions. They were _not_ run. They were 
_excluded_ because of the JDK level (1.4).

Oleg

>>> Sebb
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by sebb <se...@gmail.com>.
On 03/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> On Wed, 2007-10-03 at 18:26 +0100, sebb wrote:
> > Tried another build, having deleted the target directories:
> >
>
> > -------------------------------------------------------------------------------
> > 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.
> >
>
> Sebastian,
>
> Would it be a big deal for you to pull out the latest snapshot off the
> SVN trunk and re-run the tests?

OK, I'll try that later.

> I had to remove test decorators that employ the more advanced throttling
> versions of the protocol handlers instead of simpler buffering ones. I
> am currently unable to test them properly as do not have a multicore box
> at my disposal. Those protocol handlers seem to work well with both Java
> 1.5 and Java 1.4 on my old Pentium M box.
>
> I guess I have to tell my wife she won't be able to check her emails and
> browse her favorite news sites unless we upgrade our PC. Ehhh.
>
> > What's a bit odd though is that it says the NIOSSL tests succeed, even
> > though I'm running with Java 1.4:
> >
>
> That's OK. NIOSSL tests were not run. Otherwise it would have said
> something like that
>
> [INFO] HttpCore (NIO SSL extensions module) .................. SUCCESS
> [5.480s]

Rather confusing - it should say NOT RUN or similar.

And why does it take 8 seconds to do nothing?

> Oleg
>
> > [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: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Wed, 2007-10-03 at 18:26 +0100, sebb wrote:
> Tried another build, having deleted the target directories:
> 

> -------------------------------------------------------------------------------
> 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.
> 

Sebastian,

Would it be a big deal for you to pull out the latest snapshot off the
SVN trunk and re-run the tests? 

I had to remove test decorators that employ the more advanced throttling
versions of the protocol handlers instead of simpler buffering ones. I
am currently unable to test them properly as do not have a multicore box
at my disposal. Those protocol handlers seem to work well with both Java
1.5 and Java 1.4 on my old Pentium M box.

I guess I have to tell my wife she won't be able to check her emails and
browse her favorite news sites unless we upgrade our PC. Ehhh.

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

That's OK. NIOSSL tests were not run. Otherwise it would have said
something like that

[INFO] HttpCore (NIO SSL extensions module) .................. SUCCESS
[5.480s] 

Oleg

> [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: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by sebb <se...@gmail.com>.
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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by sebb <se...@gmail.com>.
On 03/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> On Wed, 2007-10-03 at 14:15 +0100, sebb wrote:
> > The site updates are good.
> >
> > mvn package works for me on 1.4, correctly skipping the 1.5 stuff.
> >
> > However, mvn test causes an error on 1.4:
> >
> > -------------------------------------------------------
> >  T E S T S
> > -------------------------------------------------------
> > Running org.apache.http.nio.TestAll
> > Tests run: 108, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 17.875 sec <<<
> >  FAILURE!
> >
> > Results :
> > Tests run: 108, Failures: 1, Errors: 0, Skipped: 0
> >
> > I ran again with mvn test -e, and got the following:
> >
> > org.apache.maven.BuildFailureException: There are test failures.
> >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
> >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> >         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:324)
> >         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > Caused by: org.apache.maven.plugin.MojoFailureException: There are
> > test failures.
> >         at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:403)
> >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> >         ... 16 more
> >
> > Not sure that helps much ...
>
>
> Not really. Is this reproducible?

Well, it happened with mvt test and again with mvn test -e.

> Could you please check the content
> module-nio/target/surefire-reports/org.apache.http.nio.TestAll.txt?

Of course now it's not happening ... but I tried yet again and got:

-------------------------------------------------------------------------------
Test set: org.apache.http.nio.TestAll
-------------------------------------------------------------------------------
Tests run: 108, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
17.672 sec <<< FAILURE!
testSimpleHttpHeads(org.apache.http.nio.protocol.TestNIOHttp)  Time
elapsed: 10.063 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<60> but was:<71>
	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)



> > This is on WinXP/SP2 (dual core) with
> >
> > java version "1.4.2_15"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_15-b02)
> > Java HotSpot(TM) Client VM (build 1.4.2_15-b02, mixed mode)
> >
> >
> > mvn package is fine on Java 1.5
> > java version "1.5.0_12"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
> > Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)
> >
> > mvn test on 1.5 generates a stack trace (but is not counted as an error):
> >
> > java.nio.channels.AsynchronousCloseException
> >         at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterr
> > uptibleChannel.java:185)
> >         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
> >         at org.apache.http.impl.nio.reactor.SessionInputBufferImpl.fill(SessionI
> > nputBufferImpl.java:84)
> >         at org.apache.http.impl.nio.codecs.AbstractMessageParser.fillBuffer(Abst
> > ractMessageParser.java:97)
> >         at org.apache.http.impl.nio.DefaultNHttpServerConnection.con[INFO] sumeInput(De
> > faultNHttpServerConnection.java:110)
> >         at org.apache.http.impl.nio.DefaultServerIOEventDispatch.inputReady(Defa
> > ultServerIOEventDispatch.java:94)
> >         at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor
> > .java:94)
> >         at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(Abstr
> > actIOReactor.java:172)
> >         at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(Abst
> > ractIOReactor.java:157)
> >         at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIO
> > Reactor.java:128)
> >         at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.
> > java:69)
> >         at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.
> > run(AbstractMultiworkerIOReactor.java:281)
> >         at java.lang.Thread.run(Thread.java:595)
> > Tests run: 108, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.281 sec
> >
> > Results :
> > Tests run: 108, Failures: 0, Errors: 0, Skipped: 0
> >
> > If you want me to run more tests,  just let me know.
> >
>
>
> This is sometimes happens, especially on multicore boxes under load,
> when JUnit force-shuts down the test HTTP server before it manages to
> shut itself down gracefully.

OK.

> > BTW, mvn seems to rebuild everything each time.
> > Not sure if that is a feature of Maven, or a setting that can be changed.
> >
>
> Hhmm. All seems OK here
>
> ----------------------------------------------------------------------------
> [INFO] Building HttpCore (NIO extensions module)
> [INFO]    task-segment: [test]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
>
>
> Are you sure you are not running 'mvn clean test' or some such?

No - just mvn package or mvn test.

Of course that now seems to work as well ... weird.

> Oleg
>
>
> > S///
> > On 03/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> > > On Mon, 2007-10-01 at 17:19 +0100, sebb wrote:
> > > > On 01/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> > >
> > > ...
> > >
> > > > It would be nice if the Maven script could give a better error message
> > > > for that, rather than the rather cryptic:
> > > >
> > > > httpcomponents-core-4.0-alpha6-SNAPSHOT\module-nio\src\test\
> > > > java\org\apache\http\impl\nio\codecs\TestLengthDelimitedDecoder.java:[93,12] can
> > > > not resolve symbol
> > > > symbol  : method read (java.nio.CharBuffer)
> > > > location: class java.io.InputStreamReader
> > > >
> > > > I don't know if this is possible in Maven, however.
> > > >
> > > > If not, a note in the text file would be useful - also how to
> > > > build/test the individual components in case someone does not want
> > > > them all.
> > > >
> > >
> > > Folks,
> > >
> > > Please find updated packages and the web site below
> > >
> > > Release notes:
> > > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt
> > >
> > > Packages:
> > > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/
> > >
> > > Web site:
> > > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/
> > >
> > > I believe I have addressed most of (if not all) concerns and
> > > suggestions. Maven now excludes Java 1.5  dependent modules when
> > > executed on an older JDK and shows a warning message when building
> > > packages.
> > >
> > > BUILDING.txt is now included with the src assembly. I am not much of a
> > > writer so do not expect a 'War and Peace' kind of things
> > >
> > > http://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/BUILDING.txt
> > >
> > > Oleg
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Wed, 2007-10-03 at 14:15 +0100, sebb wrote:
> The site updates are good.
> 
> mvn package works for me on 1.4, correctly skipping the 1.5 stuff.
> 
> However, mvn test causes an error on 1.4:
> 
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.http.nio.TestAll
> Tests run: 108, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 17.875 sec <<<
>  FAILURE!
> 
> Results :
> Tests run: 108, Failures: 1, Errors: 0, Skipped: 0
> 
> I ran again with mvn test -e, and got the following:
> 
> org.apache.maven.BuildFailureException: There are test failures.
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         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:324)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoFailureException: There are
> test failures.
>         at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:403)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>         ... 16 more
> 
> Not sure that helps much ...


Not really. Is this reproducible? Could you please check the content
module-nio/target/surefire-reports/org.apache.http.nio.TestAll.txt?


> This is on WinXP/SP2 (dual core) with
> 
> java version "1.4.2_15"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_15-b02)
> Java HotSpot(TM) Client VM (build 1.4.2_15-b02, mixed mode)
> 
> 
> mvn package is fine on Java 1.5
> java version "1.5.0_12"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
> Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)
> 
> mvn test on 1.5 generates a stack trace (but is not counted as an error):
> 
> java.nio.channels.AsynchronousCloseException
>         at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterr
> uptibleChannel.java:185)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.http.impl.nio.reactor.SessionInputBufferImpl.fill(SessionI
> nputBufferImpl.java:84)
>         at org.apache.http.impl.nio.codecs.AbstractMessageParser.fillBuffer(Abst
> ractMessageParser.java:97)
>         at org.apache.http.impl.nio.DefaultNHttpServerConnection.con[INFO] sumeInput(De
> faultNHttpServerConnection.java:110)
>         at org.apache.http.impl.nio.DefaultServerIOEventDispatch.inputReady(Defa
> ultServerIOEventDispatch.java:94)
>         at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor
> .java:94)
>         at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(Abstr
> actIOReactor.java:172)
>         at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(Abst
> ractIOReactor.java:157)
>         at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIO
> Reactor.java:128)
>         at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.
> java:69)
>         at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.
> run(AbstractMultiworkerIOReactor.java:281)
>         at java.lang.Thread.run(Thread.java:595)
> Tests run: 108, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.281 sec
> 
> Results :
> Tests run: 108, Failures: 0, Errors: 0, Skipped: 0
> 
> If you want me to run more tests,  just let me know.
> 


This is sometimes happens, especially on multicore boxes under load,
when JUnit force-shuts down the test HTTP server before it manages to
shut itself down gracefully.


> BTW, mvn seems to rebuild everything each time.
> Not sure if that is a feature of Maven, or a setting that can be changed.
> 

Hhmm. All seems OK here

----------------------------------------------------------------------------
[INFO] Building HttpCore (NIO extensions module)
[INFO]    task-segment: [test]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date


Are you sure you are not running 'mvn clean test' or some such?

Oleg 


> S///
> On 03/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> > On Mon, 2007-10-01 at 17:19 +0100, sebb wrote:
> > > On 01/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> >
> > ...
> >
> > > It would be nice if the Maven script could give a better error message
> > > for that, rather than the rather cryptic:
> > >
> > > httpcomponents-core-4.0-alpha6-SNAPSHOT\module-nio\src\test\
> > > java\org\apache\http\impl\nio\codecs\TestLengthDelimitedDecoder.java:[93,12] can
> > > not resolve symbol
> > > symbol  : method read (java.nio.CharBuffer)
> > > location: class java.io.InputStreamReader
> > >
> > > I don't know if this is possible in Maven, however.
> > >
> > > If not, a note in the text file would be useful - also how to
> > > build/test the individual components in case someone does not want
> > > them all.
> > >
> >
> > Folks,
> >
> > Please find updated packages and the web site below
> >
> > Release notes:
> > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt
> >
> > Packages:
> > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/
> >
> > Web site:
> > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/
> >
> > I believe I have addressed most of (if not all) concerns and
> > suggestions. Maven now excludes Java 1.5  dependent modules when
> > executed on an older JDK and shows a warning message when building
> > packages.
> >
> > BUILDING.txt is now included with the src assembly. I am not much of a
> > writer so do not expect a 'War and Peace' kind of things
> >
> > http://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/BUILDING.txt
> >
> > Oleg
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by sebb <se...@gmail.com>.
The site updates are good.

mvn package works for me on 1.4, correctly skipping the 1.5 stuff.

However, mvn test causes an error on 1.4:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.http.nio.TestAll
Tests run: 108, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 17.875 sec <<<
 FAILURE!

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

I ran again with mvn test -e, and got the following:

org.apache.maven.BuildFailureException: There are test failures.
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        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:324)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are
test failures.
        at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:403)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more

Not sure that helps much ...

This is on WinXP/SP2 (dual core) with

java version "1.4.2_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_15-b02)
Java HotSpot(TM) Client VM (build 1.4.2_15-b02, mixed mode)


mvn package is fine on Java 1.5
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)

mvn test on 1.5 generates a stack trace (but is not counted as an error):

java.nio.channels.AsynchronousCloseException
        at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterr
uptibleChannel.java:185)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
        at org.apache.http.impl.nio.reactor.SessionInputBufferImpl.fill(SessionI
nputBufferImpl.java:84)
        at org.apache.http.impl.nio.codecs.AbstractMessageParser.fillBuffer(Abst
ractMessageParser.java:97)
        at org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(De
faultNHttpServerConnection.java:110)
        at org.apache.http.impl.nio.DefaultServerIOEventDispatch.inputReady(Defa
ultServerIOEventDispatch.java:94)
        at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor
.java:94)
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(Abstr
actIOReactor.java:172)
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(Abst
ractIOReactor.java:157)
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIO
Reactor.java:128)
        at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.
java:69)
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.
run(AbstractMultiworkerIOReactor.java:281)
        at java.lang.Thread.run(Thread.java:595)
Tests run: 108, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.281 sec

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

If you want me to run more tests,  just let me know.

BTW, mvn seems to rebuild everything each time.
Not sure if that is a feature of Maven, or a setting that can be changed.

S///
On 03/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> On Mon, 2007-10-01 at 17:19 +0100, sebb wrote:
> > On 01/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
>
> ...
>
> > It would be nice if the Maven script could give a better error message
> > for that, rather than the rather cryptic:
> >
> > httpcomponents-core-4.0-alpha6-SNAPSHOT\module-nio\src\test\
> > java\org\apache\http\impl\nio\codecs\TestLengthDelimitedDecoder.java:[93,12] can
> > not resolve symbol
> > symbol  : method read (java.nio.CharBuffer)
> > location: class java.io.InputStreamReader
> >
> > I don't know if this is possible in Maven, however.
> >
> > If not, a note in the text file would be useful - also how to
> > build/test the individual components in case someone does not want
> > them all.
> >
>
> Folks,
>
> Please find updated packages and the web site below
>
> Release notes:
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt
>
> Packages:
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/
>
> Web site:
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/
>
> I believe I have addressed most of (if not all) concerns and
> suggestions. Maven now excludes Java 1.5  dependent modules when
> executed on an older JDK and shows a warning message when building
> packages.
>
> BUILDING.txt is now included with the src assembly. I am not much of a
> writer so do not expect a 'War and Peace' kind of things
>
> http://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/BUILDING.txt
>
> Oleg
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by Roland Weber <os...@dubioso.net>.
Oleg Kalnichevski wrote:
> Please find updated packages and the web site below
> 
> Release notes:
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt
> 
> Packages:
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/
> 
> Web site:
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/

The release notes you linked are still the old ones.
The release notes in the packages are the updated ones
I checked in this morning, so that's fine by me.

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2007-10-01 at 17:19 +0100, sebb wrote:
> On 01/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:

...

> It would be nice if the Maven script could give a better error message
> for that, rather than the rather cryptic:
> 
> httpcomponents-core-4.0-alpha6-SNAPSHOT\module-nio\src\test\
> java\org\apache\http\impl\nio\codecs\TestLengthDelimitedDecoder.java:[93,12] can
> not resolve symbol
> symbol  : method read (java.nio.CharBuffer)
> location: class java.io.InputStreamReader
> 
> I don't know if this is possible in Maven, however.
> 
> If not, a note in the text file would be useful - also how to
> build/test the individual components in case someone does not want
> them all.
> 

Folks,

Please find updated packages and the web site below

Release notes:
http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt

Packages:
http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/

Web site:
http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/

I believe I have addressed most of (if not all) concerns and
suggestions. Maven now excludes Java 1.5  dependent modules when
executed on an older JDK and shows a warning message when building
packages.

BUILDING.txt is now included with the src assembly. I am not much of a
writer so do not expect a 'War and Peace' kind of things

http://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/BUILDING.txt

Oleg




---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by sebb <se...@gmail.com>.
On 01/10/2007, Oleg Kalnichevski <ol...@apache.org> wrote:
> On Mon, 2007-10-01 at 16:18 +0100, ant elder wrote:
> > How about adding a BUILDING.txt file in the src distro saying how and what
> > you need to build (jdk 1.4 and mvn?)? I see the build.xml so assumed Ant
> > would work, but it doesn't anymore you need to build with maven right?
> >
> >    ...ant
> >
>
> Hi Anthony
>
> I think Ant build script should still work (at least it still does for
> me) but it has been effectively unmaintained for some time. I and Roland
> had a disagreement as to what purpose that script should serve, and as a
> result no one touches that script anymore. So, Maven 2.0.x is the only
> recommended and supported tool to build HttpComponents. There is nothing
> special to it, just utterly boring 'mvn package' is all that it takes to
> build the JARs. I can put together a short description of the process,
> though.

Just tried "mvn package" and that failed to build NIO-SSL because I
was using Java 1.4.

It would be nice if the Maven script could give a better error message
for that, rather than the rather cryptic:

httpcomponents-core-4.0-alpha6-SNAPSHOT\module-nio\src\test\
java\org\apache\http\impl\nio\codecs\TestLengthDelimitedDecoder.java:[93,12] can
not resolve symbol
symbol  : method read (java.nio.CharBuffer)
location: class java.io.InputStreamReader

I don't know if this is possible in Maven, however.

If not, a note in the text file would be useful - also how to
build/test the individual components in case someone does not want
them all.

> Cheers

>
> Oleg
>
>
> > On 10/1/07, Oleg Kalnichevski <ol...@apache.org> wrote:
> > >
> > > Folks,
> > >
> > > Please do find a few minutes to review the release notes and the
> > > pre-release packages for HttpCore 4.0-alpha6
> > >
> > > Release notes:
> > >
> > > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt
> > >
> > > Packages:
> > > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/
> > >
> > > Web site:
> > >
> > > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/
> > >
> > > If I hear no complaints I'll proceed with the official release procedure
> > > in a few days.
> > >
> > > I also would like to urge all upstream projects dependent on HttpCore to
> > > use this opportunity to test their products against the latest build and
> > > report regressions if found.
> > >
> > > Oleg
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > httpcomponents-dev-help@jakarta.apache.org
> > >
> > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2007-10-01 at 16:18 +0100, ant elder wrote:
> How about adding a BUILDING.txt file in the src distro saying how and what
> you need to build (jdk 1.4 and mvn?)? I see the build.xml so assumed Ant
> would work, but it doesn't anymore you need to build with maven right?
> 
>    ...ant
> 

Hi Anthony

I think Ant build script should still work (at least it still does for
me) but it has been effectively unmaintained for some time. I and Roland
had a disagreement as to what purpose that script should serve, and as a
result no one touches that script anymore. So, Maven 2.0.x is the only
recommended and supported tool to build HttpComponents. There is nothing
special to it, just utterly boring 'mvn package' is all that it takes to
build the JARs. I can put together a short description of the process,
though.

Cheers

Oleg 


> On 10/1/07, Oleg Kalnichevski <ol...@apache.org> wrote:
> >
> > Folks,
> >
> > Please do find a few minutes to review the release notes and the
> > pre-release packages for HttpCore 4.0-alpha6
> >
> > Release notes:
> >
> > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt
> >
> > Packages:
> > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/
> >
> > Web site:
> >
> > http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/
> >
> > If I hear no complaints I'll proceed with the official release procedure
> > in a few days.
> >
> > I also would like to urge all upstream projects dependent on HttpCore to
> > use this opportunity to test their products against the latest build and
> > report regressions if found.
> >
> > Oleg
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > httpcomponents-dev-help@jakarta.apache.org
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Re: [HttpCore] HttpComponents Core 4.0-alpha6 pre-release packages

Posted by ant elder <an...@gmail.com>.
How about adding a BUILDING.txt file in the src distro saying how and what
you need to build (jdk 1.4 and mvn?)? I see the build.xml so assumed Ant
would work, but it doesn't anymore you need to build with maven right?

   ...ant

On 10/1/07, Oleg Kalnichevski <ol...@apache.org> wrote:
>
> Folks,
>
> Please do find a few minutes to review the release notes and the
> pre-release packages for HttpCore 4.0-alpha6
>
> Release notes:
>
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/RELEASE_NOTES.txt
>
> Packages:
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/packages/
>
> Web site:
>
> http://people.apache.org/~olegk/httpcore-4.0-alpha6-prerelease/site/httpcomponents-core/
>
> If I hear no complaints I'll proceed with the official release procedure
> in a few days.
>
> I also would like to urge all upstream projects dependent on HttpCore to
> use this opportunity to test their products against the latest build and
> report regressions if found.
>
> Oleg
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> httpcomponents-dev-help@jakarta.apache.org
>
>