From roman at kennke.org Mon Sep 3 10:48:19 2012 From: roman at kennke.org (roman at kennke.org) Date: Mon, 03 Sep 2012 17:48:19 +0000 Subject: hg: caciocavallo/ng: Use AWTAccessor in KFMHelper instead of reflection. Message-ID: <20120903174820.237CD47885@hg.openjdk.java.net> Changeset: c47cf35632d5 Author: Roman Kennke Date: 2012-09-03 19:48 +0200 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/c47cf35632d5 Use AWTAccessor in KFMHelper instead of reflection. ! cacio-shared/src/main/java/sun/awt/peer/cacio/KFMHelper.java From neugens.limasoftware at gmail.com Mon Sep 3 12:09:27 2012 From: neugens.limasoftware at gmail.com (neugens.limasoftware at gmail.com) Date: Mon, 03 Sep 2012 19:09:27 +0000 Subject: hg: caciocavallo/ng: fix isWindowUnderMouse to also check if the window is visible Message-ID: <20120903190928.1E19547886@hg.openjdk.java.net> Changeset: da19747f348a Author: Mario Torre Date: 2012-09-03 21:08 +0200 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/da19747f348a fix isWindowUnderMouse to also check if the window is visible ! cacio-shared/src/main/java/sun/awt/peer/cacio/CacioMouseInfoPeer.java ! cacio-tta/src/test/java/net/java/openjdk/cacio/ctc/WindowLeakTest.java From roman at kennke.org Mon Sep 3 14:18:49 2012 From: roman at kennke.org (roman at kennke.org) Date: Mon, 03 Sep 2012 21:18:49 +0000 Subject: hg: caciocavallo/ng: 2 new changesets Message-ID: <20120903211850.BAD2E47889@hg.openjdk.java.net> Changeset: b774debaebed Author: Roman Kennke Date: 2012-09-03 23:15 +0200 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/b774debaebed Perform more GC and finalizer cycles in WindowLeakTest. Run tests in random order to catch order-dependencies earlier. ! cacio-tta/src/test/java/net/java/openjdk/cacio/ctc/WindowLeakTest.java ! pom.xml Changeset: a3abaca67988 Author: Roman Kennke Date: 2012-09-03 23:16 +0200 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/a3abaca67988 Merge ! cacio-tta/src/test/java/net/java/openjdk/cacio/ctc/WindowLeakTest.java From neugens.limasoftware at gmail.com Tue Sep 4 03:17:11 2012 From: neugens.limasoftware at gmail.com (neugens.limasoftware at gmail.com) Date: Tue, 04 Sep 2012 10:17:11 +0000 Subject: hg: caciocavallo/ng: run many gc requests to try to enforce collection Message-ID: <20120904101713.2634A47897@hg.openjdk.java.net> Changeset: 67a1cd709725 Author: Mario Torre Date: 2012-09-04 12:16 +0200 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/67a1cd709725 run many gc requests to try to enforce collection ! cacio-tta/src/test/java/net/java/openjdk/cacio/ctc/WindowLeakTest.java From roman at kennke.org Tue Sep 4 03:32:04 2012 From: roman at kennke.org (roman at kennke.org) Date: Tue, 04 Sep 2012 10:32:04 +0000 Subject: hg: caciocavallo/ng: 2 new changesets Message-ID: <20120904103204.D948147898@hg.openjdk.java.net> Changeset: 7a57bd3b0191 Author: Roman Kennke Date: 2012-09-04 12:26 +0200 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/7a57bd3b0191 Use CacioFESTRunner for ClickEventTestFESTTest instead of the FEST runner. ! cacio-tta/src/test/java/net/java/openjdk/cacio/ctc/ClickEventTestFESTTest.java Changeset: 6d265afd6a39 Author: Roman Kennke Date: 2012-09-04 12:31 +0200 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/6d265afd6a39 Merge From roman at kennke.org Tue Sep 4 03:42:44 2012 From: roman at kennke.org (roman at kennke.org) Date: Tue, 04 Sep 2012 10:42:44 +0000 Subject: hg: caciocavallo/ng: [maven-release-plugin] prepare release cacio-1.2 Message-ID: <20120904104244.B4DE347899@hg.openjdk.java.net> Changeset: 4de63b139f3a Author: Roman Kennke Date: 2012-09-04 12:42 +0200 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/4de63b139f3a [maven-release-plugin] prepare release cacio-1.2 ! cacio-shared/pom.xml ! cacio-tta/pom.xml ! pom.xml From roman at kennke.org Tue Sep 4 03:42:52 2012 From: roman at kennke.org (roman at kennke.org) Date: Tue, 04 Sep 2012 10:42:52 +0000 Subject: hg: caciocavallo/ng: [maven-release-plugin] copy for tag cacio-1.2 Message-ID: <20120904104252.8A9564789A@hg.openjdk.java.net> Changeset: 57d38f3d1ea8 Author: Roman Kennke Date: 2012-09-04 12:42 +0200 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/57d38f3d1ea8 [maven-release-plugin] copy for tag cacio-1.2 ! .hgtags From roman at kennke.org Tue Sep 4 03:43:00 2012 From: roman at kennke.org (roman at kennke.org) Date: Tue, 04 Sep 2012 10:43:00 +0000 Subject: hg: caciocavallo/ng: [maven-release-plugin] prepare for next development iteration Message-ID: <20120904104300.54E7A4789B@hg.openjdk.java.net> Changeset: 6098a5abf737 Author: Roman Kennke Date: 2012-09-04 12:42 +0200 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/6098a5abf737 [maven-release-plugin] prepare for next development iteration ! cacio-shared/pom.xml ! cacio-tta/pom.xml ! pom.xml From stlecho at gmail.com Thu Sep 20 04:09:28 2012 From: stlecho at gmail.com (Stefan Lecho) Date: Thu, 20 Sep 2012 13:09:28 +0200 Subject: Different behavior when using CacioFESTRunner Message-ID: Hi, I have written a Swing test that works perfectly when run with FEST Swing. When I run the same test by adding *@RunWith(CacioFESTRunner.class)*, I'm receiving an error message: "*org.fest.swing.exception.ComponentLookupException: Unable to find component using matcher be.irisnet.nova.client.uihelpers.common.PanelTypeMatcher at 12bd15e.*" After searching in the log files, I've found that the*getWindow().button("btnCreateUtgDossier").click(); *is not clicking on the button. Why is adding *@RunWith(CacioFESTRunner.class)*, causing this error ? Regards, Stefan Lecho. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/caciocavallo-dev/attachments/20120920/b23313e8/attachment.html From neugens.limasoftware at gmail.com Fri Sep 21 05:02:52 2012 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Fri, 21 Sep 2012 14:02:52 +0200 Subject: Different behavior when using CacioFESTRunner In-Reply-To: References: Message-ID: 2012/9/20 Stefan Lecho : > Hi, > > I have written a Swing test that works perfectly when run with FEST Swing. > When I run the same test by adding @RunWith(CacioFESTRunner.class), I'm > receiving an error message: > "org.fest.swing.exception.ComponentLookupException: Unable to find component > using matcher > be.irisnet.nova.client.uihelpers.common.PanelTypeMatcher at 12bd15e." > > After searching in the log files, I've found that the > getWindow().button("btnCreateUtgDossier").click(); is not clicking on the > button. > > Why is adding @RunWith(CacioFESTRunner.class), causing this error ? > > Regards, Stefan Lecho. Hi Stefan, Can you give us some more info? What Java version are you running, is the latest Cacio drop (latest hg or the latest release), and especially what OS? Also, I would like if possible a test case that shows the problem so we can look at it. Thanks, Mario -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF IcedRobot: www.icedrobot.org Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ From stlecho at gmail.com Fri Sep 21 06:00:02 2012 From: stlecho at gmail.com (Stefan Lecho) Date: Fri, 21 Sep 2012 15:00:02 +0200 Subject: Different behavior when using CacioFESTRunner In-Reply-To: References: Message-ID: Hi Mario, OS: Windows7-32-bit Java version: 1.7.0_03 Cacio version: 1.2 The text on the button has some accents: could this be the cause ? I can provide you a test case, but you'll need to have some JARs, a connection to an Oracle DB and a WebLogic server :o). What would be the best way to share those JARs ? Regards, Stefan Lecho. On Fri, Sep 21, 2012 at 2:02 PM, Mario Torre wrote: > 2012/9/20 Stefan Lecho : > > Hi, > > > > I have written a Swing test that works perfectly when run with FEST > Swing. > > When I run the same test by adding @RunWith(CacioFESTRunner.class), I'm > > receiving an error message: > > "org.fest.swing.exception.ComponentLookupException: Unable to find > component > > using matcher > > be.irisnet.nova.client.uihelpers.common.PanelTypeMatcher at 12bd15e." > > > > After searching in the log files, I've found that the > > getWindow().button("btnCreateUtgDossier").click(); is not clicking on the > > button. > > > > Why is adding @RunWith(CacioFESTRunner.class), causing this error ? > > > > Regards, Stefan Lecho. > > Hi Stefan, > > Can you give us some more info? What Java version are you running, is > the latest Cacio drop (latest hg or the latest release), and > especially what OS? > > Also, I would like if possible a test case that shows the problem so > we can look at it. > > Thanks, > Mario > -- > pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF > Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF > > IcedRobot: www.icedrobot.org > Proud GNU Classpath developer: http://www.classpath.org/ > Read About us at: http://planet.classpath.org > OpenJDK: http://openjdk.java.net/projects/caciocavallo/ > > Please, support open standards: > http://endsoftpatents.org/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/caciocavallo-dev/attachments/20120921/15363897/attachment.html From neugens.limasoftware at gmail.com Fri Sep 21 06:04:01 2012 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Fri, 21 Sep 2012 15:04:01 +0200 Subject: Different behavior when using CacioFESTRunner In-Reply-To: References: Message-ID: 2012/9/21 Stefan Lecho : > Hi Mario, > > OS: Windows7-32-bit > Java version: 1.7.0_03 > Cacio version: 1.2 > > The text on the button has some accents: could this be the cause ? > > I can provide you a test case, but you'll need to have some JARs, a > connection to an Oracle DB and a WebLogic server :o). What would be the > best way to share those JARs ? Hi Stefan, It should be possible to have a simpler test case just to reproduce the issue, I don't have access to weblogic or oracle db. Cheers, Mario -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF IcedRobot: www.icedrobot.org Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ From stlecho at gmail.com Fri Sep 21 07:40:01 2012 From: stlecho at gmail.com (Stefan Lecho) Date: Fri, 21 Sep 2012 16:40:01 +0200 Subject: Different behavior when using CacioFESTRunner In-Reply-To: References: Message-ID: I will try to create a smaller test case. In the mean time, could you check if the accented characters in the label of the button could be the cause of this issue (I suppose you have a test suite where you can easily simulate this scenario) ? On Fri, Sep 21, 2012 at 3:04 PM, Mario Torre wrote: > 2012/9/21 Stefan Lecho : > > Hi Mario, > > > > OS: Windows7-32-bit > > Java version: 1.7.0_03 > > Cacio version: 1.2 > > > > The text on the button has some accents: could this be the cause ? > > > > I can provide you a test case, but you'll need to have some JARs, a > > connection to an Oracle DB and a WebLogic server :o). What would be the > > best way to share those JARs ? > > Hi Stefan, > > It should be possible to have a simpler test case just to reproduce > the issue, I don't have access to weblogic or oracle db. > > Cheers, > Mario > -- > pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF > Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF > > IcedRobot: www.icedrobot.org > Proud GNU Classpath developer: http://www.classpath.org/ > Read About us at: http://planet.classpath.org > OpenJDK: http://openjdk.java.net/projects/caciocavallo/ > > Please, support open standards: > http://endsoftpatents.org/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/caciocavallo-dev/attachments/20120921/99b4dc8e/attachment.html From gschrader at gmail.com Fri Sep 21 15:20:00 2012 From: gschrader at gmail.com (Glen Schrader) Date: Fri, 21 Sep 2012 16:20:00 -0600 Subject: focus issue with popups Message-ID: I'm getting sporadic test failures, I think I've tracked it down to a popup stealing focus. When a failure occurs the current focus owner is an instance of javax.swing.Popup$HeavyWeightWindow. Unfortunately I can't seem to come up with a simple test case that will fail (i.e. getting it so that popup window steals focus). In our large test suite there are a handful of tests that will fail maybe 10% of the time. Looking through the code I question a couple of things that might be causing the grief. In CacioWindowPeer: public void updateFocusableWindowState() { // Nothing to do here for now. } I wonder if something needs to be done :) I wonder if a flag should be set so that it will ignore any focus events. or perhaps in the constructor: ((Window) awtC).setFocusableWindowState(true); ((Window) awtC).setFocusTraversalPolicyProvider(true); it should check to make sure that it isn't a popup before setting these values to true. Any ideas here? In the meantime I'll still try to come up with a test case. Thanks, Glen From roman at kennke.org Mon Sep 24 03:34:40 2012 From: roman at kennke.org (Roman Kennke) Date: Mon, 24 Sep 2012 12:34:40 +0200 Subject: Different behavior when using CacioFESTRunner In-Reply-To: References: Message-ID: <1348482880.5496.2.camel@mercury> Hi there, I doubt that accents are a problem (I don't know how this could be the case). Could you describe what the test and the tested code is actually doing? Could you make a testcase that mocks the DB and app server or something? Without any code or more detailed description it is really difficult to see what it could be. Roman Am Freitag, den 21.09.2012, 16:40 +0200 schrieb Stefan Lecho: > I will try to create a smaller test case. In the mean time, could you > check if the accented characters in the label of the button could be > the cause of this issue (I suppose you have a test suite where you can > easily simulate this scenario) ? > > On Fri, Sep 21, 2012 at 3:04 PM, Mario Torre > wrote: > 2012/9/21 Stefan Lecho : > > Hi Mario, > > > > OS: Windows7-32-bit > > Java version: 1.7.0_03 > > Cacio version: 1.2 > > > > The text on the button has some accents: could this be the > cause ? > > > > I can provide you a test case, but you'll need to have some > JARs, a > > connection to an Oracle DB and a WebLogic server :o). What > would be the > > best way to share those JARs ? > > > Hi Stefan, > > It should be possible to have a simpler test case just to > reproduce > the issue, I don't have access to weblogic or oracle db. > > Cheers, > Mario > -- > pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF > Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 > 40CF > > IcedRobot: www.icedrobot.org > Proud GNU Classpath developer: http://www.classpath.org/ > Read About us at: http://planet.classpath.org > OpenJDK: http://openjdk.java.net/projects/caciocavallo/ > > Please, support open standards: > http://endsoftpatents.org/ > > From roman at kennke.org Mon Sep 24 03:37:51 2012 From: roman at kennke.org (Roman Kennke) Date: Mon, 24 Sep 2012 12:37:51 +0200 Subject: focus issue with popups In-Reply-To: References: Message-ID: <1348483071.5496.5.camel@mercury> Am Freitag, den 21.09.2012, 16:20 -0600 schrieb Glen Schrader: > I'm getting sporadic test failures, I think I've tracked it down to a > popup stealing focus. When a failure occurs the current focus owner > is an instance of javax.swing.Popup$HeavyWeightWindow. Unfortunately > I can't seem to come up with a simple test case that will fail (i.e. > getting it so that popup window steals focus). In our large test > suite there are a handful of tests that will fail maybe 10% of the > time. > > Looking through the code I question a couple of things that might be > causing the grief. In CacioWindowPeer: > > public void updateFocusableWindowState() { > // Nothing to do here for now. > } > > I wonder if something needs to be done :) I wonder if a flag should be > set so that it will ignore any focus events. > > or perhaps in the constructor: > > ((Window) awtC).setFocusableWindowState(true); > ((Window) awtC).setFocusTraversalPolicyProvider(true); > > it should check to make sure that it isn't a popup before setting > these values to true. > > Any ideas here? In the meantime I'll still try to come up with a test case. Hi Glen, Yes, the issues that you mentioned might be causing the problems. I will look into it soon. I wonder why it's only sporadic, this seems to point to some threading/EDT issue. Have you made sure that all your interactions happen in the EDT? (see http://fest.codehaus.org/Writing +EDT-safe+GUI+tests) In the meantime it would be great if you can come up with a testcase. Roman From gschrader at gmail.com Thu Sep 27 10:19:22 2012 From: gschrader at gmail.com (Glen Schrader) Date: Thu, 27 Sep 2012 11:19:22 -0600 Subject: Fwd: focus issue with popups In-Reply-To: References: <1348483071.5496.5.camel@mercury> Message-ID: realized I never included the mailing list, just forwarding this so I have a public link to put in our issue tracker ---------- Forwarded message ---------- From: Glen Schrader Date: Tue, Sep 25, 2012 at 12:56 PM Subject: Re: focus issue with popups To: Roman Kennke On Mon, Sep 24, 2012 at 4:37 AM, Roman Kennke wrote: > > Hi Glen, > > Yes, the issues that you mentioned might be causing the problems. I will > look into it soon. I wonder why it's only sporadic, this seems to point > to some threading/EDT issue. Have you made sure that all your > interactions happen in the EDT? (see http://fest.codehaus.org/Writing > +EDT-safe+GUI+tests) In the meantime it would be great if you can come > up with a testcase. > > Roman > Yeah the sporadic nature sure does suggest EDT violations as we've hit those before and have had weird painting issues. I doubled checked the code, everything is accessed through fixtures which enforces things are run on the EDT, also we use the FestSwingJUnitTestCase class which installs the FailOnThreadViolationRepaintManager which catches a lot of EDT violations. So I'm pretty confident the code is ok. I narrowed it down to a tooltip that is appearing when the test fails. I think this is why it only fails some of the time, the tooltip doesn't always appear (not sure why that would be the case, there must be some timing difference somewhere). I was able to come up with a test case (attached) which will thankfully fail consistently under the cacio runner. This test will pass when I comment out the aforementioned call in CacioWindowPeer to the setFocusableWindowState in the constructor. I don't know what other affects that will have though as this must have been put in for a reason. Let me know if I can help further. Thanks, Glen -------------- next part -------------- A non-text attachment was scrubbed... Name: PopupFocusFESTTest.java Type: application/octet-stream Size: 3459 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/caciocavallo-dev/attachments/20120927/2f30125a/PopupFocusFESTTest.java