You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Mark Hindess <ma...@googlemail.com> on 2006/06/02 12:01:56 UTC

Re: [testing] AWT, Swing Java2D

On 2 June 2006 at 5:32, Geir Magnusson Jr <ge...@pobox.com> wrote:
> 
> Erik Axel Nielsen wrote:
> > Hi,
> > 
> > Not sure if I should post this under testing, but here goes.
> > 
> > Next spring I will be TA/organizer of "Object oriented programming" at
> > my university. This course is followed by approximately 500 students. To
> > make this course a little more interesting for the students the last
> > assignment involves making a game. The students do this in groups making
> > ~100 different games. If anyone wants to see the games for this year go
> > to [1]. The page is in Norwegian but it should be possible to understand
> > enough to download the jars anyway. The quality varies a LOT but 207,
> > 109 and 804 are good at least.
> > 
> > Anyway, what I wanted to say is that being students, and being 500 they
> > cover a big part of Swing/Java 2D and even Java 3D. Especially they use
> > things the way it wasn't meant to be used. As long as it works it's OK
> > with them. If Harmony has managed to make an easy download that they can
> > try their game on I think it would be a nice way to check how compliant
> > Harmony is with RI.
> 
> By next spring?  I'm hoping to have this download by next *week* (ok,
> two weeks...)
> 
> We'll definitely have this for them.  I'm hoping by next spring, we'll
> be far enough along you can ask your students to just *do* their project
> on Harmony :)
> 
> > This is not testing per se, but more like a good
> > quality check I think.  With a little bit of cooperation with the
> > professors it could even be an optional part of the assignment.
> > 
> > Anyone with thoughts about this?
> 
> I think this is great, as this is what we want to do - drive people to
> test their programs on Harmony, because I think this is an excellent and
> necessary addition to the formal project testing and TCK testing
> activities...
> 
> BTW, what license are these programs under?  I'd like to have a few
> graphical demos in our JDK just like Sun does :) and it would be cool to
> use some of these if those students are interested in contributing them,
> are able to contributing them and even interested in participating here...

Well, some of them seem to contain images/sounds that might not be
original works of the game authors.

But it's an interesting thought.  We should probably wait until we have
javax.sound?  Since most of the games fail because of these missing
packages.  The others I tried failed with:

 java.lang.RuntimeException: Method is not implemented
        at java.awt.Window.createBufferStrategy(Window.java:266)

and:

  Caused by: java.lang.NoSuchMethodError: java/lang/System.nanoTime()J

However, a little further down the line perhaps we should have a
competition with the best games becoming the official demos for Harmony?

Regards,
 Mark - enjoying having an excuse to play a few games



---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Geir Magnusson Jr <ge...@pobox.com>.

Erik Axel Nielsen wrote:
> Most addictive: 109 Touch Balls

Yep - that's addictive...


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Erik Axel Nielsen <er...@stud.ntnu.no>.
>
> Well, some of them seem to contain images/sounds that might not be
> original works of the game authors.

I can guarantee you that some of the games contain images and sound  
that are not the original work of the authors. That of course will  
have to be worked out if anything is going to be included in Harmony.  
We have some experience with this. Please see below.

> But it's an interesting thought.  We should probably wait until we  
> have
> javax.sound?  Since most of the games fail because of these missing
> packages.  The others I tried failed with:
>
>  java.lang.RuntimeException: Method is not implemented
>         at java.awt.Window.createBufferStrategy(Window.java:266)

This method is used for getting access to double buffering.

> and:
>
>   Caused by: java.lang.NoSuchMethodError: java/lang/System.nanoTime()J

nanotime() is 5.0. And very useful since System.currentTimeMillis()  
is hopelessly inaccurate on some systems. Solaris being the worst  
offender!

> However, a little further down the line perhaps we should have a
> competition with the best games becoming the official demos for  
> Harmony?

Each year we have a competition where the students vote on their  
favorites. Thats how I gave you some of the best games to try out.  
Last year the national broadcaster (NRK) had one of the categories.  
The winners from that category got their games on their official web- 
site. The broadcaster were of course very concerned about games using  
art/sound they didn't have the copyright to. So one of the criteria  
were that they didn't do that. I will not promise anything since I  
have not spoken to the professors yet. But I find it likely that a  
Harmony competition could be held.


I beg my pardon to everyone that finds this terrible off-topic. But  
here is the list of winners if anyone would like to use some time to  
"work with compatibility issues" at work:
Best game:  207 Galactic Space Defender of the Universe
Cutest game: 208 Fishy Business  (very popular with the girls)
Best technical award 108 Sim Landscape
Best networking game: 802 BlockStorm
Most addictive: 109 Touch Balls
Best graphics: 804 Clean or Die v1.0 EE
Best game made for mobile (J2ME): 806 TRASKE


-- Erik Axel

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Geir Magnusson Jr <ge...@pobox.com>.

Anton Luht wrote:
> Good day,
> 
>> > I would propose to start with Geronimo.
>>
>> Someone looked at this a while ago I think[0], there is a link from:
>>
>>  http://wiki.apache.org/harmony/ClassLibrary
> 
> Isn't it time to review 'missing classes' section for Geronimo and
> other applications due to the Swing/AWT/Java2D contribution? Or we'd
> rather wait till it is put in the repository?
> 

I can't imagine that Swing/AWT/Java2D will make muhc of a diff for
geronimo, so don't wait :)

geir

> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Anton Luht <an...@gmail.com>.
Good day,

> > I would propose to start with Geronimo.
>
> Someone looked at this a while ago I think[0], there is a link from:
>
>  http://wiki.apache.org/harmony/ClassLibrary

Isn't it time to review 'missing classes' section for Geronimo and
other applications due to the Swing/AWT/Java2D contribution? Or we'd
rather wait till it is put in the repository?


-- 
Regards,
Anton Luht,
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Anton Luht <an...@gmail.com>.
Done.

http://issues.apache.org/jira/browse/HARMONY-582

Anton.

On 6/8/06, Geir Magnusson Jr <ge...@pobox.com> wrote:
> Could you post that as a JIRA entry?
>
> geir
>
> Anton Luht wrote:
> > Good day,
> >
> > I've tried to run Azureus, too, and saw all those problems (no SSL
> > provider, NotYetBoundException), too.
> >
> > I've also seen messages
> > 'VirtualChannelSelector.select() op called with null selector'
> >
> > Digging the code I've found that the problem is that Selector.open()
> > returns null (not null in RI)
> >
> > Test case is:
> >
> > public class Test {
> >    public static void main(String args[]) throws Exception {
> >      System.err.println(java.nio.channels.Selector.open() != null ?
> >         "PASSED" : "FAILED");
> >    }
> > }
> >
> > I've built RE manually using today SVN snapshot (412715) and
> > Harmony-vme-win.IA32-v3.zip as described in Harmony documentation
> >
> >
> > On 6/6/06, Mark Hindess <ma...@googlemail.com> wrote:
> >>
> >> On 5 June 2006 at 19:07, "R.J. Lorimer" <rj...@coffee-bytes.com>
> >> wrote:
> >> > For the record (I didn't gather this anywhere from this discussion),
> >> >
> >> > Azureus (while being a very non-trivial and cool Java application), is
> >> > not written in AWT/Swing, it is written with SWT (the same as Eclipse).
> >> > It's probably a good application to interact with for testing, but it's
> >> > not an AWT/Swing test.
> >>
> >> So I theory, this might run now!
> >>
> >> I tried running it but get lots of error output like:
> >>
> >> DEBUG::Tue Jun 06 08:29:39 BST
> >> 2006::com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector::accept_loop::138:
> >>
> >>
> >> VirtualBlockingServerChannelSelector$1::runSupport::85,AEThread::run::69
> >> java.nio.channels.NotYetBoundException
> >>        at
> >> org.apache.harmony.nio.internal.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:125)
> >>
> >>        at
> >> com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector.accept_loop(VirtualBlockingServerChannelSelector.java:129)
> >>
> >>        at
> >> com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector$1.runSupport(VirtualBlockingServerChannelSelector.java:85)
> >>
> >>        at org.gudy.azureus2.core3.util.AEThread.run(AEThread.java:69)
> >>
> >> Definitely seems like a good thing to get working - it certainly
> >> exercises quite a bit of the networking code.
> >>
> >> Regards,
> >>  Mark.
> >>
> >> > Thorbjørn Ravn Andersen wrote:
> >> > > Anton Luht skrev  den 05-06-2006 19:21:
> >> > >> (http://sourceforge.net/top/topalltime.php?type=downloads) and found
> >> > >> at least one project that  was never mentioned in this list: Azureus
> >> > >> (a BitTorent client). It has 118,5 millions of downloads and scores
> >> > >> 8,700,000 in Google search.
> >> > >
> >> > > I second that.  Just downloaded the latest, and it is defintiively a
> >> > > non-trivial application, which also knows how to open holes in uPnP
> >> > > firewalls etc, has custom look-and-feel and very evidently is
> >> > > multithreaded.
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> Terms of use : http://incubator.apache.org/harmony/mailing.html
> >> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> >> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> >>
> >>
> >
> >
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


-- 
Regards,
Anton Luht,
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Geir Magnusson Jr <ge...@pobox.com>.
Could you post that as a JIRA entry?

geir

Anton Luht wrote:
> Good day,
> 
> I've tried to run Azureus, too, and saw all those problems (no SSL
> provider, NotYetBoundException), too.
> 
> I've also seen messages
> 'VirtualChannelSelector.select() op called with null selector'
> 
> Digging the code I've found that the problem is that Selector.open()
> returns null (not null in RI)
> 
> Test case is:
> 
> public class Test {
>    public static void main(String args[]) throws Exception {
>      System.err.println(java.nio.channels.Selector.open() != null ?
>         "PASSED" : "FAILED");
>    }
> }
> 
> I've built RE manually using today SVN snapshot (412715) and
> Harmony-vme-win.IA32-v3.zip as described in Harmony documentation
> 
> 
> On 6/6/06, Mark Hindess <ma...@googlemail.com> wrote:
>>
>> On 5 June 2006 at 19:07, "R.J. Lorimer" <rj...@coffee-bytes.com>
>> wrote:
>> > For the record (I didn't gather this anywhere from this discussion),
>> >
>> > Azureus (while being a very non-trivial and cool Java application), is
>> > not written in AWT/Swing, it is written with SWT (the same as Eclipse).
>> > It's probably a good application to interact with for testing, but it's
>> > not an AWT/Swing test.
>>
>> So I theory, this might run now!
>>
>> I tried running it but get lots of error output like:
>>
>> DEBUG::Tue Jun 06 08:29:39 BST
>> 2006::com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector::accept_loop::138:
>>
>>   
>> VirtualBlockingServerChannelSelector$1::runSupport::85,AEThread::run::69
>> java.nio.channels.NotYetBoundException
>>        at
>> org.apache.harmony.nio.internal.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:125)
>>
>>        at
>> com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector.accept_loop(VirtualBlockingServerChannelSelector.java:129)
>>
>>        at
>> com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector$1.runSupport(VirtualBlockingServerChannelSelector.java:85)
>>
>>        at org.gudy.azureus2.core3.util.AEThread.run(AEThread.java:69)
>>
>> Definitely seems like a good thing to get working - it certainly
>> exercises quite a bit of the networking code.
>>
>> Regards,
>>  Mark.
>>
>> > Thorbjørn Ravn Andersen wrote:
>> > > Anton Luht skrev  den 05-06-2006 19:21:
>> > >> (http://sourceforge.net/top/topalltime.php?type=downloads) and found
>> > >> at least one project that  was never mentioned in this list: Azureus
>> > >> (a BitTorent client). It has 118,5 millions of downloads and scores
>> > >> 8,700,000 in Google search.
>> > >
>> > > I second that.  Just downloaded the latest, and it is defintiively a
>> > > non-trivial application, which also knows how to open holes in uPnP
>> > > firewalls etc, has custom look-and-feel and very evidently is
>> > > multithreaded.
>>
>>
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>>
> 
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Anton Luht <an...@gmail.com>.
I've tried to run Azureus on Windows XP from NAT-ed network - with RI
it worked fine,  with Harmony (classlib revision 415631) an error
appeared:

'Too many successive failures occured on port 55255, UDP - processing
abandoned. Please check firewall settings for this port to ensure that
it is enabled for receiving connections'
-- 
Regards,
Anton Luht,
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Anton Luht <an...@gmail.com>.
> Cool -- can't wait to try it.
>
> Did you have to hack any of the Azureus code assumptions to get it
> working? (i.e. BKS or HARMONY-536 JSSE provider)

No, I just ran it 'as is' - old errors are in place:

DEBUG::Tue Jun 20 18:25:02 MSD
2006::org.gudy.azureus2.core3.security.impl.SESecurityManagerImpl::initialise::137:
  No SSL provider available
    SESecurityManager::initialise::52,ConfigurationChecker::setSystemProperties::141,ConfigurationManager::initialise::138,ConfigurationManager::getInstance::71,LoggerImpl::init::90,Logger::<clinit>::48,J9VMInternals::initializeImpl::-2,J9VMInternals::initialize::185,StartServer::<init>::69,Main::<init>::56,Main::main::162
DEBUG::Tue Jun 20 18:25:02 MSD
2006::org.gudy.azureus2.core3.security.impl.SESecurityManagerImpl::ensureStoreExists::408:
  java.security.KeyStoreException: KeyStore JKS implementation not found


-- 
Regards,
Anton Luht,
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Tim Ellison <t....@gmail.com>.
Anton Luht wrote:
> Great progress - it started and looks similar to Azureus launched on RI.
> 
> Unfortunately I'm behind a firewall so I can't test it fully (and,
> frankly speaking, I've never used it before I tried to run it on
> Harmony so I don't know for sure how to use it properly :) )

Cool -- can't wait to try it.

Did you have to hack any of the Azureus code assumptions to get it
working? (i.e. BKS or HARMONY-536 JSSE provider)

Regards,
Tim

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Tim Ellison <t....@gmail.com>.
Geir Magnusson Jr wrote:
> 
> Thorbjørn Ravn Andersen wrote:
>> Tim Ellison skrev  den 21-06-2006 11:58:
>>> The build instructions are here [1], let me know if they need updating.
>> Just got around to update and check.
>>
>> The reference to the build.xml file in the help text shown if the
>> dependencies have not been downloaded does not reflect that it now is
>> "ant -f make/depends.xml download" instead.
> 
> That's only because I took out the "make/" in the error message, which
> was there forever (and didn't make sense), except since the change
> yeterday, it now makes sense to have it there :)

People should use the 'fetch-depends' target in the top-level build.xml.
 The stuff in make/ is the inner-workings of the build scripts.

Regards,
Tim

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Geir Magnusson Jr <ge...@pobox.com>.

Thorbjørn Ravn Andersen wrote:
> Tim Ellison skrev  den 21-06-2006 11:58:
>> The build instructions are here [1], let me know if they need updating.
> Just got around to update and check.
> 
> The reference to the build.xml file in the help text shown if the
> dependencies have not been downloaded does not reflect that it now is
> "ant -f make/depends.xml download" instead.

That's only because I took out the "make/" in the error message, which
was there forever (and didn't make sense), except since the change
yeterday, it now makes sense to have it there :)

geir

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Thorbjørn Ravn Andersen <th...@gmail.com>.
Tim Ellison skrev  den 22-06-2006 10:37:
>
> Given that ECJ is now a dependency for our emerging javac tool, perhaps
> we should make it the default in the build system too?
>   

Sounds like a good idea.  It also loosens the initial Java requirement 
on the
host system to be a JRE instead of a JDK.

I just built classlib with the ecj compiler adapter and build.xml, so it 
should be trivial to change.

-- 
  Thorbjørn


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Tim Ellison <t....@gmail.com>.
Thorbjørn Ravn Andersen wrote:
> Tim Ellison skrev  den 21-06-2006 11:58:
>> The build instructions are here [1], let me know if they need updating.
> Just got around to update and check.
> 
> The reference to the build.xml file in the help text shown if the
> dependencies have not been downloaded does not reflect that it now is
> "ant -f make/depends.xml download" instead.

Not sure that I understand...

I just removed a dependency and did a default build, it complains like this:

====
Missing dependency.  The jar from:

  http://www.ibiblio.org/maven/xalan/jars/xalan-2.7.0.jar

should be downloaded to:

  depends/jars/xalan-j_2.7.0/xalan.jar

Run "ant fetch-depends" to automatically fetch dependencies.
Note: Some of Harmony's dependencies are licensed under terms other
than the Apache License v2.

Total time: 0 seconds
====

Then 'ant fetch-depends' went to get it for me.
(This was changed within the last three days or so.)

>>  For example, I think they may need to catch up with the build.xml file
>> movement that took place yesterday.
>>
>> [1]
>> http://incubator.apache.org/harmony/subcomponents/classlibrary/build_classlib.html
>>
>>   
> 
> While it is building I would like to mention that the primary reason why
> I did what I did was to see if it was necessary at all to download Sun's
> JDK (to get tools.jar) to build on Ubuntu.
> 
> It isn't - by downloading ecj and telling ant to use it - you can get by
> just with a JRE or a clone like gcj (or perhaps kaffe), which is
> available in the default repositories.
> 
> Personally I like this approach the best :)

Yep, we have had enough code to host our own build scripts for a while
now :-)

Given that ECJ is now a dependency for our emerging javac tool, perhaps
we should make it the default in the build system too?

Regards,
Tim


-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Thorbjørn Ravn Andersen <th...@gmail.com>.
Tim Ellison skrev  den 21-06-2006 11:58:
> The build instructions are here [1], let me know if they need updating.
Just got around to update and check.

The reference to the build.xml file in the help text shown if the 
dependencies have not been downloaded does not reflect that it now is 
"ant -f make/depends.xml download" instead.

>  For example, I think they may need to catch up with the build.xml file
> movement that took place yesterday.
>
> [1]
> http://incubator.apache.org/harmony/subcomponents/classlibrary/build_classlib.html
>   

While it is building I would like to mention that the primary reason why 
I did what I did was to see if it was necessary at all to download Sun's 
JDK (to get tools.jar) to build on Ubuntu.

It isn't - by downloading ecj and telling ant to use it - you can get by 
just with a JRE or a clone like gcj (or perhaps kaffe), which is 
available in the default repositories.

Personally I like this approach the best :)

-- 
  Thorbjørn




Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Tim Ellison <t....@gmail.com>.
Thorbjørn Ravn Andersen wrote:
> Stefano Mazzocchi skrev  den 20-06-2006 19:21:
>>
>> If you guys write a little "how to" on the wiki on how to build the
>> thing from scratch on linux from sources, I'll be happy to try azureus
>> on harmony with some 10Gb torrent files and report back on the wiki.
>>   
> I did that recently with the IBM JVM, (see
> http://www.mail-archive.com/harmony-dev@incubator.apache.org/msg08346.html)
> but those instructions check out the whole Harmony SVN tree, and I
> believe that a newer version of the IBM JVM is necessary.
> 
> If you mentally rewrite those to deal with the harmony/enhanced/classlib
> subdirectory instead, you should be able to get it up and running.  I
> left it there since apparently I was the only one needing such
> instructions :)  As it appears not to, I'd be happy to shape it up for
> submission.

The build instructions are here [1], let me know if they need updating.
 For example, I think they may need to catch up with the build.xml file
movement that took place yesterday.

[1]
http://incubator.apache.org/harmony/subcomponents/classlibrary/build_classlib.html

Regards,
Tim

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Thorbjørn Ravn Andersen <th...@gmail.com>.
Stefano Mazzocchi skrev  den 20-06-2006 19:21:
>
> If you guys write a little "how to" on the wiki on how to build the
> thing from scratch on linux from sources, I'll be happy to try azureus
> on harmony with some 10Gb torrent files and report back on the wiki.
>   
I did that recently with the IBM JVM, (see 
http://www.mail-archive.com/harmony-dev@incubator.apache.org/msg08346.html) 
but those instructions check out the whole Harmony SVN tree, and I 
believe that a newer version of the IBM JVM is necessary.

If you mentally rewrite those to deal with the harmony/enhanced/classlib 
subdirectory instead, you should be able to get it up and running.  I 
left it there since apparently I was the only one needing such 
instructions :)  As it appears not to, I'd be happy to shape it up for 
submission.

-- 
  Thorbjørn


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Stefano Mazzocchi <st...@apache.org>.
Anton Luht wrote:
> Great progress - it started and looks similar to Azureus launched on RI.
> 
> Unfortunately I'm behind a firewall so I can't test it fully (and,
> frankly speaking, I've never used it before I tried to run it on
> Harmony so I don't know for sure how to use it properly :) )

Azureus is probably one of the most stressing software for the JVM,
network-wise and graphically-wise. The graphical part is handled by SWT
so it's not really much for us, but the network part, especially the
multiple UDP/TCP shuffling and tons of established network connections
and files opened is critical.

Also, the fact that you normally let it run for days if not weeks
creates a huge challenge for the JVM for memory leaks, OS resource
cleanups and the like.

I recently tried Azureus on Ubuntu6 with the GCJ that comes with it and
it kept giving me NullPointerExceptions after a day or so of continuous
operation, so I installed sun's java5 and it worked like a charm.

If you guys write a little "how to" on the wiki on how to build the
thing from scratch on linux from sources, I'll be happy to try azureus
on harmony with some 10Gb torrent files and report back on the wiki.

-- 
Stefano.


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Anton Luht <an...@gmail.com>.
Great progress - it started and looks similar to Azureus launched on RI.

Unfortunately I'm behind a firewall so I can't test it fully (and,
frankly speaking, I've never used it before I tried to run it on
Harmony so I don't know for sure how to use it properly :) )

-- 
Regards,
Anton Luht,
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Tim Ellison <t....@gmail.com>.
Paulex Yang wrote:
> Anton and Tim,
> 
> FYI, the Selector implementation has been merged into SVN as patch of
> Harmony-41 at revision 415279. So it should be ready to use now. Thank you.

Cool -- thanks Paulex.

Can you easily repeat the experiment Anton?  It would be good if you put
your method on the apps wiki page http://wiki.apache.org/harmony/Azureus
so I can get further too.

Regards,
Tim

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Paulex Yang <pa...@gmail.com>.
Anton and Tim,

FYI, the Selector implementation has been merged into SVN as patch of 
Harmony-41 at revision 415279. So it should be ready to use now. Thank you.

Tim Ellison wrote:
> Anton Luht wrote:
>   
>> Good day,
>>
>> I've tried to run Azureus, too, and saw all those problems (no SSL
>> provider, NotYetBoundException), too.
>>
>> I've also seen messages
>> 'VirtualChannelSelector.select() op called with null selector'
>>
>> Digging the code I've found that the problem is that Selector.open()
>> returns null (not null in RI)
>>     
>
> How did you get past the initialization part?
> I have put my experiences here:
>     http://wiki.apache.org/harmony/Azureus
>
>   
>> Test case is:
>>
>> public class Test {
>>    public static void main(String args[]) throws Exception {
>>      System.err.println(java.nio.channels.Selector.open() != null ?
>>         "PASSED" : "FAILED");
>>    }
>> }
>>     
>
> Hmm, the Harmony impl looks like this:
>
> 	public AbstractSelector openSelector() throws IOException {
> //		return new SelectorImpl(this);
> 		//FIXME: wait for JIRA-41
> 		return null;
> 	}
>
> Time to speak to Paulex nicely and see if he is working on it ;-)
>
> Regards,
> Tim
>
>   
>> I've built RE manually using today SVN snapshot (412715) and
>> Harmony-vme-win.IA32-v3.zip as described in Harmony documentation
>>
>>
>> On 6/6/06, Mark Hindess <ma...@googlemail.com> wrote:
>>     
>>> On 5 June 2006 at 19:07, "R.J. Lorimer" <rj...@coffee-bytes.com>
>>> wrote:
>>>       
>>>> For the record (I didn't gather this anywhere from this discussion),
>>>>
>>>> Azureus (while being a very non-trivial and cool Java application), is
>>>> not written in AWT/Swing, it is written with SWT (the same as Eclipse).
>>>> It's probably a good application to interact with for testing, but it's
>>>> not an AWT/Swing test.
>>>>         
>>> So I theory, this might run now!
>>>
>>> I tried running it but get lots of error output like:
>>>
>>> DEBUG::Tue Jun 06 08:29:39 BST
>>> 2006::com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector::accept_loop::138:
>>>
>>>   
>>> VirtualBlockingServerChannelSelector$1::runSupport::85,AEThread::run::69
>>> java.nio.channels.NotYetBoundException
>>>        at
>>> org.apache.harmony.nio.internal.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:125)
>>>
>>>        at
>>> com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector.accept_loop(VirtualBlockingServerChannelSelector.java:129)
>>>
>>>        at
>>> com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector$1.runSupport(VirtualBlockingServerChannelSelector.java:85)
>>>
>>>        at org.gudy.azureus2.core3.util.AEThread.run(AEThread.java:69)
>>>
>>> Definitely seems like a good thing to get working - it certainly
>>> exercises quite a bit of the networking code.
>>>
>>> Regards,
>>>  Mark.
>>>
>>>       
>>>> Thorbjørn Ravn Andersen wrote:
>>>>         
>>>>> Anton Luht skrev  den 05-06-2006 19:21:
>>>>>           
>>>>>> (http://sourceforge.net/top/topalltime.php?type=downloads) and found
>>>>>> at least one project that  was never mentioned in this list: Azureus
>>>>>> (a BitTorent client). It has 118,5 millions of downloads and scores
>>>>>> 8,700,000 in Google search.
>>>>>>             
>>>>> I second that.  Just downloaded the latest, and it is defintiively a
>>>>> non-trivial application, which also knows how to open holes in uPnP
>>>>> firewalls etc, has custom look-and-feel and very evidently is
>>>>> multithreaded.
>>>>>           
>>>
>>> ---------------------------------------------------------------------
>>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>>
>>>
>>>       
>>     
>
>   


-- 
Paulex Yang
China Software Development Lab
IBM



---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Anton Luht <an...@gmail.com>.
> How did you get past the initialization part?
> I have put my experiences here:
>    http://wiki.apache.org/harmony/Azureus

I have same messages as you put in wiki in the very beginning, and
select() problems happen later - after the point you gave up :)


-- 
Regards,
Anton Luht,
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Paulex Yang <pa...@gmail.com>.
Tim Ellison wrote:
> Anton Luht wrote:
>   
>> Good day,
>>
>> I've tried to run Azureus, too, and saw all those problems (no SSL
>> provider, NotYetBoundException), too.
>>
>> I've also seen messages
>> 'VirtualChannelSelector.select() op called with null selector'
>>
>> Digging the code I've found that the problem is that Selector.open()
>> returns null (not null in RI)
>>     
>
> How did you get past the initialization part?
> I have put my experiences here:
>     http://wiki.apache.org/harmony/Azureus
>
>   
>> Test case is:
>>
>> public class Test {
>>    public static void main(String args[]) throws Exception {
>>      System.err.println(java.nio.channels.Selector.open() != null ?
>>         "PASSED" : "FAILED");
>>    }
>> }
>>     
>
> Hmm, the Harmony impl looks like this:
>
> 	public AbstractSelector openSelector() throws IOException {
> //		return new SelectorImpl(this);
> 		//FIXME: wait for JIRA-41
> 		return null;
> 	}
>
> Time to speak to Paulex nicely and see if he is working on it ;-)
>   
Ooops... Sorry for lagging others down...

The other patch for 41 is on its way, but it's Pipe implementation. I've 
got part of Selector implementation in hand, and I'll make it higher 
priority than it is now.
> Regards,
> Tim
>
>   
>> I've built RE manually using today SVN snapshot (412715) and
>> Harmony-vme-win.IA32-v3.zip as described in Harmony documentation
>>
>>
>> On 6/6/06, Mark Hindess <ma...@googlemail.com> wrote:
>>     
>>> On 5 June 2006 at 19:07, "R.J. Lorimer" <rj...@coffee-bytes.com>
>>> wrote:
>>>       
>>>> For the record (I didn't gather this anywhere from this discussion),
>>>>
>>>> Azureus (while being a very non-trivial and cool Java application), is
>>>> not written in AWT/Swing, it is written with SWT (the same as Eclipse).
>>>> It's probably a good application to interact with for testing, but it's
>>>> not an AWT/Swing test.
>>>>         
>>> So I theory, this might run now!
>>>
>>> I tried running it but get lots of error output like:
>>>
>>> DEBUG::Tue Jun 06 08:29:39 BST
>>> 2006::com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector::accept_loop::138:
>>>
>>>   
>>> VirtualBlockingServerChannelSelector$1::runSupport::85,AEThread::run::69
>>> java.nio.channels.NotYetBoundException
>>>        at
>>> org.apache.harmony.nio.internal.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:125)
>>>
>>>        at
>>> com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector.accept_loop(VirtualBlockingServerChannelSelector.java:129)
>>>
>>>        at
>>> com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector$1.runSupport(VirtualBlockingServerChannelSelector.java:85)
>>>
>>>        at org.gudy.azureus2.core3.util.AEThread.run(AEThread.java:69)
>>>
>>> Definitely seems like a good thing to get working - it certainly
>>> exercises quite a bit of the networking code.
>>>
>>> Regards,
>>>  Mark.
>>>
>>>       
>>>> Thorbjørn Ravn Andersen wrote:
>>>>         
>>>>> Anton Luht skrev  den 05-06-2006 19:21:
>>>>>           
>>>>>> (http://sourceforge.net/top/topalltime.php?type=downloads) and found
>>>>>> at least one project that  was never mentioned in this list: Azureus
>>>>>> (a BitTorent client). It has 118,5 millions of downloads and scores
>>>>>> 8,700,000 in Google search.
>>>>>>             
>>>>> I second that.  Just downloaded the latest, and it is defintiively a
>>>>> non-trivial application, which also knows how to open holes in uPnP
>>>>> firewalls etc, has custom look-and-feel and very evidently is
>>>>> multithreaded.
>>>>>           
>>>
>>> ---------------------------------------------------------------------
>>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>>
>>>
>>>       
>>     
>
>   


-- 
Paulex Yang
China Software Development Lab
IBM



---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Tim Ellison <t....@gmail.com>.
Anton Luht wrote:
> Good day,
> 
> I've tried to run Azureus, too, and saw all those problems (no SSL
> provider, NotYetBoundException), too.
> 
> I've also seen messages
> 'VirtualChannelSelector.select() op called with null selector'
> 
> Digging the code I've found that the problem is that Selector.open()
> returns null (not null in RI)

How did you get past the initialization part?
I have put my experiences here:
    http://wiki.apache.org/harmony/Azureus

> Test case is:
> 
> public class Test {
>    public static void main(String args[]) throws Exception {
>      System.err.println(java.nio.channels.Selector.open() != null ?
>         "PASSED" : "FAILED");
>    }
> }

Hmm, the Harmony impl looks like this:

	public AbstractSelector openSelector() throws IOException {
//		return new SelectorImpl(this);
		//FIXME: wait for JIRA-41
		return null;
	}

Time to speak to Paulex nicely and see if he is working on it ;-)

Regards,
Tim

> I've built RE manually using today SVN snapshot (412715) and
> Harmony-vme-win.IA32-v3.zip as described in Harmony documentation
> 
> 
> On 6/6/06, Mark Hindess <ma...@googlemail.com> wrote:
>>
>> On 5 June 2006 at 19:07, "R.J. Lorimer" <rj...@coffee-bytes.com>
>> wrote:
>> > For the record (I didn't gather this anywhere from this discussion),
>> >
>> > Azureus (while being a very non-trivial and cool Java application), is
>> > not written in AWT/Swing, it is written with SWT (the same as Eclipse).
>> > It's probably a good application to interact with for testing, but it's
>> > not an AWT/Swing test.
>>
>> So I theory, this might run now!
>>
>> I tried running it but get lots of error output like:
>>
>> DEBUG::Tue Jun 06 08:29:39 BST
>> 2006::com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector::accept_loop::138:
>>
>>   
>> VirtualBlockingServerChannelSelector$1::runSupport::85,AEThread::run::69
>> java.nio.channels.NotYetBoundException
>>        at
>> org.apache.harmony.nio.internal.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:125)
>>
>>        at
>> com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector.accept_loop(VirtualBlockingServerChannelSelector.java:129)
>>
>>        at
>> com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector$1.runSupport(VirtualBlockingServerChannelSelector.java:85)
>>
>>        at org.gudy.azureus2.core3.util.AEThread.run(AEThread.java:69)
>>
>> Definitely seems like a good thing to get working - it certainly
>> exercises quite a bit of the networking code.
>>
>> Regards,
>>  Mark.
>>
>> > Thorbjørn Ravn Andersen wrote:
>> > > Anton Luht skrev  den 05-06-2006 19:21:
>> > >> (http://sourceforge.net/top/topalltime.php?type=downloads) and found
>> > >> at least one project that  was never mentioned in this list: Azureus
>> > >> (a BitTorent client). It has 118,5 millions of downloads and scores
>> > >> 8,700,000 in Google search.
>> > >
>> > > I second that.  Just downloaded the latest, and it is defintiively a
>> > > non-trivial application, which also knows how to open holes in uPnP
>> > > firewalls etc, has custom look-and-feel and very evidently is
>> > > multithreaded.
>>
>>
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>>
> 
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [apps] azureus (was Re: [testing] AWT, Swing Java2D)

Posted by Anton Luht <an...@gmail.com>.
Good day,

I've tried to run Azureus, too, and saw all those problems (no SSL
provider, NotYetBoundException), too.

I've also seen messages
'VirtualChannelSelector.select() op called with null selector'

Digging the code I've found that the problem is that Selector.open()
returns null (not null in RI)

Test case is:

public class Test {
    public static void main(String args[]) throws Exception {
      System.err.println(java.nio.channels.Selector.open() != null ?
         "PASSED" : "FAILED");
    }
}

I've built RE manually using today SVN snapshot (412715) and
Harmony-vme-win.IA32-v3.zip as described in Harmony documentation


On 6/6/06, Mark Hindess <ma...@googlemail.com> wrote:
>
> On 5 June 2006 at 19:07, "R.J. Lorimer" <rj...@coffee-bytes.com> wrote:
> > For the record (I didn't gather this anywhere from this discussion),
> >
> > Azureus (while being a very non-trivial and cool Java application), is
> > not written in AWT/Swing, it is written with SWT (the same as Eclipse).
> > It's probably a good application to interact with for testing, but it's
> > not an AWT/Swing test.
>
> So I theory, this might run now!
>
> I tried running it but get lots of error output like:
>
> DEBUG::Tue Jun 06 08:29:39 BST 2006::com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector::accept_loop::138:
>    VirtualBlockingServerChannelSelector$1::runSupport::85,AEThread::run::69
> java.nio.channels.NotYetBoundException
>        at org.apache.harmony.nio.internal.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:125)
>        at com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector.accept_loop(VirtualBlockingServerChannelSelector.java:129)
>        at com.aelitis.azureus.core.networkmanager.impl.VirtualBlockingServerChannelSelector$1.runSupport(VirtualBlockingServerChannelSelector.java:85)
>        at org.gudy.azureus2.core3.util.AEThread.run(AEThread.java:69)
>
> Definitely seems like a good thing to get working - it certainly
> exercises quite a bit of the networking code.
>
> Regards,
>  Mark.
>
> > Thorbjørn Ravn Andersen wrote:
> > > Anton Luht skrev  den 05-06-2006 19:21:
> > >> (http://sourceforge.net/top/topalltime.php?type=downloads) and found
> > >> at least one project that  was never mentioned in this list: Azureus
> > >> (a BitTorent client). It has 118,5 millions of downloads and scores
> > >> 8,700,000 in Google search.
> > >
> > > I second that.  Just downloaded the latest, and it is defintiively a
> > > non-trivial application, which also knows how to open holes in uPnP
> > > firewalls etc, has custom look-and-feel and very evidently is
> > > multithreaded.
>
>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


-- 
Regards,
Anton Luht,
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Thorbjørn Ravn Andersen <th...@gmail.com>.
R.J. Lorimer skrev  den 06-06-2006 02:07:
> Azureus (while being a very non-trivial and cool Java application), is 
> not written in AWT/Swing, it is written with SWT (the same as 
> Eclipse). It's probably a good application to interact with for 
> testing, but it's not an AWT/Swing test.
Oh, minor issue..

Then perhaps Netbeans?  Don't think there is any SWT-code in there :)


Sun has a Swing Sightings page - perhaps there is a suitable application 
a bit smaller than Netbeans in there?

http://java.sun.com/products/jfc/tsc/sightings/

Limewire, JGraph, MineSweep-O-Rama!,

It looks like the   "Human Image Viewer" might be the visually most 
interesting, with human cross sections and all, but it might require 
some coding assistance as it is a bit unintuitive to use.
*
*--
  Thorbjørn

Re: [testing] AWT, Swing Java2D

Posted by "R.J. Lorimer" <rj...@coffee-bytes.com>.
For the record (I didn't gather this anywhere from this discussion),

Azureus (while being a very non-trivial and cool Java application), is 
not written in AWT/Swing, it is written with SWT (the same as Eclipse). 
It's probably a good application to interact with for testing, but it's 
not an AWT/Swing test.

Regards,

R.J.



Thorbjørn Ravn Andersen wrote:
> Anton Luht skrev  den 05-06-2006 19:21:
>> (http://sourceforge.net/top/topalltime.php?type=downloads) and found
>> at least one project that  was never mentioned in this list: Azureus
>> (a BitTorent client). It has 118,5 millions of downloads and scores
>> 8,700,000 in Google search.
>
> I second that.  Just downloaded the latest, and it is defintiively a 
> non-trivial application, which also knows how to open holes in uPnP 
> firewalls etc, has custom look-and-feel and very evidently is 
> multithreaded.
>

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Thorbjørn Ravn Andersen <th...@gmail.com>.
Anton Luht skrev  den 05-06-2006 19:21:
> (http://sourceforge.net/top/topalltime.php?type=downloads) and found
> at least one project that  was never mentioned in this list: Azureus
> (a BitTorent client). It has 118,5 millions of downloads and scores
> 8,700,000 in Google search.

I second that.  Just downloaded the latest, and it is defintiively a 
non-trivial application, which also knows how to open holes in uPnP 
firewalls etc, has custom look-and-feel and very evidently is multithreaded.

-- 
  Thorbjørn (who might even get around to do more than lurk some day :)


Re: [testing] AWT, Swing Java2D

Posted by Geir Magnusson Jr <ge...@pobox.com>.

Anton Luht wrote:
> I've noted that most applications people suggest here for testing are
> for developers. They're either IDE or application servers or
> development frameworks. I've looked at the list of most popular
> projects on SourceForge
> (http://sourceforge.net/top/topalltime.php?type=downloads) and found
> at least one project that  was never mentioned in this list: Azureus
> (a BitTorent client). It has 118,5 millions of downloads and scores
> 8,700,000 in Google search.
> 
> This may be a good candidate for bringing Harmony to people who don't
> care what their applications run on.

That's a good idea.  Maybe they can bundle Harmony with it...

geir

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Anton Luht <an...@gmail.com>.
Good day,

> This is good approach and I can't imagine why not. Another approach is – I
>
> tried every Apache Java project in Google to see how many references are
> found.
>
> Here are results:
>
> Apache Directory project  19 200 000
>

Those three words are so common that some of those results are
irrelevant to the subject of your search :)

I've noted that most applications people suggest here for testing are
for developers. They're either IDE or application servers or
development frameworks. I've looked at the list of most popular
projects on SourceForge
(http://sourceforge.net/top/topalltime.php?type=downloads) and found
at least one project that  was never mentioned in this list: Azureus
(a BitTorent client). It has 118,5 millions of downloads and scores
8,700,000 in Google search.

This may be a good candidate for bringing Harmony to people who don't
care what their applications run on.
-- 
Regards,
Anton Luht,
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Vladimir Ivanov <iv...@gmail.com>.
> http://wiki.apache.org/harmony/Apache_Commons
> http://wiki.apache.org/harmony/ClassLibrary


Good pages, thank you!

Do we have an idea what we are doing with the results? – I mean, to make
sure people

know the list of unimplemented API required to run Apache Commons and start
with

implementation of this API (if someone wants to write API, but does not know
what to start with).



> Initially I decided what packages to look at by finding the packages
> (in Debian) that the most other packages depended on.  So many of
> them were Apache Commons packages that I then decided to start with
> those.  If no one beats me to it, I'll be going back to the debian
> most-depended-upon-packages list when I finish the Commons packages.

This is good approach and I can't imagine why not. Another approach is – I

tried every Apache Java project in Google to see how many references are
found.

Here are results:

Apache Directory project  19 200 000

Apache Jakarta 17 400 000

Apache Ant 10 700 000

Apache Cocoon 5 750 000

Apache FOP 2 610 000

Apache Derby 2 030 000

Apache Forrest 1 900 000

Apache Maven 1 370 000

Apache ECS 1 320 000

Apache Batik 937 000

Apache Beehive 639 000

Apache Jackrabbit 356 000

Apache Hadoop 85 000

….



So, Jakarta Commons looks like a good choice J



> Incidentally if anyone wants to investigate any of the Commons packages
> perhaps you could mark up the wiki page to say you are looking at it.
> (I will do the same.)

OK.

First, I want to complete investigations with Harmony unit tests coverage

(and list of classes to exclude from Emma instrumentation), then, will get

back to the page.



 Thanks,

   Vladimir



On 6/2/06, Mark Hindess <mark.hindess@googlemail.com > wrote:
>
>
> On 2 June 2006 at 19:54, "Vladimir Ivanov" < ivavladimir@gmail.com >
> wrote:
> >
> > This post reminded me about that some times ago was a little discussion
> > about 'application testing' and that it will be good to define list of
> > application that should run over harmony to check implemented
> functionality
> > and define more critical areas to implement and bugs to fix.
> >
> > May be it is a time to define this set to set up some goal - without
> dates,
> > but in terms of enabled applications for people to start trying enabling
>
> > *these certain* well-known applications on HY?
>
> Funny you should mention this.  I've just added an entry to the wiki
> about testing I've done on some of the Apache Commons projects:
>
> http://wiki.apache.org/harmony/Apache_Commons
>
> Initially I decided what packages to look at by finding the packages
> (in Debian) that the most other packages depended on.  So many of
> them were Apache Commons packages that I then decided to start with
> those.  If no one beats me to it, I'll be going back to the debian
> most-depended-upon-packages list when I finish the Commons packages.
>
> Incidentally if anyone wants to investigate any of the Commons packages
> perhaps you could mark up the wiki page to say you are looking at it.
> (I will do the same.)
>
> > I would propose to start with Geronimo.
>
> Someone looked at this a while ago I think[0], there is a link from:
>
> http://wiki.apache.org/harmony/ClassLibrary
>
> My experience with the Apache Commons projects (and the extensive tests
> they provide) is that this is a very good way to find real bugs that
> will affect real applications.  (And it's often easier to track them
> down in simple(r) test case than in real applications.)
>
> Regards,
> Mark.
>
> [0] Amusingly after writing this I checked and it turns out that someone
>    was me! ;-)
>
> > On 6/2/06, Mark Hindess < mark.hindess@googlemail.com> wrote:
> > >
> > >
> > > On 2 June 2006 at 5:32, Geir Magnusson Jr < geir@pobox.com> wrote:
> > > >
> > > > Erik Axel Nielsen wrote:
> > > > > Hi,
> > > > >
> > > > > Not sure if I should post this under testing, but here goes.
> > > > >
> > > > > Next spring I will be TA/organizer of "Object oriented
> programming" at
> > >
> > > > > my university. This course is followed by approximately 500
> students.
> > > To
> > > > > make this course a little more interesting for the students the
> last
> > > > > assignment involves making a game. The students do this in groups
> > > making
> > > > > ~100 different games. If anyone wants to see the games for this
> year
> > > go
> > > > > to [1]. The page is in Norwegian but it should be possible to
> > > understand
> > > > > enough to download the jars anyway. The quality varies a LOT but
> 207,
> > > > > 109 and 804 are good at least.
> > > > >
> > > > > Anyway, what I wanted to say is that being students, and being 500
> > > they
> > > > > cover a big part of Swing/Java 2D and even Java 3D. Especially
> they
> > > use
> > > > > things the way it wasn't meant to be used. As long as it works
> it's OK
> > > > > with them. If Harmony has managed to make an easy download that
> they
> > > can
> > > > > try their game on I think it would be a nice way to check how
> > > compliant
> > > > > Harmony is with RI.
> > > >
> > > > By next spring?  I'm hoping to have this download by next *week*
> (ok,
> > > > two weeks...)
> > > >
> > > > We'll definitely have this for them.  I'm hoping by next spring,
> we'll
> > > > be far enough along you can ask your students to just *do* their
> project
> > > > on Harmony :)
> > > >
> > > > > This is not testing per se, but more like a good
> > > > > quality check I think.  With a little bit of cooperation with the
> > > > > professors it could even be an optional part of the assignment.
> > > > >
> > > > > Anyone with thoughts about this?
> > > >
> > > > I think this is great, as this is what we want to do - drive people
> to
> > > > test their programs on Harmony, because I think this is an excellent
> and
> > > > necessary addition to the formal project testing and TCK testing
> > > > activities...
> > > >
> > > > BTW, what license are these programs under?  I'd like to have a few
> > > > graphical demos in our JDK just like Sun does :) and it would be
> cool to
> > > > use some of these if those students are interested in contributing
> them,
> > > > are able to contributing them and even interested in participating
> > > here...
> > >
> > > Well, some of them seem to contain images/sounds that might not be
> > > original works of the game authors.
> > >
> > > But it's an interesting thought.  We should probably wait until we
> have
> > > javax.sound?  Since most of the games fail because of these missing
> > > packages.  The others I tried failed with:
> > >
> > > java.lang.RuntimeException: Method is not implemented
> > >        at java.awt.Window.createBufferStrategy(Window.java:266)
> > >
> > > and:
> > >
> > > Caused by: java.lang.NoSuchMethodError : java/lang/System.nanoTime()J
> > >
> > > However, a little further down the line perhaps we should have a
> > > competition with the best games becoming the official demos for
> Harmony?
> > >
> > > Regards,
> > > Mark - enjoying having an excuse to play a few games
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Terms of use : http://incubator.apache.org/harmony/mailing.html
> > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> > >
> > >
> >
> > ------=_Part_4998_9047751.1149252888918--
>
>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>

Re: [testing] AWT, Swing Java2D

Posted by Stefano Mazzocchi <st...@apache.org>.
Geir Magnusson Jr wrote:
> Yes, I think so.  Certainly we have people using eclipse today.
> 
> I thought this would be viable once we had the VM and Swing code in SVN
> so that we can build binary snapshots that Just Work and that makes it
> easier for people to test...
> 
> It also would be interesting to script running these apps and "using"
> them in an automated way - like start tomcat, and run a client and test
> a bunch of webapps...  start geronimo, deploy an app, etc...

Suggestion: get Continuum to run on Harmony and move on from there.

-- 
Stefano.


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Geir Magnusson Jr <ge...@pobox.com>.
Yes, I think so.  Certainly we have people using eclipse today.

I thought this would be viable once we had the VM and Swing code in SVN
so that we can build binary snapshots that Just Work and that makes it
easier for people to test...

It also would be interesting to script running these apps and "using"
them in an automated way - like start tomcat, and run a client and test
a bunch of webapps...  start geronimo, deploy an app, etc...

geir

Vladimir Ivanov wrote:
> This post reminded me about that some times ago was a little discussion
> about 'application testing' and that it will be good to define list of
> application that should run over harmony to check implemented functionality
> and define more critical areas to implement and bugs to fix.
> 
> 
> 
> May be it is a time to define this set to set up some goal - without dates,
> but in terms of enabled applications for people to start trying enabling
> *these certain* well-known applications on HY?
> 
> 
> 
> I would propose to start with Geronimo.
> 
> 
> 
> Thanks,
> 
>  Vladimir
> 
> 
> 
> On 6/2/06, Mark Hindess <ma...@googlemail.com> wrote:
>>
>>
>> On 2 June 2006 at 5:32, Geir Magnusson Jr <ge...@pobox.com> wrote:
>> >
>> > Erik Axel Nielsen wrote:
>> > > Hi,
>> > >
>> > > Not sure if I should post this under testing, but here goes.
>> > >
>> > > Next spring I will be TA/organizer of "Object oriented
>> programming" at
>>
>> > > my university. This course is followed by approximately 500 students.
>> To
>> > > make this course a little more interesting for the students the last
>> > > assignment involves making a game. The students do this in groups
>> making
>> > > ~100 different games. If anyone wants to see the games for this year
>> go
>> > > to [1]. The page is in Norwegian but it should be possible to
>> understand
>> > > enough to download the jars anyway. The quality varies a LOT but 207,
>> > > 109 and 804 are good at least.
>> > >
>> > > Anyway, what I wanted to say is that being students, and being 500
>> they
>> > > cover a big part of Swing/Java 2D and even Java 3D. Especially they
>> use
>> > > things the way it wasn't meant to be used. As long as it works
>> it's OK
>> > > with them. If Harmony has managed to make an easy download that they
>> can
>> > > try their game on I think it would be a nice way to check how
>> compliant
>> > > Harmony is with RI.
>> >
>> > By next spring?  I'm hoping to have this download by next *week* (ok,
>> > two weeks...)
>> >
>> > We'll definitely have this for them.  I'm hoping by next spring, we'll
>> > be far enough along you can ask your students to just *do* their
>> project
>> > on Harmony :)
>> >
>> > > This is not testing per se, but more like a good
>> > > quality check I think.  With a little bit of cooperation with the
>> > > professors it could even be an optional part of the assignment.
>> > >
>> > > Anyone with thoughts about this?
>> >
>> > I think this is great, as this is what we want to do - drive people to
>> > test their programs on Harmony, because I think this is an excellent
>> and
>> > necessary addition to the formal project testing and TCK testing
>> > activities...
>> >
>> > BTW, what license are these programs under?  I'd like to have a few
>> > graphical demos in our JDK just like Sun does :) and it would be
>> cool to
>> > use some of these if those students are interested in contributing
>> them,
>> > are able to contributing them and even interested in participating
>> here...
>>
>> Well, some of them seem to contain images/sounds that might not be
>> original works of the game authors.
>>
>> But it's an interesting thought.  We should probably wait until we have
>> javax.sound?  Since most of the games fail because of these missing
>> packages.  The others I tried failed with:
>>
>> java.lang.RuntimeException: Method is not implemented
>>        at java.awt.Window.createBufferStrategy(Window.java:266)
>>
>> and:
>>
>> Caused by: java.lang.NoSuchMethodError : java/lang/System.nanoTime()J
>>
>> However, a little further down the line perhaps we should have a
>> competition with the best games becoming the official demos for Harmony?
>>
>> Regards,
>> Mark - enjoying having an excuse to play a few games
>>
>>
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>>
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Vladimir Ivanov <iv...@gmail.com>.
This post reminded me about that some times ago was a little discussion
about 'application testing' and that it will be good to define list of
application that should run over harmony to check implemented functionality
and define more critical areas to implement and bugs to fix.



May be it is a time to define this set to set up some goal - without dates,
but in terms of enabled applications for people to start trying enabling
*these certain* well-known applications on HY?



I would propose to start with Geronimo.



 Thanks,

  Vladimir



On 6/2/06, Mark Hindess <ma...@googlemail.com> wrote:
>
>
> On 2 June 2006 at 5:32, Geir Magnusson Jr <ge...@pobox.com> wrote:
> >
> > Erik Axel Nielsen wrote:
> > > Hi,
> > >
> > > Not sure if I should post this under testing, but here goes.
> > >
> > > Next spring I will be TA/organizer of "Object oriented programming" at
>
> > > my university. This course is followed by approximately 500 students.
> To
> > > make this course a little more interesting for the students the last
> > > assignment involves making a game. The students do this in groups
> making
> > > ~100 different games. If anyone wants to see the games for this year
> go
> > > to [1]. The page is in Norwegian but it should be possible to
> understand
> > > enough to download the jars anyway. The quality varies a LOT but 207,
> > > 109 and 804 are good at least.
> > >
> > > Anyway, what I wanted to say is that being students, and being 500
> they
> > > cover a big part of Swing/Java 2D and even Java 3D. Especially they
> use
> > > things the way it wasn't meant to be used. As long as it works it's OK
> > > with them. If Harmony has managed to make an easy download that they
> can
> > > try their game on I think it would be a nice way to check how
> compliant
> > > Harmony is with RI.
> >
> > By next spring?  I'm hoping to have this download by next *week* (ok,
> > two weeks...)
> >
> > We'll definitely have this for them.  I'm hoping by next spring, we'll
> > be far enough along you can ask your students to just *do* their project
> > on Harmony :)
> >
> > > This is not testing per se, but more like a good
> > > quality check I think.  With a little bit of cooperation with the
> > > professors it could even be an optional part of the assignment.
> > >
> > > Anyone with thoughts about this?
> >
> > I think this is great, as this is what we want to do - drive people to
> > test their programs on Harmony, because I think this is an excellent and
> > necessary addition to the formal project testing and TCK testing
> > activities...
> >
> > BTW, what license are these programs under?  I'd like to have a few
> > graphical demos in our JDK just like Sun does :) and it would be cool to
> > use some of these if those students are interested in contributing them,
> > are able to contributing them and even interested in participating
> here...
>
> Well, some of them seem to contain images/sounds that might not be
> original works of the game authors.
>
> But it's an interesting thought.  We should probably wait until we have
> javax.sound?  Since most of the games fail because of these missing
> packages.  The others I tried failed with:
>
> java.lang.RuntimeException: Method is not implemented
>        at java.awt.Window.createBufferStrategy(Window.java:266)
>
> and:
>
> Caused by: java.lang.NoSuchMethodError : java/lang/System.nanoTime()J
>
> However, a little further down the line perhaps we should have a
> competition with the best games becoming the official demos for Harmony?
>
> Regards,
> Mark - enjoying having an excuse to play a few games
>
>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>

Re: [testing] AWT, Swing Java2D

Posted by Geir Magnusson Jr <ge...@pobox.com>.

Stefano Mazzocchi wrote:
> Alexey Petrenko wrote:
> 
>>> However, a little further down the line perhaps we should have a
>>> competition with the best games becoming the official demos for Harmony?
>> Yes, this is a really good idea!
> 
> One note of warning here: "official demo" for Harmony seems to imply
> something harmony-specific about these demos and we want to avoid that
> as the plague.

Maybe there's a miscommunication here - look at the JDK from sun - it
includes demo code for developers.  Why wouldn't we want to include
similar in our JDK? :)

geir

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Stefano Mazzocchi <st...@apache.org>.
Alexey Petrenko wrote:

>> However, a little further down the line perhaps we should have a
>> competition with the best games becoming the official demos for Harmony?
> Yes, this is a really good idea!

One note of warning here: "official demo" for Harmony seems to imply
something harmony-specific about these demos and we want to avoid that
as the plague.

If we do things as we plan, any java thing will work on Harmony, not
just a few selected demos.

That said, we should target at commonly used java projects and make
those run. At this stage, my vote would be Azureus ;-)

-- 
Stefano.


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [testing] AWT, Swing Java2D

Posted by Alexey Petrenko <al...@gmail.com>.
2006/6/2, Mark Hindess <ma...@googlemail.com>:
> We should probably wait until we have
> javax.sound?  Since most of the games fail because of these missing
> packages.  The others I tried failed with:
>
>  java.lang.RuntimeException: Method is not implemented
>        at java.awt.Window.createBufferStrategy(Window.java:266)
>
> and:
>
>  Caused by: java.lang.NoSuchMethodError: java/lang/System.nanoTime()J
Implementing of this methods also can be a good task for students :)

> However, a little further down the line perhaps we should have a
> competition with the best games becoming the official demos for Harmony?
Yes, this is a really good idea!

-- 
Alexey A. Petrenko
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org