This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
From build 200505121800 automated tests started to hang. At the beginning of every test JMManager.waitScanFinished is called, see Thread-4 in attached thread dump. It's called to avoid starting tests during scanning after IDE start. In my testsuite, several tests are executed without problem. Last but one test creates new EAR project. This test is successfull. Last test should create another EAR project, but before it can do it the test hangs. It always hangs in this tests on all lab machines. Build 200505111800 worked fine.
Created attachment 22152 [details] Thread dump
> In my testsuite What is "your testsuite". How can I run it?
It's performance tests for module j2ee, suite gui.MeasureJ2EEActions, testcase gui.action.CreateJ2EEProject.testCreateStandaloneEnterpriseApplicationProject(). You can run it in nb_all/j2ee/test by "ant -Dxtest.testtype=qa-performance -Dxtest.attribs=measure_actions". First tastbag will only setup IDE (open projects etc.), actual tests will run in second (and next) testbag. Same testbag with tests is executed three times to get accurate values.
This testsuite seems to be broken. BUILD FAILED D:\sources\trunk\j2ee\test\build.xml:31: The following error occurred while executing this line: D:\sources\trunk\xtest\lib\module_harness.xml:339: The following error occurred while executing this line: D:\sources\trunk\j2ee\test\build-qa-performance.xml:22: The following error occurred while executing this line: D:\sources\trunk\performance\performancetestutilities\dist\build-performance-tests.xml:19: Cannot find D:\sources\nb_all/nbbuild/templates/xtest-qa-functional.xml imported from D:\sources\trunk\performance\performancetestutilities\dist\build-performance-tests. xml
There are lot of hardcoded paths in performance suite. Please fix it.
I forgot to say that you have to check out performance module, because I depend on it, but apparently you have it. Performance utilities from performance module assumes that modules are in nb_all directory. I will fire a bug against performance module, but meanwhile set property nball.dir, so for you I guess it will be ant -Dxtest.testtype=qa-performance -Dxtest.attribs=measure_actions -Dnball.dir=D:\sources\trunk
Still does not work [java] BUILD FAILED [java] D:\sources\trunk\nbbuild\templates\xtest.xml:49: The following error occurred while executing this line: [java] D:\sources\trunk\xtest\lib\module_harness.xml:339: The following error occurred while executing this line: [java] D:\sources\trunk\performance\test\build-qa-functional.xml:22: The following error occurred while executing this line: [java] D:\sources\trunk\performance\performancetestutilities\dist\build-performance-tests.xml:19: Cannot find D:\sources\nb_all/nbbuild/templates/xtest-qa-functional.xml imported from D:\sources\trunk\performance\performancetestutilities\dist\build-performance-tests.xml [java] Total time: 5 seconds BUILD FAILED D:\sources\trunk\j2ee\test\build.xml:31: The following error occurred while executing this line: D:\sources\trunk\xtest\lib\module_harness.xml:339: The following error occurred while executing this line: D:\sources\trunk\j2ee\test\build-qa-performance.xml:64: Java returned: 1 Total time: 10 seconds
I fixed it and commited to CVS. Please update modules performance and j2ee. Now you don't have to set property nball.dir.
Thanks. BTW j2ee.appserver.path is also hardcoded. I have an observation - there is no visible scanning progress bar during tests. What do you do with the IDE to supress scanning dialog?
Mariane, do you know why scanning progress bar is missing. When I executed j2ee functional test there was visible scanning progress bar. It's strange, because I use the same way for opening projects in performance or functional tests. When I executed your performance tests, scanning progress bar was only visible during scanning jEdit (which was opened by xtest), but was missing during scanning other projects.
Honza, which test do you mean ? Libor, I have no idea, as I know we do nothing to hide scanning progress bar.
I mean Libor's test: nb_all/j2ee/test "ant -Dxtest.testtype=qa-performance -Dxtest.attribs=measure_actions"
*** Issue 59169 has been marked as a duplicate of this issue. ***
Can you attach also ide.log? I assume there could be some assertions there.
Created attachment 22291 [details] messages.log
There is no error or message in messages.log.
Attempt to fix: Checking in ProgressDisplayer.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/ProgressDisplayer.java,v <-- ProgressDisplayer.java new revision: 1.2; previous revision: 1.1 done Please confirm, that this patch helped. If yes, please close this issue. Otherwise we will add additional logging to the code.
It didn't help. It still hangs in waitScanFinished. I tried it on build 200505291800.
I added some debug messages. Checking in JMManager.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/JMManager.java,v <-- JMManager.java new revision: 1.109; previous revision: 1.108 done Please run your tests with -Djavacore.debug.scanning=true and attach the output. Thanks.
Attaching log. After test hang log still grew so I had to terminate IDE.
Created attachment 22436 [details] messages.log with debug logs
Thanks for the log. There must be some race condition in JMManager.shouldOpenProgress(). I think I have a fix. I'll commit it tomorrow.
Hopefully fixed. Please verify. Checking in ProgressDisplayer.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/ProgressDisplayer.java,v <-- ProgressDisplayer.java new revision: 1.3; previous revision: 1.2 done Checking in JMManager.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/JMManager.java,v <-- JMManager.java new revision: 1.110; previous revision: 1.109 done
I verified it in build 200506021800 and it works now so you can mark this issue as fixed.
Fixed.
verified
Reorganization of java component