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.
Description: From time to time IDE thinks that there's classpath scan running in the background but there's no user visible feedback regarding this in the progress bar in the right bottom corner of the IDE User impact: No java refactoring features can be used Workaround: none - only restart of the IDE reproducibility: Almost 100% reproducible in tests[1] on hudson4qe, randomly appearing during manual work in the IDE. I managed to reproduce this on win vista + jdk6u10fcs, ubuntu + jdk6u10fcs manually and on various configs in tests including winXP, XP-64b, ubuntu, solaris and JDK 1.5 u15, u16, u17 and JDK6u10. evaluation from Tomas Z.: "It seems that RU is waiting in waitu: public synchronized void waitScanFinished () throws InterruptedException { while (isScanInProgress()) { this.wait(1000); } } " Heap dumps from JDK5_u17 and JDK6_u10 were scp'ed to Pavel F. already. [1]: ant -f $HG_ROOT/websvc.restkit/build.xml clean test-qa-functional -Dtest.config=stable -Dtest-qa-functional-sys-prop.glassfish.home=/home/lukas/_rc1/glassfish-v2ur2
Created attachment 72589 [details] original threaddump
My first observations (based on dump from Lukas): return notInitialized || this.noSubmited > 0 || !GlobalSourcePath.getDefault().isFinished(); notInitialized is false; this.noSubmited is 1; firerTask.finished is true Cc'ing Tomas, it does not seem to be related to RP as Yarda expected.
Created attachment 72596 [details] Obrazek I
Created attachment 72597 [details] Obrazek I
Created attachment 72598 [details] Obrazek II
It's strange, the noSubmitted is decreased in finally block of worker. Anyway we can add debug messages to find out why it's not decreased.
btw: I think I've found at least somehow reliable way how to reproduce this in 6.5 RC2-FCS build on linux JDK6u10 or at least it happend to me during last week quite often after following steps: -start IDE (Java configuration, all servers installed) -open websvc.kit and websvc.restkit modules -open arbitrary test from qa-functional packages repeat: -work on it (ie. adding new tests, methods etc.) -run Run File on it - (let the test finish) || (stop the test by "Stop" button in IDE's output tab) || (somehow close IDE opened by a test) end repeat at some point (usually after 2 or more hours of work) code completion starts to show only "Scanning in progress", refactoring, find usages etc stops working. -I'm adding RANDOM kw anyway since I still don't have any exact steps -in case you want to try it yourself, here's info about tests: http://wiki.netbeans.org/WSTests#section-WSTests-FunctionalTests
*** Issue 153128 has been marked as a duplicate of this issue. ***
*** Issue 154355 has been marked as a duplicate of this issue. ***
Created attachment 74843 [details] Suggested fix - need testing (contains also logging)
suggested fix seems to be OK - at least I haven't been able to reproduce this again. Would it be possible to keep logging there (say at FINEST level) for a few days in case this happen in tests? Thanks.
http://hg.netbeans.org/main?cmd=changeset;node=8e9624033606 Patch applied. -- Logging is available at FINEST level. Thanks Honza and Tomas. Once verified,
Integrated into 'main-golden', will be available in build *200812131401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8e9624033606 User: Pavel Flaska <pflaska@netbeans.org> Log: #151267: Scanning does not finish
me neither tests we're able to reproduce this during last week => v.
The fix has been ported into the release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/411ce939197e