Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Stepan Mishura

I'd suggest stop committing new code until the issue is resolved - two
security tests failed (see below)

Thanks,
Stepan.


-Original Message-
From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 03, 2006 3:19 PM
To: [EMAIL PROTECTED]
Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test



Online report :
http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/2034

Build statistics:

 State: Failed

 Previous State: Ok

 Started at: Thu, 3 Aug 2006 09:06:24 +0100

 Finished at: Thu, 3 Aug 2006 09:18:14 +0100

 Total time: 11m 50s

 Build Trigger: Schedule

 Exit code: 1

 Building machine hostname: hy1

 Operating system : Windows XP(Service Pack 2)

 Java version : 1.5.0_06(Sun Microsystems Inc.)



Changes


classlib\modules\luni\src\test\java\tests\api\java\net\InetSocketAddressTest.java


classlib\modules\luni\src\test\java\tests\api\java\net\Inet6AddressTest.java


classlib\modules\luni\src\test\java\tests\api\java\util\LocaleTest.java


classlib\modules\luni\src\test\resources\serialization\java\net\Inet6Address.golden.0.ser


classlib\modules\luni\src\test\resources\serialization\java\net\Inet6Address.golden.1.ser


classlib\modules\luni\src\main\java\java\net\InetSocketAddress.java


classlib\modules\luni\src\main\java\java\net\URLStreamHandler.java

   classlib\modules\luni\src\main\java\java\net\Inet6Address.java


classlib\modules\luni\src\main\java\org\apache\harmony\luni\internal\locale\ISO3Languages.java


classlib\modules\luni\src\main\java\org\apache\harmony\luni\internal\locale\ISO3Countries.java





Output:



Buildfile: build.xml

SNIP


[exec] [junit] Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 0 sec

[exec] [junit] TEST
org.apache.harmony.security.tests.java.security.CodeSource2Test FAILED

[exec] [junit] Tests run: 26, Failures: 1, Errors: 0, Time elapsed:
3.125 sec

[exec] [junit] TEST
org.apache.harmony.security.tests.java.security.CodeSourceTest FAILED


SNIP

Thanks,
Stepan Mishura
Intel Middleware Products Division

--
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Paulex Yang
I'm looking at it, seems it is due to my commit about HARMONY-1040 
(r428264), I'll roll back it at first, and look more inside.


Stepan Mishura wrote:

I'd suggest stop committing new code until the issue is resolved - two
security tests failed (see below)

Thanks,
Stepan.


-Original Message-
From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 03, 2006 3:19 PM
To: [EMAIL PROTECTED]
Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test



Online report :
http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/2034 



Build statistics:

 State: Failed

 Previous State: Ok

 Started at: Thu, 3 Aug 2006 09:06:24 +0100

 Finished at: Thu, 3 Aug 2006 09:18:14 +0100

 Total time: 11m 50s

 Build Trigger: Schedule

 Exit code: 1

 Building machine hostname: hy1

 Operating system : Windows XP(Service Pack 2)

 Java version : 1.5.0_06(Sun Microsystems Inc.)



Changes


classlib\modules\luni\src\test\java\tests\api\java\net\InetSocketAddressTest.java 




classlib\modules\luni\src\test\java\tests\api\java\net\Inet6AddressTest.java 




classlib\modules\luni\src\test\java\tests\api\java\util\LocaleTest.java


classlib\modules\luni\src\test\resources\serialization\java\net\Inet6Address.golden.0.ser 




classlib\modules\luni\src\test\resources\serialization\java\net\Inet6Address.golden.1.ser 




classlib\modules\luni\src\main\java\java\net\InetSocketAddress.java


classlib\modules\luni\src\main\java\java\net\URLStreamHandler.java

   classlib\modules\luni\src\main\java\java\net\Inet6Address.java


classlib\modules\luni\src\main\java\org\apache\harmony\luni\internal\locale\ISO3Languages.java 




classlib\modules\luni\src\main\java\org\apache\harmony\luni\internal\locale\ISO3Countries.java 





 



Output:

 



Buildfile: build.xml

SNIP


[exec] [junit] Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 
0 sec


[exec] [junit] TEST
org.apache.harmony.security.tests.java.security.CodeSource2Test FAILED

[exec] [junit] Tests run: 26, Failures: 1, Errors: 0, Time elapsed:
3.125 sec

[exec] [junit] TEST
org.apache.harmony.security.tests.java.security.CodeSourceTest FAILED


SNIP

Thanks,
Stepan Mishura
Intel Middleware Products Division

--
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Paulex Yang
China Software Development Lab
IBM



-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Andrew Zhang

The failure is caused by Harmony-1040.
The updated hostEquals(URL u1, URL u2) introduces a new bug:
It returns true when u1.host = null and u2.host =  while it should return
false.
Sorry for the mistake caused by my patch. I'll update a new patch to solve
this problem.

Thanks!

On 8/3/06, Paulex Yang [EMAIL PROTECTED] wrote:


I'm looking at it, seems it is due to my commit about HARMONY-1040
(r428264), I'll roll back it at first, and look more inside.

Stepan Mishura wrote:
 I'd suggest stop committing new code until the issue is resolved - two
 security tests failed (see below)

 Thanks,
 Stepan.


 -Original Message-
 From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 03, 2006 3:19 PM
 To: [EMAIL PROTECTED]
 Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test



 Online report :

http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/2034


 Build statistics:

  State: Failed

  Previous State: Ok

  Started at: Thu, 3 Aug 2006 09:06:24 +0100

  Finished at: Thu, 3 Aug 2006 09:18:14 +0100

  Total time: 11m 50s

  Build Trigger: Schedule

  Exit code: 1

  Building machine hostname: hy1

  Operating system : Windows XP(Service Pack 2)

  Java version : 1.5.0_06(Sun Microsystems Inc.)



 Changes



classlib\modules\luni\src\test\java\tests\api\java\net\InetSocketAddressTest.java




classlib\modules\luni\src\test\java\tests\api\java\net\Inet6AddressTest.java



 classlib\modules\luni\src\test\java\tests\api\java\util\LocaleTest.java



classlib\modules\luni\src\test\resources\serialization\java\net\Inet6Address.golden.0.ser




classlib\modules\luni\src\test\resources\serialization\java\net\Inet6Address.golden.1.ser



 classlib\modules\luni\src\main\java\java\net\InetSocketAddress.java


 classlib\modules\luni\src\main\java\java\net\URLStreamHandler.java


classlib\modules\luni\src\main\java\java\net\Inet6Address.java



classlib\modules\luni\src\main\java\org\apache\harmony\luni\internal\locale\ISO3Languages.java




classlib\modules\luni\src\main\java\org\apache\harmony\luni\internal\locale\ISO3Countries.java








 Output:





 Buildfile: build.xml

 SNIP


 [exec] [junit] Tests run: 6, Failures: 1, Errors: 0, Time elapsed:
 0 sec

 [exec] [junit] TEST
 org.apache.harmony.security.tests.java.security.CodeSource2Test FAILED

 [exec] [junit] Tests run: 26, Failures: 1, Errors: 0, Time elapsed:
 3.125 sec

 [exec] [junit] TEST
 org.apache.harmony.security.tests.java.security.CodeSourceTest FAILED


 SNIP

 Thanks,
 Stepan Mishura
 Intel Middleware Products Division

 --
 Terms of use : http://incubator.apache.org/harmony/mailing.html
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



--
Paulex Yang
China Software Development Lab
IBM



-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Andrew Zhang
China Software Development Lab, IBM


Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Paulex Yang

Andrew Zhang wrote:

The failure is caused by Harmony-1040.
The updated hostEquals(URL u1, URL u2) introduces a new bug:
It returns true when u1.host = null and u2.host =  while it should 
return

false.


Sorry for the mistake caused by my patch. I'll update a new patch to 
solve

this problem.
Great, thank you to find this, Andrew. And don't need to say sorry, it's 
me who takes responsibility on this and then owes the beer:-(.


--
Paulex Yang
China Software Development Lab
IBM



-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Geir Magnusson Jr


Paulex Yang wrote:
 Andrew Zhang wrote:
 The failure is caused by Harmony-1040.
 The updated hostEquals(URL u1, URL u2) introduces a new bug:
 It returns true when u1.host = null and u2.host =  while it should
 return
 false.
 
 Sorry for the mistake caused by my patch. I'll update a new patch to
 solve
 this problem.
 Great, thank you to find this, Andrew. And don't need to say sorry, it's
 me who takes responsibility on this and then owes the beer:-(.
 


Out of curiosity, did either of you run the test suite on windows before
offering the patch or committing it?  This isn't about blame or such,
but about learning about how to make a better process

There's no harm done - it was found fast, and fixed fast, so kudos to
you guys for working together on that.

geir

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Andrew Zhang

On 8/3/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote:




Paulex Yang wrote:
 Andrew Zhang wrote:
 The failure is caused by Harmony-1040.
 The updated hostEquals(URL u1, URL u2) introduces a new bug:
 It returns true when u1.host = null and u2.host =  while it should
 return
 false.

 Sorry for the mistake caused by my patch. I'll update a new patch to
 solve
 this problem.
 Great, thank you to find this, Andrew. And don't need to say sorry, it's
 me who takes responsibility on this and then owes the beer:-(.



Out of curiosity, did either of you run the test suite on windows before
offering the patch or committing it?  This isn't about blame or such,
but about learning about how to make a better process



I did run luni and nio module test on both windows and linux, but security
module fails...

It's a lesson for me. I'll pay more attention next time.




There's no harm done - it was found fast, and fixed fast, so kudos to
you guys for working together on that.

geir

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Andrew Zhang
China Software Development Lab, IBM


Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Mikhail Loenko

i've taken a look at the tests and it seems that we might reduce execution time
as we did it several months ago. There are test-champions, e.g.
according to the Junit report on my windows machine
the test org.apache.harmony.logging.tests.java.util.logging.SocketHandlerTest
takes 65 seconds out of 339 total. So a single test takes 20% of the
whole suite.

Thanks,
Mikhail


2006/8/3, Paulex Yang [EMAIL PROTECTED]:

Sorry for that...I checked in the patch in LUNI, and I ran LUNI test on
both platform(win/linux), but it caused security module fail...

But it's really hard to run all harmony tests for only several lines of
update(it lasts half hour on my T43, and I have nothing to do with it
during this), I really want to hear some good idea about this...

Geir Magnusson Jr wrote:
 Paulex Yang wrote:

 Andrew Zhang wrote:

 The failure is caused by Harmony-1040.
 The updated hostEquals(URL u1, URL u2) introduces a new bug:
 It returns true when u1.host = null and u2.host =  while it should
 return
 false.

 Sorry for the mistake caused by my patch. I'll update a new patch to
 solve
 this problem.

 Great, thank you to find this, Andrew. And don't need to say sorry, it's
 me who takes responsibility on this and then owes the beer:-(.




 Out of curiosity, did either of you run the test suite on windows before
 offering the patch or committing it?  This isn't about blame or such,
 but about learning about how to make a better process

 There's no harm done - it was found fast, and fixed fast, so kudos to
 you guys for working together on that.

 geir

 -
 Terms of use : http://incubator.apache.org/harmony/mailing.html
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





--
Paulex Yang
China Software Development Lab
IBM


-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Mark Hindess

On 3 August 2006 at 21:36, Andrew Zhang [EMAIL PROTECTED] wrote:
 
 On 8/3/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote:
 
  Paulex Yang wrote:
   Andrew Zhang wrote:
   The failure is caused by Harmony-1040.
   The updated hostEquals(URL u1, URL u2) introduces a new bug:
   It returns true when u1.host = null and u2.host =  while it should
   return
   false.
  
   Sorry for the mistake caused by my patch. I'll update a new patch to
   solve this problem.

Ideally we should also add a regression test to luni to catch this 
problem.  The fact that the problem wasn't caught means the current
luni don't have sufficient coverage so adding a test to luni would
help improve this.

I think we should always try to do this when a change in a module
passes that modules tests but fails another modules tests (as long
as it is reasonably practical to do so).

Regards,
 Mark.

   Great, thank you to find this, Andrew. And don't need to say sorry, it's
   me who takes responsibility on this and then owes the beer:-(.
 
  Out of curiosity, did either of you run the test suite on windows before
  offering the patch or committing it?  This isn't about blame or such,
  but about learning about how to make a better process
 
 
 I did run luni and nio module test on both windows and linux, but security
 module fails...
 
 It's a lesson for me. I'll pay more attention next time.
 
 
 
  There's no harm done - it was found fast, and fixed fast, so kudos to
  you guys for working together on that.
 
  geir


-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Geir Magnusson Jr


Mark Hindess wrote:
 On 3 August 2006 at 21:36, Andrew Zhang [EMAIL PROTECTED] wrote:
 On 8/3/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote:
 Paulex Yang wrote:
 Andrew Zhang wrote:
 The failure is caused by Harmony-1040.
 The updated hostEquals(URL u1, URL u2) introduces a new bug:
 It returns true when u1.host = null and u2.host =  while it should
 return
 false.
 Sorry for the mistake caused by my patch. I'll update a new patch to
 solve this problem.
 
 Ideally we should also add a regression test to luni to catch this 
 problem.  The fact that the problem wasn't caught means the current
 luni don't have sufficient coverage so adding a test to luni would
 help improve this.

Whatever happened to module + 1 dependency level for testing?

 
 I think we should always try to do this when a change in a module
 passes that modules tests but fails another modules tests (as long
 as it is reasonably practical to do so).
 
 Regards,
  Mark.
 
 Great, thank you to find this, Andrew. And don't need to say sorry, it's
 me who takes responsibility on this and then owes the beer:-(.
 Out of curiosity, did either of you run the test suite on windows before
 offering the patch or committing it?  This isn't about blame or such,
 but about learning about how to make a better process

 I did run luni and nio module test on both windows and linux, but security
 module fails...

 It's a lesson for me. I'll pay more attention next time.



 There's no harm done - it was found fast, and fixed fast, so kudos to
 you guys for working together on that.

 geir
 
 
 -
 Terms of use : http://incubator.apache.org/harmony/mailing.html
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Paulex Yang

Mark Hindess wrote:

On 3 August 2006 at 21:36, Andrew Zhang [EMAIL PROTECTED] wrote:
  

On 8/3/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote:


Paulex Yang wrote:
  

Andrew Zhang wrote:


The failure is caused by Harmony-1040.
The updated hostEquals(URL u1, URL u2) introduces a new bug:
It returns true when u1.host = null and u2.host =  while it should
return
false.
  
Sorry for the mistake caused by my patch. I'll update a new patch to

solve this problem.
  


Ideally we should also add a regression test to luni to catch this 
problem.  The fact that the problem wasn't caught means the current

luni don't have sufficient coverage so adding a test to luni would
help improve this.

I think we should always try to do this when a change in a module
passes that modules tests but fails another modules tests (as long
as it is reasonably practical to do so).
  

Agree, I expect Andrew will include this in his new patch:).

The problem more serious is how we prevent these things before commit.

Regards,
 Mark.

  

Great, thank you to find this, Andrew. And don't need to say sorry, it's
me who takes responsibility on this and then owes the beer:-(.


Out of curiosity, did either of you run the test suite on windows before
offering the patch or committing it?  This isn't about blame or such,
but about learning about how to make a better process
  

I did run luni and nio module test on both windows and linux, but security
module fails...

It's a lesson for me. I'll pay more attention next time.





There's no harm done - it was found fast, and fixed fast, so kudos to
you guys for working together on that.

geir
  



-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



--
Paulex Yang
China Software Development Lab
IBM


-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-08-03 Thread Stepan Mishura

On 8/3/06, Paulex Yang  wrote:


Mark Hindess wrote:
 On 3 August 2006 at 21:36, Andrew Zhang [EMAIL PROTECTED]
wrote:

 On 8/3/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote:

 Paulex Yang wrote:

 Andrew Zhang wrote:

 The failure is caused by Harmony-1040.
 The updated hostEquals(URL u1, URL u2) introduces a new bug:
 It returns true when u1.host = null and u2.host =  while it should
 return
 false.

 Sorry for the mistake caused by my patch. I'll update a new patch to
 solve this problem.


 Ideally we should also add a regression test to luni to catch this
 problem.  The fact that the problem wasn't caught means the current
 luni don't have sufficient coverage so adding a test to luni would
 help improve this.

 I think we should always try to do this when a change in a module
 passes that modules tests but fails another modules tests (as long
 as it is reasonably practical to do so).

Agree, I expect Andrew will include this in his new patch:).

The problem more serious is how we prevent these things before commit.



IMHO if a patch fixes 'linu' module it would be better to run all tests.

Thanks,
Stepan.


Regards,
  Mark.


 Great, thank you to find this, Andrew. And don't need to say sorry,
it's
 me who takes responsibility on this and then owes the beer:-(.

 Out of curiosity, did either of you run the test suite on windows
before
 offering the patch or committing it?  This isn't about blame or
such,
 but about learning about how to make a better process

 I did run luni and nio module test on both windows and linux, but
security
 module fails...

 It's a lesson for me. I'll pay more attention next time.




 There's no harm done - it was found fast, and fixed fast, so kudos to
 you guys for working together on that.

 geir







--
Thanks,
Stepan Mishura
Intel Middleware Products Division

--
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-26 Thread Tim Ellison

The failure here was:

localhost/127.0.0.1:2657 - Connection refused

java.net.ConnectException: localhost/127.0.0.1:2657 - Connection
refused at 
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:238)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:587)
at java.net.Socket.connect(Socket.java:980) at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getHTTPConnection(HttpURLConnection.java:605)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:589)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:935)
at 
org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testGetOutputStream(HttpURLConnectionTest.java:168)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)


On 26/07/06, Nathan Beyer [EMAIL PROTECTED] wrote:

Can anyone recreate this failure? I can't.

[exec] [junit] TEST
org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTes
t FAILED

Is there any way we can get the JUnit results for these builds? I can never
recreate these failures on my machine and I don't have anywhere to start
debugging. I don't even know which test method failed.

-Nathan

 -Original Message-
 From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 26, 2006 12:19 AM
 To: [EMAIL PROTECTED]
 Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

 Online report :
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target
 /ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1948
 Build statistics:
   State: Failed
   Previous State: Ok
   Started at: Wed, 26 Jul 2006 06:06:48 +0100
   Finished at: Wed, 26 Jul 2006 06:18:37 +0100
   Total time: 11m 48s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP(Service Pack 2)
   Java version : 1.5.0_06(Sun Microsystems Inc.)

 Changes

 classlib\modules\logging\src\main\java\java\util\logging\LogManager.java



-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-25 Thread Nathan Beyer
Can anyone recreate this failure? I can't.

[exec] [junit] TEST
org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTes
t FAILED

Is there any way we can get the JUnit results for these builds? I can never
recreate these failures on my machine and I don't have anywhere to start
debugging. I don't even know which test method failed.

-Nathan

 -Original Message-
 From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 26, 2006 12:19 AM
 To: [EMAIL PROTECTED]
 Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test
 
 Online report :
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target
 /ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1948
 Build statistics:
   State: Failed
   Previous State: Ok
   Started at: Wed, 26 Jul 2006 06:06:48 +0100
   Finished at: Wed, 26 Jul 2006 06:18:37 +0100
   Total time: 11m 48s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP(Service Pack 2)
   Java version : 1.5.0_06(Sun Microsystems Inc.)
 
 Changes
 
 classlib\modules\logging\src\main\java\java\util\logging\LogManager.java



-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-24 Thread Ivanov, Alexey A


-Original Message-
From: Paulex Yang [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 20, 2006 4:17 PM
To: harmony-dev@incubator.apache.org
Subject: Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

Ivanov, Alexey A wrote:
 Hi all.


 BTW, my default locale is Russian


 That's the reason. DecimalFormatTest is locale-dependent, but the
test
 logic doesn't take it into account. In Russian locale, comma is used
as
 decimal separator but not dot. And it is the reason why some tests
fail.

 I see two ways to resolve the problem:
 1. Make tests locale-independent by explicitly specifying
 DecimalFormatSymbols.
 2. Fetch these symbols from the DecimalFormat object, and modify the
 expected values using these data.

3. Specify a locale to the DecimalFormat in the test, should be similar
with option 1, actually I suspect they are both necessary, because
either locale setting or DecimalFormatSymbols setting should be part of
DecimalFormat logic.

This option is similar to the first one. And this option is not worth
because any user may change their preferences as opposed to the default
values. For example, I can change decimal separator used in US or UK
locale to comma like in Russian. After that change the tests mentioned
below will fail, the reason being the same as they fail now when run in
Russian locale.

Since it is logic that we want to test, setting DecimalFormatSymbols
explicitly is the right way to do it. This way tests will not depend on
locale data (which might be different from the default values).


I tried to fix DecimalFormatTest using this approach and faced with bug
in DecimalFormat implementation. I filed JIRA issue for that:
https://issues.apache.org/jira/browse/HARMONY-965


Thanks,
Alexey.

 I prefer the first approach since this ensures we test the underlying
 logic. [1]

 I can prepare patch if nobody objects.


 As for ChoiceFormatTest failure, there seems to be a bug in
 ChoiceFormatter which can't parse negative numbers.


 [1]

http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200607.mb
 ox/[EMAIL PROTECTED]

 --
 Alexey A. Ivanov
 Intel Middleware Product Division



 -Original Message-
 From: Alexei Zakharov [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 18, 2006 4:36 PM
 To: harmony-dev@incubator.apache.org
 Subject: Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

 BTW, my default locale is Russian

 2006/7/18, Alexei Zakharov [EMAIL PROTECTED]:

 Sure,

 DecimalFormatTest:
 
 Testcase: test_parseLjava_lang_String_Ljava_text_ParsePosition took
0

 sec

 FAILED
 null
 junit.framework.AssertionFailedError
 at


org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_parseLja

 va_l

 ang_String_Ljava_text_ParsePosition(DecimalFormatTest.java:66)

 at

 java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

 Testcase: test_setDecimalSeparatorAlwaysShownZ took 0 sec
 FAILED
 Wrong set result expected: but was:...,
 junit.framework.ComparisonFailure: Wrong set result expected:
 but was:...,
 at


org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setDecim

 alSe

 paratorAlwaysShownZ(DecimalFormatTest.java:1361)

 at

 java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

 Testcase: test_setMaximumFractionDigitsI took 0 sec
 FAILED
 Wrong maximum expected:... but was:...,...
 junit.framework.ComparisonFailure: Wrong maximum expected:...
 but was:...,...
 at


org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMaxim

 umFr

 actionDigitsI(DecimalFormatTest.java:1410)

 at

 java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

 Testcase: test_setMinimumFractionDigitsI took 0,016 sec
 FAILED
 Wrong minimum expected:... but was:...,...
 junit.framework.ComparisonFailure: Wrong minimum expected:...
 but was:...,...
 at


org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMinim

 umFr

 actionDigitsI(DecimalFormatTest.java:1436)

 at

 java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

 Testcase: test_setMinimumIntegerDigitsI took 0 sec
 FAILED
 Incorrect integer expected:... but was:...,...
 junit.framework.ComparisonFailure: Incorrect integer
 expected:... but was:...,...
 at


org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMinim

 umIn

 tegerDigitsI(DecimalFormatTest.java:1452)

 at

 java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

 ChoiceFormatTest:
 ===
 Testcase: test_toPattern took 0,016 sec
 Caused an ERROR
 null
 java.lang.IllegalArgumentException
 at java.text.ChoiceFormat.applyPattern(ChoiceFormat.java:126)
 at java.text.ChoiceFormat.init(ChoiceFormat.java:65)
 at


org.apache.harmony.text.tests.java.text.ChoiceFormatTest.test_toPattern

 (Cho

 iceFormatTest.java:421)

 at

 java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

 Does this make sense?

 Regards,

 2006/7/18, Tim Ellison [EMAIL

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-20 Thread Paulex Yang

Ivanov, Alexey A wrote:

Hi all.

  

BTW, my default locale is Russian



That's the reason. DecimalFormatTest is locale-dependent, but the test
logic doesn't take it into account. In Russian locale, comma is used as
decimal separator but not dot. And it is the reason why some tests fail.

I see two ways to resolve the problem:
1. Make tests locale-independent by explicitly specifying
DecimalFormatSymbols.
2. Fetch these symbols from the DecimalFormat object, and modify the
expected values using these data.
  
3. Specify a locale to the DecimalFormat in the test, should be similar 
with option 1, actually I suspect they are both necessary, because 
either locale setting or DecimalFormatSymbols setting should be part of 
DecimalFormat logic.

I prefer the first approach since this ensures we test the underlying
logic. [1]

I can prepare patch if nobody objects.


As for ChoiceFormatTest failure, there seems to be a bug in
ChoiceFormatter which can't parse negative numbers.


[1]
http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200607.mb
ox/[EMAIL PROTECTED]

--
Alexey A. Ivanov
Intel Middleware Product Division


  

-Original Message-
From: Alexei Zakharov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 18, 2006 4:36 PM
To: harmony-dev@incubator.apache.org
Subject: Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

BTW, my default locale is Russian

2006/7/18, Alexei Zakharov [EMAIL PROTECTED]:


Sure,

DecimalFormatTest:

Testcase: test_parseLjava_lang_String_Ljava_text_ParsePosition took 0
  

sec
  

FAILED
null
junit.framework.AssertionFailedError
at
  

org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_parseLja


va_l
  

ang_String_Ljava_text_ParsePosition(DecimalFormatTest.java:66)


at
  

java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
  

Testcase: test_setDecimalSeparatorAlwaysShownZ took 0 sec
FAILED
Wrong set result expected: but was:...,
junit.framework.ComparisonFailure: Wrong set result expected:
but was:...,
at
  

org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setDecim


alSe
  

paratorAlwaysShownZ(DecimalFormatTest.java:1361)


at
  

java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
  

Testcase: test_setMaximumFractionDigitsI took 0 sec
FAILED
Wrong maximum expected:... but was:...,...
junit.framework.ComparisonFailure: Wrong maximum expected:...
but was:...,...
at
  

org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMaxim


umFr
  

actionDigitsI(DecimalFormatTest.java:1410)


at
  

java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
  

Testcase: test_setMinimumFractionDigitsI took 0,016 sec
FAILED
Wrong minimum expected:... but was:...,...
junit.framework.ComparisonFailure: Wrong minimum expected:...
but was:...,...
at
  

org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMinim


umFr
  

actionDigitsI(DecimalFormatTest.java:1436)


at
  

java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
  

Testcase: test_setMinimumIntegerDigitsI took 0 sec
FAILED
Incorrect integer expected:... but was:...,...
junit.framework.ComparisonFailure: Incorrect integer
expected:... but was:...,...
at
  

org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMinim


umIn
  

tegerDigitsI(DecimalFormatTest.java:1452)


at
  

java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
  

ChoiceFormatTest:
===
Testcase: test_toPattern took 0,016 sec
Caused an ERROR
null
java.lang.IllegalArgumentException
at java.text.ChoiceFormat.applyPattern(ChoiceFormat.java:126)
at java.text.ChoiceFormat.init(ChoiceFormat.java:65)
at
  

org.apache.harmony.text.tests.java.text.ChoiceFormatTest.test_toPattern


(Cho
  

iceFormatTest.java:421)


at
  

java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
  

Does this make sense?

Regards,

2006/7/18, Tim Ellison [EMAIL PROTECTED]:
  

Can you send details (e.g. a walkback) from the failing tests?

Thanks
Tim

Alexei Zakharov wrote:


Are you talking about HARMONY-910? I've applied it and
MessageFormatTest is ok now (thanks, Richard!) But
  

ChoiceFormatTest
  

and DecimalFormatTest continue failing.

2006/7/18, Geir Magnusson Jr [EMAIL PROTECTED]:
  

Read back to the [build] status thread I think that Richard


has
  

the


fix done...

Alexei Zakharov wrote:


Nathan,
  

SNIP

--
Alexei Zakharov,
Intel Middleware Product Division

  

--
Alexei Zakharov,
Intel Middleware Product Division

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED

RE: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-20 Thread Ivanov, Alexey A
Investigation shows that ChoiceFormatTest fails because of the same
reason as DecimalFormatTest. ChoiceFormat uses DecimalFormat to parse
template passed. And the template contains 1.0is 1+, so that
DecimalFormat stops parsing when it encounters '.' because dot is not
decimal separator in Russian locale. This is definitely not what was
expected.

--
Alexey A. Ivanov
Intel Middleware Product Division


-Original Message-
From: Ivanov, Alexey A [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 20, 2006 3:02 PM
To: harmony-dev@incubator.apache.org
Subject: RE: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

Hi all.

BTW, my default locale is Russian

That's the reason. DecimalFormatTest is locale-dependent, but the test
logic doesn't take it into account. In Russian locale, comma is used as
decimal separator but not dot. And it is the reason why some tests
fail.

I see two ways to resolve the problem:
1. Make tests locale-independent by explicitly specifying
DecimalFormatSymbols.
2. Fetch these symbols from the DecimalFormat object, and modify the
expected values using these data.

I prefer the first approach since this ensures we test the underlying
logic. [1]

I can prepare patch if nobody objects.


As for ChoiceFormatTest failure, there seems to be a bug in
ChoiceFormatter which can't parse negative numbers.


[1]
http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200607.m
b
ox/[EMAIL PROTECTED]

--
Alexey A. Ivanov
Intel Middleware Product Division


-Original Message-
From: Alexei Zakharov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 18, 2006 4:36 PM
To: harmony-dev@incubator.apache.org
Subject: Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

BTW, my default locale is Russian

2006/7/18, Alexei Zakharov [EMAIL PROTECTED]:
 Sure,

 DecimalFormatTest:
 
 Testcase: test_parseLjava_lang_String_Ljava_text_ParsePosition took
0
sec
 FAILED
 null
 junit.framework.AssertionFailedError
 at
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_parseLj
a
va_l
ang_String_Ljava_text_ParsePosition(DecimalFormatTest.java:66)
 at
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

 Testcase: test_setDecimalSeparatorAlwaysShownZ took 0 sec
 FAILED
 Wrong set result expected: but was:...,
 junit.framework.ComparisonFailure: Wrong set result expected:
 but was:...,
 at
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setDeci
m
alSe
paratorAlwaysShownZ(DecimalFormatTest.java:1361)
 at
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

 Testcase: test_setMaximumFractionDigitsI took 0 sec
 FAILED
 Wrong maximum expected:... but was:...,...
 junit.framework.ComparisonFailure: Wrong maximum expected:...
 but was:...,...
 at
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMaxi
m
umFr
actionDigitsI(DecimalFormatTest.java:1410)
 at
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

 Testcase: test_setMinimumFractionDigitsI took 0,016 sec
 FAILED
 Wrong minimum expected:... but was:...,...
 junit.framework.ComparisonFailure: Wrong minimum expected:...
 but was:...,...
 at
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMini
m
umFr
actionDigitsI(DecimalFormatTest.java:1436)
 at
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

 Testcase: test_setMinimumIntegerDigitsI took 0 sec
 FAILED
 Incorrect integer expected:... but was:...,...
 junit.framework.ComparisonFailure: Incorrect integer
 expected:... but was:...,...
 at
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMini
m
umIn
tegerDigitsI(DecimalFormatTest.java:1452)
 at
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)


 ChoiceFormatTest:
 ===
 Testcase: test_toPattern took 0,016 sec
 Caused an ERROR
 null
 java.lang.IllegalArgumentException
 at java.text.ChoiceFormat.applyPattern(ChoiceFormat.java:126)
 at java.text.ChoiceFormat.init(ChoiceFormat.java:65)
 at
org.apache.harmony.text.tests.java.text.ChoiceFormatTest.test_toPatter
n
(Cho
iceFormatTest.java:421)
 at
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)


 Does this make sense?

 Regards,

 2006/7/18, Tim Ellison [EMAIL PROTECTED]:
  Can you send details (e.g. a walkback) from the failing tests?
 
  Thanks
  Tim
 
  Alexei Zakharov wrote:
   Are you talking about HARMONY-910? I've applied it and
   MessageFormatTest is ok now (thanks, Richard!) But
ChoiceFormatTest
   and DecimalFormatTest continue failing.
  
   2006/7/18, Geir Magnusson Jr [EMAIL PROTECTED]:
   Read back to the [build] status thread I think that Richard
has
the
   fix done...
  
   Alexei Zakharov wrote:
Nathan,
 SNIP

 --
 Alexei Zakharov,
 Intel Middleware Product Division



--
Alexei Zakharov,
Intel Middleware Product Division

-
Terms of use : http://incubator.apache.org

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-18 Thread Alexei Zakharov

Nathan,

I have the following picture for text with fresh classlib, j9 and WinXP:

run.tests:
   [mkdir] Created dir: C:\Java\harmony\enhanced\classlib\trunk\build\test_repo
rt
   [junit] Running org.apache.harmony.text.tests.java.text.StringCharacterItera
torTest
   [junit] java version 1.5 (subset)
   [junit] (c) Copyright 1991, 2006 The Apache Software Foundation or its licen
sors, as applicable.

   [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,141 sec
   [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
   [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
   [junit] Tests run: 23, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
   [junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed: 0,219 sec
   [junit] Tests run: 18, Failures: 0, Errors: 1, Time elapsed: 0,266 sec
   [junit] TEST org.apache.harmony.text.tests.java.text.ChoiceFormatTest FAILED

   [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,359 sec
   [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0,032 sec
   [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,484 sec
   [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
   [junit] Tests run: 21, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
   [junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 1,438 sec
   [junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
   [junit] Tests run: 37, Failures: 5, Errors: 0, Time elapsed: 0,406 sec
   [junit] TEST org.apache.harmony.text.tests.java.text.DecimalFormatTest FAILE
D
   [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0 sec
   [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
   [junit] Tests run: 16, Failures: 2, Errors: 2, Time elapsed: 0,25 sec
   [junit] TEST org.apache.harmony.text.tests.java.text.MessageFormatTest FAILE
D
   [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,016 sec
   [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
   [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,016 sec
   [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
   [junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 0,625 sec
   [junit] Tests run: 19, Failures: 0, Errors: 0, Time elapsed: 0,187 sec
   [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 0 sec
   [junit] Tests FAILED

I assume I can be doing something wrong here. Other modules are clean
nevertheless.

Regards,

2006/7/18, Nathan Beyer [EMAIL PROTECTED]:

Has anyone been able to recreate this failure? My WinXP build is successful.

 -Original Message-
 From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 17, 2006 7:18 PM
 To: [EMAIL PROTECTED]
 Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

 Online report :
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target
 /ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1807
 Build statistics:
   State: Failed
   Previous State: Failed
   Started at: Tue, 18 Jul 2006 01:05:37 +0100
   Finished at: Tue, 18 Jul 2006 01:17:04 +0100
   Total time: 11m 26s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP(Service Pack 2)
   Java version : 1.5.0_06(Sun Microsystems Inc.)

 Changes

 classlib\modules\luni\src\test\java\tests\api\java\io\FileTest.java

 classlib\modules\luni\src\test\java\tests\api\java\util\LocaleTest.java
 classlib\modules\luni\src\main\java\java\util\Locale.java

 **
 **
 Output:
 **
 **
 Buildfile: build.xml

SNIP/


  [exec] test:

  [exec] compile.java:
  [exec]  [echo] Compiling TEXT classes

  [exec] build.jar:

  [exec] build:

  [exec] copy.test.resources:
  [exec]  [copy] Copying 2 files to C:\continuum-
 1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test

  [exec] compile.tests:
  [exec]  [echo] Compiling TEXT tests
  [exec] [javac] Compiling 26 source files to C:\continuum-
 1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test

  [exec] run.tests:
  [exec] [junit] Running
 org.apache.harmony.text.tests.java.text.StringCharacterIteratorTest
  [exec] [junit] (c) Copyright 1991, 2006 The Apache Software
 Foundation or its licensors, as applicable.
  [exec] [junit] java version 1.5 (subset)

  [exec] [junit] Tests run: 3, Failures: 0, Errors: 0, Time
 elapsed: 0.156 sec
  [exec] [junit] Tests run: 10, Failures: 0, Errors: 0, Time
 elapsed: 0.031 sec
  [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
 elapsed: 0.031 sec
  [exec] [junit] Tests run: 23, Failures: 0, Errors: 0, Time
 elapsed: 0.11 sec
  [exec] [junit] Tests run: 30, Failures: 

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-18 Thread Vladimir Ivanov

Seems, that exclude list was cleaned:
!--
exclude
name=org/apache/harmony/text/tests/java/text/CollationKeyTest.java/
exclude name=org/apache/harmony/text/tests/java/text/CollatorTest.java/
exclude
name=org/apache/harmony/text/tests/java/text/DecimalFormatTest.java/
exclude
name=org/apache/harmony/text/tests/java/text/MessageFormatTest.java/
--

thanks, Vladimir


On 7/18/06, Alexei Zakharov [EMAIL PROTECTED] wrote:


Nathan,

I have the following picture for text with fresh classlib, j9 and WinXP:

run.tests:
   [mkdir] Created dir:
C:\Java\harmony\enhanced\classlib\trunk\build\test_repo
rt
   [junit] Running
org.apache.harmony.text.tests.java.text.StringCharacterItera
torTest
   [junit] java version 1.5 (subset)
   [junit] (c) Copyright 1991, 2006 The Apache Software Foundation or its
licen
sors, as applicable.

   [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,141 sec
   [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
   [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
   [junit] Tests run: 23, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
   [junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed: 0,219 sec
   [junit] Tests run: 18, Failures: 0, Errors: 1, Time elapsed: 0,266 sec
   [junit] TEST org.apache.harmony.text.tests.java.text.ChoiceFormatTestFAILED

   [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,359 sec
   [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0,032 sec
   [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,484 sec
   [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
   [junit] Tests run: 21, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
   [junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 1,438 sec
   [junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
   [junit] Tests run: 37, Failures: 5, Errors: 0, Time elapsed: 0,406 sec
   [junit] TEST org.apache.harmony.text.tests.java.text.DecimalFormatTestFAILE
D
   [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0 sec
   [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
   [junit] Tests run: 16, Failures: 2, Errors: 2, Time elapsed: 0,25 sec
   [junit] TEST org.apache.harmony.text.tests.java.text.MessageFormatTestFAILE
D
   [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,016 sec
   [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
   [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,016 sec
   [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
   [junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 0,625 sec
   [junit] Tests run: 19, Failures: 0, Errors: 0, Time elapsed: 0,187 sec
   [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 0 sec
   [junit] Tests FAILED

I assume I can be doing something wrong here. Other modules are clean
nevertheless.

Regards,

2006/7/18, Nathan Beyer [EMAIL PROTECTED]:
 Has anyone been able to recreate this failure? My WinXP build is
successful.

  -Original Message-
  From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 17, 2006 7:18 PM
  To: [EMAIL PROTECTED]
  Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test
 
  Online report :
 
http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target
  /ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1807
  Build statistics:
State: Failed
Previous State: Failed
Started at: Tue, 18 Jul 2006 01:05:37 +0100
Finished at: Tue, 18 Jul 2006 01:17:04 +0100
Total time: 11m 26s
Build Trigger: Schedule
Exit code: 1
Building machine hostname: hy1
Operating system : Windows XP(Service Pack 2)
Java version : 1.5.0_06(Sun Microsystems Inc.)
 
  Changes
 
  classlib\modules\luni\src\test\java\tests\api\java\io\FileTest.java
 
 
classlib\modules\luni\src\test\java\tests\api\java\util\LocaleTest.java
  classlib\modules\luni\src\main\java\java\util\Locale.java
 
 
**
  **
  Output:
 
**
  **
  Buildfile: build.xml
 
 SNIP/

 
   [exec] test:
 
   [exec] compile.java:
   [exec]  [echo] Compiling TEXT classes
 
   [exec] build.jar:
 
   [exec] build:
 
   [exec] copy.test.resources:
   [exec]  [copy] Copying 2 files to C:\continuum-
 
1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test
 
   [exec] compile.tests:
   [exec]  [echo] Compiling TEXT tests
   [exec] [javac] Compiling 26 source files to C:\continuum-
 
1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test
 
   [exec] run.tests:
   [exec] [junit] Running
  org.apache.harmony.text.tests.java.text.StringCharacterIteratorTest
   [exec] [junit] (c) Copyright 1991, 2006 The Apache Software
  Foundation or its 

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-18 Thread Geir Magnusson Jr
Read back to the [build] status thread I think that Richard has the
fix done...

Alexei Zakharov wrote:
 Nathan,
 
 I have the following picture for text with fresh classlib, j9 and WinXP:
 
 run.tests:
[mkdir] Created dir:
 C:\Java\harmony\enhanced\classlib\trunk\build\test_repo
 rt
[junit] Running
 org.apache.harmony.text.tests.java.text.StringCharacterItera
 torTest
[junit] java version 1.5 (subset)
[junit] (c) Copyright 1991, 2006 The Apache Software Foundation or
 its licen
 sors, as applicable.
 
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,141 sec
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests run: 23, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
[junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed: 0,219 sec
[junit] Tests run: 18, Failures: 0, Errors: 1, Time elapsed: 0,266 sec
[junit] TEST org.apache.harmony.text.tests.java.text.ChoiceFormatTest
 FAILED
 
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,359 sec
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0,032 sec
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,484 sec
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
[junit] Tests run: 21, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
[junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 1,438 sec
[junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
[junit] Tests run: 37, Failures: 5, Errors: 0, Time elapsed: 0,406 sec
[junit] TEST
 org.apache.harmony.text.tests.java.text.DecimalFormatTest FAILE
 D
[junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests run: 16, Failures: 2, Errors: 2, Time elapsed: 0,25 sec
[junit] TEST
 org.apache.harmony.text.tests.java.text.MessageFormatTest FAILE
 D
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,016 sec
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,016 sec
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
[junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 0,625 sec
[junit] Tests run: 19, Failures: 0, Errors: 0, Time elapsed: 0,187 sec
[junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests FAILED
 
 I assume I can be doing something wrong here. Other modules are clean
 nevertheless.
 
 Regards,
 
 2006/7/18, Nathan Beyer [EMAIL PROTECTED]:
 Has anyone been able to recreate this failure? My WinXP build is
 successful.

  -Original Message-
  From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 17, 2006 7:18 PM
  To: [EMAIL PROTECTED]
  Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test
 
  Online report :
 
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target

  /ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1807
  Build statistics:
State: Failed
Previous State: Failed
Started at: Tue, 18 Jul 2006 01:05:37 +0100
Finished at: Tue, 18 Jul 2006 01:17:04 +0100
Total time: 11m 26s
Build Trigger: Schedule
Exit code: 1
Building machine hostname: hy1
Operating system : Windows XP(Service Pack 2)
Java version : 1.5.0_06(Sun Microsystems Inc.)
 
  Changes
 
  classlib\modules\luni\src\test\java\tests\api\java\io\FileTest.java
 
  classlib\modules\luni\src\test\java\tests\api\java\util\LocaleTest.java
  classlib\modules\luni\src\main\java\java\util\Locale.java
 
 
 **

  **
  Output:
 
 **

  **
  Buildfile: build.xml
 
 SNIP/

 
   [exec] test:
 
   [exec] compile.java:
   [exec]  [echo] Compiling TEXT classes
 
   [exec] build.jar:
 
   [exec] build:
 
   [exec] copy.test.resources:
   [exec]  [copy] Copying 2 files to C:\continuum-
  1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test
 
   [exec] compile.tests:
   [exec]  [echo] Compiling TEXT tests
   [exec] [javac] Compiling 26 source files to C:\continuum-
  1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test
 
   [exec] run.tests:
   [exec] [junit] Running
  org.apache.harmony.text.tests.java.text.StringCharacterIteratorTest
   [exec] [junit] (c) Copyright 1991, 2006 The Apache Software
  Foundation or its licensors, as applicable.
   [exec] [junit] java version 1.5 (subset)
 
   [exec] [junit] Tests run: 3, Failures: 0, Errors: 0, Time
  elapsed: 0.156 sec
   [exec] [junit] Tests run: 10, Failures: 0, Errors: 0, Time
  

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-18 Thread Alexei Zakharov

Yeah, but this doesn't explain why
org.apache.harmony.text.tests.java.text.ChoiceFormatTest fails. It
wasn't in the  exclude list.

The log shows the following:

===
Revision: 422501
Author: ndbeyer
Date: 23:10:14, 16 July 2006
Message:
Cleanup source and add some tests; mark failing tests

Modified : /incubator/harmony/enhanced/classlib/trunk/modules/text/build.xml
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/AttributedString.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/Bidi.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/ChoiceFormat.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/Collator.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/DateFormat.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/Format.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/MessageFormat.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/NumberFormat.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/BreakIteratorTest.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/ChoiceFormatTest.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/CollationElementIteratorTest.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/CollationKeyTest.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/CollatorTest.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DataFormatFieldTest.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/MessageFormatTest.java
Modified : 
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java
===

Any comments? Nathan?


2006/7/18, Vladimir Ivanov [EMAIL PROTECTED]:

Seems, that exclude list was cleaned:
!--
exclude
name=org/apache/harmony/text/tests/java/text/CollationKeyTest.java/
exclude name=org/apache/harmony/text/tests/java/text/CollatorTest.java/
exclude
name=org/apache/harmony/text/tests/java/text/DecimalFormatTest.java/
exclude
name=org/apache/harmony/text/tests/java/text/MessageFormatTest.java/
--

 thanks, Vladimir


On 7/18/06, Alexei Zakharov [EMAIL PROTECTED] wrote:

 Nathan,

 I have the following picture for text with fresh classlib, j9 and WinXP:

 run.tests:
[mkdir] Created dir:
 C:\Java\harmony\enhanced\classlib\trunk\build\test_repo
 rt
[junit] Running
 org.apache.harmony.text.tests.java.text.StringCharacterItera
 torTest
[junit] java version 1.5 (subset)
[junit] (c) Copyright 1991, 2006 The Apache Software Foundation or its
 licen
 sors, as applicable.

[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,141 sec
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests run: 23, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
[junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed: 0,219 sec
[junit] Tests run: 18, Failures: 0, Errors: 1, Time elapsed: 0,266 sec
[junit] TEST org.apache.harmony.text.tests.java.text.ChoiceFormatTestFAILED

[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,359 sec
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0,032 sec
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,484 sec
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
[junit] Tests run: 21, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
[junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 1,438 sec
[junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
[junit] Tests run: 37, Failures: 5, Errors: 0, Time elapsed: 0,406 sec
[junit] TEST org.apache.harmony.text.tests.java.text.DecimalFormatTestFAILE
 D
[junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests run: 16, Failures: 2, Errors: 2, Time elapsed: 0,25 sec
[junit] TEST org.apache.harmony.text.tests.java.text.MessageFormatTestFAILE
 D
[junit] Tests 

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-18 Thread Alexei Zakharov

Are you talking about HARMONY-910? I've applied it and
MessageFormatTest is ok now (thanks, Richard!) But ChoiceFormatTest
and DecimalFormatTest continue failing.

2006/7/18, Geir Magnusson Jr [EMAIL PROTECTED]:

Read back to the [build] status thread I think that Richard has the
fix done...

Alexei Zakharov wrote:
 Nathan,

 I have the following picture for text with fresh classlib, j9 and WinXP:

 run.tests:
[mkdir] Created dir:
 C:\Java\harmony\enhanced\classlib\trunk\build\test_repo
 rt
[junit] Running
 org.apache.harmony.text.tests.java.text.StringCharacterItera
 torTest
[junit] java version 1.5 (subset)
[junit] (c) Copyright 1991, 2006 The Apache Software Foundation or
 its licen
 sors, as applicable.

[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,141 sec
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests run: 23, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
[junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed: 0,219 sec
[junit] Tests run: 18, Failures: 0, Errors: 1, Time elapsed: 0,266 sec
[junit] TEST org.apache.harmony.text.tests.java.text.ChoiceFormatTest
 FAILED

[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,359 sec
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0,032 sec
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,484 sec
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,031 sec
[junit] Tests run: 21, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
[junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 1,438 sec
[junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
[junit] Tests run: 37, Failures: 5, Errors: 0, Time elapsed: 0,406 sec
[junit] TEST
 org.apache.harmony.text.tests.java.text.DecimalFormatTest FAILE
 D
[junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests run: 16, Failures: 2, Errors: 2, Time elapsed: 0,25 sec
[junit] TEST
 org.apache.harmony.text.tests.java.text.MessageFormatTest FAILE
 D
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,016 sec
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,016 sec
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
[junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 0,625 sec
[junit] Tests run: 19, Failures: 0, Errors: 0, Time elapsed: 0,187 sec
[junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Tests FAILED

 I assume I can be doing something wrong here. Other modules are clean
 nevertheless.

 Regards,

 2006/7/18, Nathan Beyer [EMAIL PROTECTED]:
 Has anyone been able to recreate this failure? My WinXP build is
 successful.

  -Original Message-
  From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 17, 2006 7:18 PM
  To: [EMAIL PROTECTED]
  Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test
 
  Online report :
 
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target

  /ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1807
  Build statistics:
State: Failed
Previous State: Failed
Started at: Tue, 18 Jul 2006 01:05:37 +0100
Finished at: Tue, 18 Jul 2006 01:17:04 +0100
Total time: 11m 26s
Build Trigger: Schedule
Exit code: 1
Building machine hostname: hy1
Operating system : Windows XP(Service Pack 2)
Java version : 1.5.0_06(Sun Microsystems Inc.)
 
  Changes
 
  classlib\modules\luni\src\test\java\tests\api\java\io\FileTest.java
 
  classlib\modules\luni\src\test\java\tests\api\java\util\LocaleTest.java
  classlib\modules\luni\src\main\java\java\util\Locale.java
 
 
 **

  **
  Output:
 
 **

  **
  Buildfile: build.xml
 
 SNIP/

 
   [exec] test:
 
   [exec] compile.java:
   [exec]  [echo] Compiling TEXT classes
 
   [exec] build.jar:
 
   [exec] build:
 
   [exec] copy.test.resources:
   [exec]  [copy] Copying 2 files to C:\continuum-
  1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test
 
   [exec] compile.tests:
   [exec]  [echo] Compiling TEXT tests
   [exec] [javac] Compiling 26 source files to C:\continuum-
  1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test
 
   [exec] run.tests:
   [exec] [junit] Running
  org.apache.harmony.text.tests.java.text.StringCharacterIteratorTest
   [exec] [junit] (c) Copyright 1991, 2006 The Apache Software
  Foundation or its licensors, as applicable.
   [exec]

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-18 Thread Tim Ellison
Can you send details (e.g. a walkback) from the failing tests?

Thanks
Tim

Alexei Zakharov wrote:
 Are you talking about HARMONY-910? I've applied it and
 MessageFormatTest is ok now (thanks, Richard!) But ChoiceFormatTest
 and DecimalFormatTest continue failing.
 
 2006/7/18, Geir Magnusson Jr [EMAIL PROTECTED]:
 Read back to the [build] status thread I think that Richard has the
 fix done...

 Alexei Zakharov wrote:
  Nathan,
 
  I have the following picture for text with fresh classlib, j9 and
 WinXP:
 
  run.tests:
 [mkdir] Created dir:
  C:\Java\harmony\enhanced\classlib\trunk\build\test_repo
  rt
 [junit] Running
  org.apache.harmony.text.tests.java.text.StringCharacterItera
  torTest
 [junit] java version 1.5 (subset)
 [junit] (c) Copyright 1991, 2006 The Apache Software Foundation or
  its licen
  sors, as applicable.
 
 [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,141
 sec
 [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed:
 0,031 sec
 [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
 [junit] Tests run: 23, Failures: 0, Errors: 0, Time elapsed:
 0,031 sec
 [junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed:
 0,219 sec
 [junit] Tests run: 18, Failures: 0, Errors: 1, Time elapsed:
 0,266 sec
 [junit] TEST
 org.apache.harmony.text.tests.java.text.ChoiceFormatTest
  FAILED
 
 [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed:
 0,359 sec
 [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0,032
 sec
 [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,484
 sec
 [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,031
 sec
 [junit] Tests run: 21, Failures: 0, Errors: 0, Time elapsed:
 0,015 sec
 [junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed:
 1,438 sec
 [junit] Tests run: 30, Failures: 0, Errors: 0, Time elapsed:
 0,015 sec
 [junit] Tests run: 37, Failures: 5, Errors: 0, Time elapsed:
 0,406 sec
 [junit] TEST
  org.apache.harmony.text.tests.java.text.DecimalFormatTest FAILE
  D
 [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0 sec
 [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
 [junit] Tests run: 16, Failures: 2, Errors: 2, Time elapsed: 0,25
 sec
 [junit] TEST
  org.apache.harmony.text.tests.java.text.MessageFormatTest FAILE
  D
 [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,016
 sec
 [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,015
 sec
 [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,016
 sec
 [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,015
 sec
 [junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed:
 0,625 sec
 [junit] Tests run: 19, Failures: 0, Errors: 0, Time elapsed:
 0,187 sec
 [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 0 sec
 [junit] Tests FAILED
 
  I assume I can be doing something wrong here. Other modules are clean
  nevertheless.
 
  Regards,
 
  2006/7/18, Nathan Beyer [EMAIL PROTECTED]:
  Has anyone been able to recreate this failure? My WinXP build is
  successful.
 
   -Original Message-
   From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
   Sent: Monday, July 17, 2006 7:18 PM
   To: [EMAIL PROTECTED]
   Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test
  
   Online report :
  
 
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target

 
   /ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1807
   Build statistics:
 State: Failed
 Previous State: Failed
 Started at: Tue, 18 Jul 2006 01:05:37 +0100
 Finished at: Tue, 18 Jul 2006 01:17:04 +0100
 Total time: 11m 26s
 Build Trigger: Schedule
 Exit code: 1
 Building machine hostname: hy1
 Operating system : Windows XP(Service Pack 2)
 Java version : 1.5.0_06(Sun Microsystems Inc.)
  
   Changes
  
   classlib\modules\luni\src\test\java\tests\api\java\io\FileTest.java
  
  
 classlib\modules\luni\src\test\java\tests\api\java\util\LocaleTest.java
  
 classlib\modules\luni\src\main\java\java\util\Locale.java
  
  
 
 **

 
   **
   Output:
  
 
 **

 
   **
   Buildfile: build.xml
  
  SNIP/
 
  
[exec] test:
  
[exec] compile.java:
[exec]  [echo] Compiling TEXT classes
  
[exec] build.jar:
  
[exec] build:
  
[exec] copy.test.resources:
[exec]  [copy] Copying 2 files to C:\continuum-
  
 1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test
  
[exec] compile.tests:
[exec]  [echo] Compiling TEXT tests
[exec] [javac] Compiling 26 source files to C:\continuum-
  
 1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test
  

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-18 Thread Alexei Zakharov

Sure,

DecimalFormatTest:

Testcase: test_parseLjava_lang_String_Ljava_text_ParsePosition took 0 sec
FAILED
null
junit.framework.AssertionFailedError
at 
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_parseLjava_lang_String_Ljava_text_ParsePosition(DecimalFormatTest.java:66)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

Testcase: test_setDecimalSeparatorAlwaysShownZ took 0 sec
FAILED
Wrong set result expected: but was:...,
junit.framework.ComparisonFailure: Wrong set result expected:
but was:...,
at 
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setDecimalSeparatorAlwaysShownZ(DecimalFormatTest.java:1361)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

Testcase: test_setMaximumFractionDigitsI took 0 sec
FAILED
Wrong maximum expected:... but was:...,...
junit.framework.ComparisonFailure: Wrong maximum expected:...
but was:...,...
at 
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMaximumFractionDigitsI(DecimalFormatTest.java:1410)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

Testcase: test_setMinimumFractionDigitsI took 0,016 sec
FAILED
Wrong minimum expected:... but was:...,...
junit.framework.ComparisonFailure: Wrong minimum expected:...
but was:...,...
at 
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMinimumFractionDigitsI(DecimalFormatTest.java:1436)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

Testcase: test_setMinimumIntegerDigitsI took 0 sec
FAILED
Incorrect integer expected:... but was:...,...
junit.framework.ComparisonFailure: Incorrect integer
expected:... but was:...,...
at 
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMinimumIntegerDigitsI(DecimalFormatTest.java:1452)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)


ChoiceFormatTest:
===
Testcase: test_toPattern took 0,016 sec
Caused an ERROR
null
java.lang.IllegalArgumentException
at java.text.ChoiceFormat.applyPattern(ChoiceFormat.java:126)
at java.text.ChoiceFormat.init(ChoiceFormat.java:65)
at 
org.apache.harmony.text.tests.java.text.ChoiceFormatTest.test_toPattern(ChoiceFormatTest.java:421)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)


Does this make sense?

Regards,

2006/7/18, Tim Ellison [EMAIL PROTECTED]:

Can you send details (e.g. a walkback) from the failing tests?

Thanks
Tim

Alexei Zakharov wrote:
 Are you talking about HARMONY-910? I've applied it and
 MessageFormatTest is ok now (thanks, Richard!) But ChoiceFormatTest
 and DecimalFormatTest continue failing.

 2006/7/18, Geir Magnusson Jr [EMAIL PROTECTED]:
 Read back to the [build] status thread I think that Richard has the
 fix done...

 Alexei Zakharov wrote:
  Nathan,

SNIP

--
Alexei Zakharov,
Intel Middleware Product Division

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-18 Thread Alexei Zakharov

BTW, my default locale is Russian

2006/7/18, Alexei Zakharov [EMAIL PROTECTED]:

Sure,

DecimalFormatTest:

Testcase: test_parseLjava_lang_String_Ljava_text_ParsePosition took 0 sec
FAILED
null
junit.framework.AssertionFailedError
at 
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_parseLjava_lang_String_Ljava_text_ParsePosition(DecimalFormatTest.java:66)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

Testcase: test_setDecimalSeparatorAlwaysShownZ took 0 sec
FAILED
Wrong set result expected: but was:...,
junit.framework.ComparisonFailure: Wrong set result expected:
but was:...,
at 
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setDecimalSeparatorAlwaysShownZ(DecimalFormatTest.java:1361)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

Testcase: test_setMaximumFractionDigitsI took 0 sec
FAILED
Wrong maximum expected:... but was:...,...
junit.framework.ComparisonFailure: Wrong maximum expected:...
but was:...,...
at 
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMaximumFractionDigitsI(DecimalFormatTest.java:1410)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

Testcase: test_setMinimumFractionDigitsI took 0,016 sec
FAILED
Wrong minimum expected:... but was:...,...
junit.framework.ComparisonFailure: Wrong minimum expected:...
but was:...,...
at 
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMinimumFractionDigitsI(DecimalFormatTest.java:1436)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

Testcase: test_setMinimumIntegerDigitsI took 0 sec
FAILED
Incorrect integer expected:... but was:...,...
junit.framework.ComparisonFailure: Incorrect integer
expected:... but was:...,...
at 
org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMinimumIntegerDigitsI(DecimalFormatTest.java:1452)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)


ChoiceFormatTest:
===
Testcase: test_toPattern took 0,016 sec
Caused an ERROR
null
java.lang.IllegalArgumentException
at java.text.ChoiceFormat.applyPattern(ChoiceFormat.java:126)
at java.text.ChoiceFormat.init(ChoiceFormat.java:65)
at 
org.apache.harmony.text.tests.java.text.ChoiceFormatTest.test_toPattern(ChoiceFormatTest.java:421)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)


Does this make sense?

Regards,

2006/7/18, Tim Ellison [EMAIL PROTECTED]:
 Can you send details (e.g. a walkback) from the failing tests?

 Thanks
 Tim

 Alexei Zakharov wrote:
  Are you talking about HARMONY-910? I've applied it and
  MessageFormatTest is ok now (thanks, Richard!) But ChoiceFormatTest
  and DecimalFormatTest continue failing.
 
  2006/7/18, Geir Magnusson Jr [EMAIL PROTECTED]:
  Read back to the [build] status thread I think that Richard has the
  fix done...
 
  Alexei Zakharov wrote:
   Nathan,
SNIP

--
Alexei Zakharov,
Intel Middleware Product Division




--
Alexei Zakharov,
Intel Middleware Product Division

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-17 Thread Nathan Beyer
Has anyone been able to recreate this failure? My WinXP build is successful.

 -Original Message-
 From: Apache Harmony Build [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 17, 2006 7:18 PM
 To: [EMAIL PROTECTED]
 Subject: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test
 
 Online report :
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target
 /ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1807
 Build statistics:
   State: Failed
   Previous State: Failed
   Started at: Tue, 18 Jul 2006 01:05:37 +0100
   Finished at: Tue, 18 Jul 2006 01:17:04 +0100
   Total time: 11m 26s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP(Service Pack 2)
   Java version : 1.5.0_06(Sun Microsystems Inc.)
 
 Changes
 
 classlib\modules\luni\src\test\java\tests\api\java\io\FileTest.java
 
 classlib\modules\luni\src\test\java\tests\api\java\util\LocaleTest.java
 classlib\modules\luni\src\main\java\java\util\Locale.java
 
 **
 **
 Output:
 **
 **
 Buildfile: build.xml
 
SNIP/

 
  [exec] test:
 
  [exec] compile.java:
  [exec]  [echo] Compiling TEXT classes
 
  [exec] build.jar:
 
  [exec] build:
 
  [exec] copy.test.resources:
  [exec]  [copy] Copying 2 files to C:\continuum-
 1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test
 
  [exec] compile.tests:
  [exec]  [echo] Compiling TEXT tests
  [exec] [javac] Compiling 26 source files to C:\continuum-
 1.0.2\apps\continuum\working-directory\6\classlib\modules\text\bin\test
 
  [exec] run.tests:
  [exec] [junit] Running
 org.apache.harmony.text.tests.java.text.StringCharacterIteratorTest
  [exec] [junit] (c) Copyright 1991, 2006 The Apache Software
 Foundation or its licensors, as applicable.
  [exec] [junit] java version 1.5 (subset)
 
  [exec] [junit] Tests run: 3, Failures: 0, Errors: 0, Time
 elapsed: 0.156 sec
  [exec] [junit] Tests run: 10, Failures: 0, Errors: 0, Time
 elapsed: 0.031 sec
  [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
 elapsed: 0.031 sec
  [exec] [junit] Tests run: 23, Failures: 0, Errors: 0, Time
 elapsed: 0.11 sec
  [exec] [junit] Tests run: 30, Failures: 0, Errors: 0, Time
 elapsed: 0.156 sec
  [exec] [junit] Tests run: 18, Failures: 0, Errors: 0, Time
 elapsed: 0.11 sec
  [exec] [junit] Tests run: 10, Failures: 0, Errors: 0, Time
 elapsed: 0.079 sec
  [exec] [junit] Tests run: 5, Failures: 0, Errors: 0, Time
 elapsed: 0.016 sec
  [exec] [junit] Tests run: 8, Failures: 0, Errors: 0, Time
 elapsed: 0.234 sec
  [exec] [junit] Tests run: 6, Failures: 0, Errors: 0, Time
 elapsed: 0.015 sec
  [exec] [junit] Tests run: 21, Failures: 0, Errors: 0, Time
 elapsed: 0 sec
  [exec] [junit] Tests run: 16, Failures: 0, Errors: 0, Time
 elapsed: 0.843 sec
  [exec] [junit] Tests run: 30, Failures: 0, Errors: 0, Time
 elapsed: 0.031 sec
  [exec] [junit] Tests run: 37, Failures: 0, Errors: 0, Time
 elapsed: 0.469 sec
  [exec] [junit] Tests run: 12, Failures: 0, Errors: 0, Time
 elapsed: 0 sec
  [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
 elapsed: 0.016 sec
  [exec] [junit] Tests run: 16, Failures: 1, Errors: 0, Time
 elapsed: 0.187 sec
  [exec] [junit] TEST
 org.apache.harmony.text.tests.java.text.MessageFormatTest FAILED
  [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
 elapsed: 0 sec
  [exec] [junit] Tests run: 6, Failures: 0, Errors: 0, Time
 elapsed: 0.016 sec
  [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
 elapsed: 0 sec
  [exec] [junit] Tests run: 8, Failures: 0, Errors: 0, Time
 elapsed: 0 sec
  [exec] [junit] Tests run: 16, Failures: 0, Errors: 0, Time
 elapsed: 0.453 sec
  [exec] [junit] Tests run: 19, Failures: 0, Errors: 0, Time
 elapsed: 0.109 sec
  [exec] [junit] Tests run: 22, Failures: 0, Errors: 0, Time
 elapsed: 0 sec
  [exec] [junit] Tests FAILED
 
  [exec] touch-failures-file:
 
  [exec] touch-errors-file:
 
SNIP/


-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-03 Thread Andrew Zhang

Hello Tim

I think I have found where the problem is.

When I ran the test with latest code, the test failed again on my machine.
How lucky am I :)

The failure trace[1] tells us it fails because of ServerSocketChannel.accept().


Message The socket is marked as nonblocking operation would block means
The socket is marked non-blocking and no connections are present to be
accepted..

On linux, the return value is EAGAIN or EWOULDBLOCK. It happens when the
native file descriptor is configured as nonblocking and no connections are
pending. Therefore, we have two ways to fix the bug in
ServerSocketChannel.accept():

1. Don't configure native file descriptor as nonblocking, and use select +
blocking accept to implement non blocking accept, which is similiar with
nonblocking read/write implementaion of SocketChannel. The fix is rather
simple, leave implConfigureBlocking as empty is ok.

2. Check the exception thrown by native code. Harmony throws BindException
with The socket is marked as nonblocking operation would block message.
We could catch BindException and check exception message to know whether the
accept is successful. Such check is ugly, but native code acts in this way.
:(  If error code is returned, the things wil be much easier. (Of course,
it's not a good idea either, since error code is platform dependent.)

Therefore, in my opnion, solution 1 sounds more reasonable.

Any suggestions? Thanks a lot!

[1]

java.net.BindException: The socket is marked as nonblocking operation would
block at
org.apache.harmony.luni.platform.OSNetworkSystem.acceptStreamSocketImpl
(Native
Method)
   at
org.apache.harmony.luni.platform.OSNetworkSystem.acceptStreamSocket(
OSNetworkSystem.java:219)
   at
org.apache.harmony.luni.net.PlainSocketImpl.accept(PlainSocketImpl.java:96)
   at java.net.ServerSocket.implAccept(ServerSocket.java:252)
   at
org.apache.harmony.nio.internal.ServerSocketChannelImpl$ServerSocketAdapter.accept
(ServerSocketChannelImpl.java:241)
   at
org.apache.harmony.nio.internal.ServerSocketChannelImpl$ServerSocketAdapter.access$0
(ServerSocketChannelImpl.java:227)
   at
org.apache.harmony.nio.internal.ServerSocketChannelImpl.accept(
ServerSocketChannelImpl.java:144)
   at
org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_READ
(SelectorTest.java:413)
   at
org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectNow(
SelectorTest.java:200)
   at
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
   at java.lang.reflect.Method.invoke(Method.java:255)
   at junit.framework.TestCase.runTest(TestCase.java:154)
   at junit.framework.TestCase.runBare(TestCase.java:127)
   at junit.framework.TestResult$1.protect(TestResult.java:106)
   at junit.framework.TestResult.runProtected(TestResult.java:124)
   at junit.framework.TestResult.run(TestResult.java:109)
   at junit.framework.TestCase.run(TestCase.java:118)
   at junit.framework.TestSuite.runTest(TestSuite.java:208)
   at junit.framework.TestSuite.run(TestSuite.java:203)
   at junit.framework.TestSuite.runTest(TestSuite.java:208)
   at junit.framework.TestSuite.run(TestSuite.java:203)
   at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:478)
   at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:344)
   at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:196)



On 6/30/06, Tim Ellison [EMAIL PROTECTED] wrote:


Latest Windows build just failed a test:


java.nio.channels.ClosedChannelException at
java.nio.channels.spi.AbstractSelectableChannel.configureBlocking(
AbstractSelectableChannel.java:208)
at

org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_READ
(SelectorTest.java:416)
at
org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectNow(
SelectorTest.java:200)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)




Apache Harmony Build wrote:
 Online report :
http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1507
 Build statistics:
   State: Failed
   Previous State: Ok
   Started at: Fri, 30 Jun 2006 09:05:23 +0100
   Finished at: Fri, 30 Jun 2006 09:14:47 +0100
   Total time: 9m 23s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP(Service Pack 2)
   Java version : 1.5.0_06(Sun Microsystems Inc.)

 Changes

classlib\modules\tools\src\main\java\org\apache\harmony\tools\javac\Compiler.java

classlib\modules\beans\src\main\java\java\beans\PropertyChangeSupport.java

classlib\modules\security\src\test\api\java\org\apache\harmony\security\tests\java\security\serialization\KeyPairTest.java


Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-03 Thread Jimmy, Jing Lv

Andrew Zhang wrote:

Hello Tim

I think I have found where the problem is.

When I ran the test with latest code, the test failed again on my machine.
How lucky am I :)



Lucky dog :)

The failure trace[1] tells us it fails because of 
ServerSocketChannel.accept().



Message The socket is marked as nonblocking operation would block means
The socket is marked non-blocking and no connections are present to be
accepted..

On linux, the return value is EAGAIN or EWOULDBLOCK. It happens when the
native file descriptor is configured as nonblocking and no connections are
pending. Therefore, we have two ways to fix the bug in
ServerSocketChannel.accept():

1. Don't configure native file descriptor as nonblocking, and use 
select +

blocking accept to implement non blocking accept, which is similiar with
nonblocking read/write implementaion of SocketChannel. The fix is rather
simple, leave implConfigureBlocking as empty is ok.

2. Check the exception thrown by native code. Harmony throws BindException
with The socket is marked as nonblocking operation would block message.
We could catch BindException and check exception message to know whether 
the

accept is successful. Such check is ugly, but native code acts in this way.
:(  If error code is returned, the things wil be much easier. (Of course,
it's not a good idea either, since error code is platform dependent.)

Therefore, in my opnion, solution 1 sounds more reasonable.

Any suggestions? Thanks a lot!



Interesting, trace into native code, it just do as you said in (1). :)
Seems it is unnecessary to set real blocking/nonblocking to OS level, so 
remove setNonblocking() in implConfigureBlocking() is correct.


What's more, I find some operations related to network are also written 
in this way, first select and then read/write/accept/connect, so I guess 
all implementation in java.nio.channels shall remove setNonblocking() in 
implConfigureBlocking().


And what you said in (2) may be correct as well. And I find 
setNonblocking() shall not be effective sometimes if it call a timeout 
connect(). The native code of connect() is rather strange, it set socket 
to nonblocking mode as first and set it to blocking mode at the end (But 
not set it back to the origin mode!), in this way it cause confusion. 
Luckily we found try...catch to catch such exception in Harmony Java 
code, that's why Harmony is still correct in logic(Maybe accept() is 
not, as it does not deal with this exception at all).
The reason why should deal this problem is the native function for both 
java.net and net-related java.nio.channels, and I guess some methods 
were written for java.net(blocking network I/O) and re-used by 
NIO(non-blocking network I/O). It works properly except for a few 
differences between java.net and NIO, these differences rise the 
complexity, luckily most of them are resloved.




[1]

java.net.BindException: The socket is marked as nonblocking operation would
block at
org.apache.harmony.luni.platform.OSNetworkSystem.acceptStreamSocketImpl
(Native
Method)
   at
org.apache.harmony.luni.platform.OSNetworkSystem.acceptStreamSocket(
OSNetworkSystem.java:219)
   at
org.apache.harmony.luni.net.PlainSocketImpl.accept(PlainSocketImpl.java:96)
   at java.net.ServerSocket.implAccept(ServerSocket.java:252)
   at
org.apache.harmony.nio.internal.ServerSocketChannelImpl$ServerSocketAdapter.accept 


(ServerSocketChannelImpl.java:241)
   at
org.apache.harmony.nio.internal.ServerSocketChannelImpl$ServerSocketAdapter.access$0 


(ServerSocketChannelImpl.java:227)
   at
org.apache.harmony.nio.internal.ServerSocketChannelImpl.accept(
ServerSocketChannelImpl.java:144)
   at
org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_READ 


(SelectorTest.java:413)
   at
org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectNow(
SelectorTest.java:200)
   at
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
   at java.lang.reflect.Method.invoke(Method.java:255)
   at junit.framework.TestCase.runTest(TestCase.java:154)
   at junit.framework.TestCase.runBare(TestCase.java:127)
   at junit.framework.TestResult$1.protect(TestResult.java:106)
   at junit.framework.TestResult.runProtected(TestResult.java:124)
   at junit.framework.TestResult.run(TestResult.java:109)
   at junit.framework.TestCase.run(TestCase.java:118)
   at junit.framework.TestSuite.runTest(TestSuite.java:208)
   at junit.framework.TestSuite.run(TestSuite.java:203)
   at junit.framework.TestSuite.runTest(TestSuite.java:208)
   at junit.framework.TestSuite.run(TestSuite.java:203)
   at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:478)
   at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:344)
   at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:196)



On 6/30/06, Tim Ellison 

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-03 Thread Tim Ellison
Geir Magnusson Jr wrote:
 do we have a list of the intermittent failures?

They are reported each time to the commit list.

Regards,
Tim

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-06-30 Thread Tim Ellison
Latest Windows build just failed a test:


java.nio.channels.ClosedChannelException at
java.nio.channels.spi.AbstractSelectableChannel.configureBlocking(AbstractSelectableChannel.java:208)
at
org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_READ(SelectorTest.java:416)
at
org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectNow(SelectorTest.java:200)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)




Apache Harmony Build wrote:
 Online report : 
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1507
 Build statistics:
   State: Failed
   Previous State: Ok
   Started at: Fri, 30 Jun 2006 09:05:23 +0100
   Finished at: Fri, 30 Jun 2006 09:14:47 +0100
   Total time: 9m 23s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP(Service Pack 2)
   Java version : 1.5.0_06(Sun Microsystems Inc.)
 
 Changes
 
 classlib\modules\tools\src\main\java\org\apache\harmony\tools\javac\Compiler.java
 
 classlib\modules\beans\src\main\java\java\beans\PropertyChangeSupport.java
 
 classlib\modules\security\src\test\api\java\org\apache\harmony\security\tests\java\security\serialization\KeyPairTest.java
 
 classlib\modules\security\src\test\resources\serialization\org\apache\harmony\security\tests\java\security\serialization\KeyPairTest.golden.ser
 classlib\modules\security\build.xml
 
 
 Output:
 
 Buildfile: build.xml
 

 
 
 

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-06-30 Thread Andrew Zhang

Hi Tim,

I took a look at the code, and suspected the failure is caused by network.
Here're my comments:

I guess there are two possible reasons that why this test failed. The first
possible one is network problem. If the failure is caused by network
problem, the failure point is strange. It failed at configureBlocking. In
fact it should fail earlier, at ssc.accept() with SocketException. After
looking at the code, I found a bug of ServerSocketChannel.accept(). So
Harmony does not throw SocketException sometimes when there are network
problems.

Another possibilty is Harmony code bug. I checked all java code, and I think
they're good.
I'll take a deep look at native code later then.

Thanks!

Best regards,


On 6/30/06, Tim Ellison [EMAIL PROTECTED] wrote:


Latest Windows build just failed a test:


java.nio.channels.ClosedChannelException at
java.nio.channels.spi.AbstractSelectableChannel.configureBlocking(
AbstractSelectableChannel.java:208)
at

org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_READ
(SelectorTest.java:416)
at
org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectNow(
SelectorTest.java:200)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)




Apache Harmony Build wrote:
 Online report :
http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1507
 Build statistics:
   State: Failed
   Previous State: Ok
   Started at: Fri, 30 Jun 2006 09:05:23 +0100
   Finished at: Fri, 30 Jun 2006 09:14:47 +0100
   Total time: 9m 23s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP(Service Pack 2)
   Java version : 1.5.0_06(Sun Microsystems Inc.)

 Changes

classlib\modules\tools\src\main\java\org\apache\harmony\tools\javac\Compiler.java

classlib\modules\beans\src\main\java\java\beans\PropertyChangeSupport.java

classlib\modules\security\src\test\api\java\org\apache\harmony\security\tests\java\security\serialization\KeyPairTest.java

classlib\modules\security\src\test\resources\serialization\org\apache\harmony\security\tests\java\security\serialization\KeyPairTest.golden.ser
 classlib\modules\security\build.xml



 Output:


 Buildfile: build.xml






--

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Andrew Zhang
China Software Development Lab, IBM


Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-06-27 Thread Tim Ellison
I've excluded the SocketChannelTest (repo rev r417387) until it is fixed.

Regards,
Tim

Andrew Zhang wrote:
 Hi Tim,
 
 Please do not appy this patch. The test hangs sometimes after applying this
 patch.
 
 I'll take a deep look at the test, and suggest exclude the test at first.
 
 Thanks!
 
 
 On 6/27/06, Andrew Zhang [EMAIL PROTECTED] wrote:

  Hi Tim,

 I took a look at the test, and found there are some problems in the test.

 The test looks like:
 while(true){
 count = read();
 if(count = 0){ // Error! For nonblocking read, returns 0 means non data
 available currently
 break;
 }
 }

 For nonblocking read, I think count = 0 is not the rigth condition to
 break out. count  0 should be used instead. What's your opnion? I'm
 not
 very sure whether my patch could fix the problem thoroughly because my
 netwrok is so good that the test never fails even with count = 0.
 Thanks!
 Here's the patch for this problem: (or shall I raise a separated JIRA ? )

 Index:
 src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java

 ===
 ---
 src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
 (revision
 417326)
 +++
 src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
 (working
 copy)
 @@ -2490,7 +2490,7 @@
  int total = 0;
  while (total  CAPACITY_64KB) {
  count = this.channel1.read(buf);
 -if (count = 0){
 +if (count  0){
  break;
  }
  total = total + count;
 @@ -2509,13 +2509,13 @@
  count = in.read(serverRBuf);
  while (total  CAPACITY_64KB + 1) {
  count = this.channel1.read(buf);
 -if (count = 0){
 +if (count  0){
  break;
  }
  total = total + count;
  }
  if (total  0) {
 -assertEquals(total, CAPACITY_64KB);
 +assertEquals(CAPACITY_64KB, total);
  for (int i = 0; i  count; i++) {
  assertEquals((byte) i, serverRBuf[i]);
  }


  On 6/27/06, Tim Ellison [EMAIL PROTECTED] wrote:
 
  Apache Harmony Build wrote:
   Online report :
 
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1435

   Build statistics:
 State: Failed
 Previous State: Ok
 Started at: Mon, 26 Jun 2006 16:09:03 +0100
 Finished at: Mon, 26 Jun 2006 16:22:52 +0100
 Total time: 13m 48s
 Build Trigger: Schedule
 Exit code: 1
 Building machine hostname: hy1
 Operating system : Windows XP(Service Pack 2)
 Java version : 1.5.0_06(Sun Microsystems Inc.)
 
  snip
 
[exec] [junit] T2 not closed
[exec] [junit] T1 not closed
[exec] [junit] Read fail in capacity64KB,
  testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData not finish.
[exec] [junit] Tests run: 80, Failures: 1, Errors: 0, Time
  elapsed: 15.491 sec
[exec] [junit] TEST
  org.apache.harmony.tests.java.nio.channels.SocketChannelTest FAILED
[exec] [junit] Tests run: 14, Failures: 0, Errors: 0, Time
  elapsed: 0.313 sec
[exec] [junit] Tests run: 3, Failures: 0, Errors: 0, Time
  elapsed: 0 sec
[exec] [junit] Tests run: 9, Failures: 0, Errors: 0, Time
  elapsed: 0.126 sec
[exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
  elapsed: 0.016 sec
[exec] [junit] Tests run: 6, Failures: 0, Errors: 0, Time
  elapsed: 0.094 sec
[exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
  elapsed: 0.016 sec
[exec] [junit] Tests FAILED
 
 
  This test seems to be frequently, if intermittently, failing.
 
  expected:7300 but was:65536
 
  junit.framework.AssertionFailedError: expected:7300 but
 was:65536 at
 
 
 org.apache.harmony.tests.java.nio.channels.SocketChannelTest.testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData(

  SocketChannelTest.java:2518)
  at
 java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
 
 
 
  Regards,
  Tim
 
  --
 
  Tim Ellison ([EMAIL PROTECTED] )
  IBM Java technology centre, UK.
 
  -
  Terms of use : http://incubator.apache.org/harmony/mailing.html
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -- 
 Andrew Zhang
 China Software Development Lab, IBM

 
 
 

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-06-27 Thread Tim Ellison
My fault -- fixing it...

Apache Harmony Build wrote:
 Online report : 
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1457
 Build statistics:
   State: Failed
   Previous State: Failed
   Started at: Tue, 27 Jun 2006 11:05:40 +0100
   Finished at: Tue, 27 Jun 2006 11:14:48 +0100
   Total time: 9m 7s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP(Service Pack 2)
   Java version : 1.5.0_06(Sun Microsystems Inc.)
 
 Changes
 
 classlib\modules\nio\src\test\java\org\apache\harmony\tests\java\nio\channels\FileLockTest.java
 
 classlib\modules\nio\src\test\java\org\apache\harmony\tests\nio\AddressUtilTest.java
 classlib\modules\nio\src\main\java\java\nio\channels\FileLock.java
 
 classlib\modules\nio\src\main\java\org\apache\harmony\nio\AddressUtil.java
 
 classlib\modules\nio\src\main\java\org\apache\harmony\nio\internal\FileChannelImpl.java
 classlib\modules\nio\src\main\native\nio\linux\libhynio.exp
 classlib\modules\nio\src\main\native\nio\linux\makefile
 classlib\modules\nio\src\main\native\nio\shared\DirectBufferUtil.c
 classlib\modules\nio\src\main\native\nio\shared\AddressUtil.c
 classlib\modules\nio\src\main\native\nio\shared\AddressUtil.h
 classlib\modules\nio\src\main\native\nio\windows\hynio.def
 classlib\modules\nio\src\main\native\nio\windows\hynio.rc
 classlib\modules\nio\src\main\native\nio\windows\makefile
 classlib\modules\nio\make\hyproperties.xml
 classlib\modules\nio\build.xml
 


-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-06-26 Thread Tim Ellison
Apache Harmony Build wrote:
 Online report : 
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1435
 Build statistics:
   State: Failed
   Previous State: Ok
   Started at: Mon, 26 Jun 2006 16:09:03 +0100
   Finished at: Mon, 26 Jun 2006 16:22:52 +0100
   Total time: 13m 48s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP(Service Pack 2)
   Java version : 1.5.0_06(Sun Microsystems Inc.)

snip

  [exec] [junit] T2 not closed
  [exec] [junit] T1 not closed
  [exec] [junit] Read fail in capacity64KB, 
 testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData not finish.
  [exec] [junit] Tests run: 80, Failures: 1, Errors: 0, Time elapsed: 
 15.491 sec
  [exec] [junit] TEST 
 org.apache.harmony.tests.java.nio.channels.SocketChannelTest FAILED
  [exec] [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 
 0.313 sec
  [exec] [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0 
 sec
  [exec] [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 
 0.126 sec
  [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 
 0.016 sec
  [exec] [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 
 0.094 sec
  [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 
 0.016 sec
  [exec] [junit] Tests FAILED


This test seems to be frequently, if intermittently, failing.

expected:7300 but was:65536

junit.framework.AssertionFailedError: expected:7300 but was:65536 at
org.apache.harmony.tests.java.nio.channels.SocketChannelTest.testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData(SocketChannelTest.java:2518)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)



Regards,
Tim

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-06-26 Thread Andrew Zhang

Hi Tim,

I took a look at the test, and found there are some problems in the test.

The test looks like:
while(true){
count = read();
if(count = 0){ // Error! For nonblocking read, returns 0 means non data
available currently
break;
}
}

For nonblocking read, I think count = 0 is not the rigth condition to
break out. count  0 should be used instead. What's your opnion? I'm not
very sure whether my patch could fix the problem thoroughly because my
netwrok is so good that the test never fails even with count = 0.
Thanks!
Here's the patch for this problem: (or shall I raise a separated JIRA ? )

Index:
src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
===
---
src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
(revision
417326)
+++
src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
(working
copy)
@@ -2490,7 +2490,7 @@
int total = 0;
while (total  CAPACITY_64KB) {
count = this.channel1.read(buf);
-if (count = 0){
+if (count  0){
break;
}
total = total + count;
@@ -2509,13 +2509,13 @@
count = in.read(serverRBuf);
while (total  CAPACITY_64KB + 1) {
count = this.channel1.read(buf);
-if (count = 0){
+if (count  0){
break;
}
total = total + count;
}
if (total  0) {
-assertEquals(total, CAPACITY_64KB);
+assertEquals(CAPACITY_64KB, total);
for (int i = 0; i  count; i++) {
assertEquals((byte) i, serverRBuf[i]);
}


On 6/27/06, Tim Ellison [EMAIL PROTECTED] wrote:


Apache Harmony Build wrote:
 Online report :
http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1435
 Build statistics:
   State: Failed
   Previous State: Ok
   Started at: Mon, 26 Jun 2006 16:09:03 +0100
   Finished at: Mon, 26 Jun 2006 16:22:52 +0100
   Total time: 13m 48s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP(Service Pack 2)
   Java version : 1.5.0_06(Sun Microsystems Inc.)

snip

  [exec] [junit] T2 not closed
  [exec] [junit] T1 not closed
  [exec] [junit] Read fail in capacity64KB,
testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData not finish.
  [exec] [junit] Tests run: 80, Failures: 1, Errors: 0, Time
elapsed: 15.491 sec
  [exec] [junit] TEST
org.apache.harmony.tests.java.nio.channels.SocketChannelTest FAILED
  [exec] [junit] Tests run: 14, Failures: 0, Errors: 0, Time
elapsed: 0.313 sec
  [exec] [junit] Tests run: 3, Failures: 0, Errors: 0, Time
elapsed: 0 sec
  [exec] [junit] Tests run: 9, Failures: 0, Errors: 0, Time
elapsed: 0.126 sec
  [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
elapsed: 0.016 sec
  [exec] [junit] Tests run: 6, Failures: 0, Errors: 0, Time
elapsed: 0.094 sec
  [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
elapsed: 0.016 sec
  [exec] [junit] Tests FAILED


This test seems to be frequently, if intermittently, failing.

expected:7300 but was:65536

junit.framework.AssertionFailedError: expected:7300 but was:65536 at

org.apache.harmony.tests.java.nio.channels.SocketChannelTest.testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData
(SocketChannelTest.java:2518)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)



Regards,
Tim

--

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Andrew Zhang
China Software Development Lab, IBM


Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-06-26 Thread Andrew Zhang

Hi Tim,

Please do not appy this patch. The test hangs sometimes after applying this
patch.

I'll take a deep look at the test, and suggest exclude the test at first.

Thanks!


On 6/27/06, Andrew Zhang [EMAIL PROTECTED] wrote:


 Hi Tim,

I took a look at the test, and found there are some problems in the test.

The test looks like:
while(true){
count = read();
if(count = 0){ // Error! For nonblocking read, returns 0 means non data
available currently
break;
}
}

For nonblocking read, I think count = 0 is not the rigth condition to
break out. count  0 should be used instead. What's your opnion? I'm not
very sure whether my patch could fix the problem thoroughly because my
netwrok is so good that the test never fails even with count = 0.
Thanks!
Here's the patch for this problem: (or shall I raise a separated JIRA ? )

Index:
src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
===
---
src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java 
(revision
417326)
+++
src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java 
(working
copy)
@@ -2490,7 +2490,7 @@
 int total = 0;
 while (total  CAPACITY_64KB) {
 count = this.channel1.read(buf);
-if (count = 0){
+if (count  0){
 break;
 }
 total = total + count;
@@ -2509,13 +2509,13 @@
 count = in.read(serverRBuf);
 while (total  CAPACITY_64KB + 1) {
 count = this.channel1.read(buf);
-if (count = 0){
+if (count  0){
 break;
 }
 total = total + count;
 }
 if (total  0) {
-assertEquals(total, CAPACITY_64KB);
+assertEquals(CAPACITY_64KB, total);
 for (int i = 0; i  count; i++) {
 assertEquals((byte) i, serverRBuf[i]);
 }


 On 6/27/06, Tim Ellison [EMAIL PROTECTED] wrote:

 Apache Harmony Build wrote:
  Online report :
 
http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1435
  Build statistics:
State: Failed
Previous State: Ok
Started at: Mon, 26 Jun 2006 16:09:03 +0100
Finished at: Mon, 26 Jun 2006 16:22:52 +0100
Total time: 13m 48s
Build Trigger: Schedule
Exit code: 1
Building machine hostname: hy1
Operating system : Windows XP(Service Pack 2)
Java version : 1.5.0_06(Sun Microsystems Inc.)

 snip

   [exec] [junit] T2 not closed
   [exec] [junit] T1 not closed
   [exec] [junit] Read fail in capacity64KB,
 testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData not finish.
   [exec] [junit] Tests run: 80, Failures: 1, Errors: 0, Time
 elapsed: 15.491 sec
   [exec] [junit] TEST
 org.apache.harmony.tests.java.nio.channels.SocketChannelTest FAILED
   [exec] [junit] Tests run: 14, Failures: 0, Errors: 0, Time
 elapsed: 0.313 sec
   [exec] [junit] Tests run: 3, Failures: 0, Errors: 0, Time
 elapsed: 0 sec
   [exec] [junit] Tests run: 9, Failures: 0, Errors: 0, Time
 elapsed: 0.126 sec
   [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
 elapsed: 0.016 sec
   [exec] [junit] Tests run: 6, Failures: 0, Errors: 0, Time
 elapsed: 0.094 sec
   [exec] [junit] Tests run: 2, Failures: 0, Errors: 0, Time
 elapsed: 0.016 sec
   [exec] [junit] Tests FAILED


 This test seems to be frequently, if intermittently, failing.

 expected:7300 but was:65536

 junit.framework.AssertionFailedError: expected:7300 but was:65536 at

 
org.apache.harmony.tests.java.nio.channels.SocketChannelTest.testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData(
 SocketChannelTest.java:2518)
 at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)



 Regards,
 Tim

 --

 Tim Ellison ([EMAIL PROTECTED] )
 IBM Java technology centre, UK.

 -
 Terms of use : http://incubator.apache.org/harmony/mailing.html
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Andrew Zhang
China Software Development Lab, IBM





--
Andrew Zhang
China Software Development Lab, IBM


Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-05-16 Thread Mark Hindess

This has broken because the subant target picks up any directory 
matching modules/* which has a make/build.xml in it.  The modules/rmi2/
make/build.xml isn't integrated so it breaks the build.

Quick fix would be to rename:

  modules/rmi2/make/build.xml

to:

  modules/rmi2/make/build.orig.xml

Tim, I guess you'll be buying the beers at JavaOne then? ;-)

Regards,
 Mark.

On 16 May 2006 at 15:05, Apache Harmony Build [EMAIL PROTECTED] wrote:
 Online report : http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/con
 tinuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/954
 Build statistics:
   State: Failed
   Previous State: Ok
   Started at: Tue, 16 May 2006 15:04:04 +0100
   Finished at: Tue, 16 May 2006 15:05:14 +0100
   Total time: 1m 9s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP
   Java version : 1.5.0(IBM Corporation)
   [SNIP - first attempt was over the -dev list 10 byte limit]




-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-05-16 Thread George Harley

Mark Hindess wrote:
This has broken because the subant target picks up any directory 
matching modules/* which has a make/build.xml in it.  The modules/rmi2/

make/build.xml isn't integrated so it breaks the build.

Quick fix would be to rename:

  modules/rmi2/make/build.xml

to:

  modules/rmi2/make/build.orig.xml
  


Hi Mark,

Done.

Best regards,
George


Tim, I guess you'll be buying the beers at JavaOne then? ;-)

Regards,
 Mark.

On 16 May 2006 at 15:05, Apache Harmony Build [EMAIL PROTECTED] wrote:
  

Online report : http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/con
tinuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/954
Build statistics:
  State: Failed
  Previous State: Ok
  Started at: Tue, 16 May 2006 15:04:04 +0100
  Finished at: Tue, 16 May 2006 15:05:14 +0100
  Total time: 1m 9s
  Build Trigger: Schedule
  Exit code: 1
  Building machine hostname: hy1
  Operating system : Windows XP
  Java version : 1.5.0(IBM Corporation)
  [SNIP - first attempt was over the -dev list 10 byte limit]






-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-05-16 Thread Tim Ellison
Arghh.  Thanks for bailing me out George -- I'd forgotten about that
subant business.

I'll seek out purveyors of sack cloth and ashes in the area :-(

Regards,
Tim

George Harley wrote:
 Mark Hindess wrote:
 This has broken because the subant target picks up any directory
 matching modules/* which has a make/build.xml in it.  The modules/rmi2/
 make/build.xml isn't integrated so it breaks the build.

 Quick fix would be to rename:

   modules/rmi2/make/build.xml

 to:

   modules/rmi2/make/build.orig.xml
   
 
 Hi Mark,
 
 Done.
 
 Best regards,
 George
 
 Tim, I guess you'll be buying the beers at JavaOne then? ;-)

 Regards,
  Mark.

 On 16 May 2006 at 15:05, Apache Harmony Build [EMAIL PROTECTED]
 wrote:
  
 Online report :
 http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/con
 tinuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/954
 Build statistics:
   State: Failed
   Previous State: Ok
   Started at: Tue, 16 May 2006 15:04:04 +0100
   Finished at: Tue, 16 May 2006 15:05:14 +0100
   Total time: 1m 9s
   Build Trigger: Schedule
   Exit code: 1
   Building machine hostname: hy1
   Operating system : Windows XP
   Java version : 1.5.0(IBM Corporation)
   [SNIP - first attempt was over the -dev list 10 byte limit]
 




 -
 Terms of use : http://incubator.apache.org/harmony/mailing.html
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   
 
 
 -
 Terms of use : http://incubator.apache.org/harmony/mailing.html
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]