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.
Test always fail by timeout on JDK 8: Error Timeout occurred. Please note the time in the report does not reflect the time until the timeout. junit.framework.AssertionFailedError: Timeout occurred. Please note the time in the report does not reflect the time until the timeout.
Fails for me even with JDK7 in 7.4 code base on Waiting for classpath scanning to finish timed out junit.framework.AssertionFailedError: Waiting for classpath scanning to finish timed out at org.netbeans.modules.csl.api.test.CslTestBase$Waiter.waitForScanToFinish(CslTestBase.java:4626) at org.netbeans.modules.csl.api.test.CslTestBase$Waiter.waitForScanToFinish(CslTestBase.java:4626) at org.netbeans.modules.csl.api.test.CslTestBase.setUp(CslTestBase.java:277)
I just tested it on 7.3.1 and 7.4 both with JDK 1.7.0_25-b15 and everything everytime passed properly. That think, that some tests sometimes fail due to "Waiting for classpath scanning to finish timed out" is a known issue, but it failes absolutely randomly (I've never seen that on my local machine, just on Hudson). We know about that, but noone knows what is the cause, since it can't be simply reproduced. So for me this is won't fix, or P4. I'll leave it as P4 as a reminder, but I can't do anything with that. Just one think, imho it's not just a problem of testImportData_01 test, sometimes I see it on another tests as well. It's scanning related. Product Version: NetBeans IDE 7.3.1 (Build 201306052037) Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15 System: Linux version 3.8.0-27-generic running on i386; UTF-8; cs_CZ (nb) Product Version: NetBeans IDE Dev (Build 20130820-840feebb454f) Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15 System: Linux version 3.8.0-27-generic running on i386; UTF-8; cs_CZ (nb)
Maybe guys from csl could know why scanning didn't finished...
You should use JDK ___8___ to reproduce. read the title please
I responded to Jirka who has problem with JDK7 as well...
OK, sorry for mixing JDK7 here. Just fix problem with JDK8. But if you need to reproduce "waiting timed out", I am able to reproduce it reliably on my local Windows7.
org.netbeans.modules.php.editor.actions.ImportDataCreatorTest::testImportData_09_issue209408 fails with timeout as well. Isn't it the same issue?
As I wrote, it will probably fail in many cases (since scanning probably never finishes in CslTests)...it fails on JDK7 as well, just randomly. Svato, can you somehow evaluate, why scanning doesn't finish in some cases? Thanks in advance.
I spent some time on this and if you remove line suppressUselessLogging(); in PHPTestBase, you get the reason why waitForScanToFinish() fails. There is an exception thrown from RepositoryUpdater which causes that "scanSources" message is never logged. See attached stack traces for JDK7 and JDK8 cases.
Created attachment 139004 [details] Stack trace from RepositoryUpdater for JDK7.
Created attachment 139005 [details] Stack trace from RepositoryUpdater for JDK8.
Thanks for that. Did you try to clean & build php.editor module right before running tests on JDK 7? Everytime I forget about it, I get CNF error. On JDK 7 it seems to be JS problem (probably some tests from JS will not pass either). Can you confirm that?
Clean and build of php.editor helps on JDK7. If JavaScript tests depend on CslTestBase then they will fail as well.
Yep, exactly as we thought. So reassigning to JS with JDK_8 keyword (since problem on JDK 8 is with nashorn). Right?
I don't know I didn't try JavaScript tests.
I just talked with phejl (js nashron expert ;) and he said that that JS error shouldn't happen on NB 7.4 dev. That it should be fixed. So please, AlexanderIoffe, try it there [1]. If the problem still prersists, then simply reopen. Thanks. [1] http://bits.netbeans.org/download/trunk/nightly/latest/
Still the same exception as mentioned in comment 11. Reproduced in main repository #a7132d8a497b: ant -k -f php.editor test test-generate-html -Dnbjdk.home=D:/jdk1.8.0 -Dtest.includes=**/ImportDataCreatorTest.class
(In reply to Jiri Skrivanek from comment #17) > Still the same exception as mentioned in comment 11. Reproduced in main > repository #a7132d8a497b: > > ant -k -f php.editor test test-generate-html -Dnbjdk.home=D:/jdk1.8.0 > -Dtest.includes=**/ImportDataCreatorTest.class Looks like the test does not respect OpenIDE-Module-Hide-Classpath-Packages specified in libs.nashorn. Either the test or test classpath is misconfigured somehow or there is an issue in platform.
> Either the test or test classpath is > misconfigured somehow or there is an issue in platform. So, please, fix the test or test classpath. Let me know if I can help you. My configuration is the following: Java(TM) SE Runtime Environment (build 1.8.0-ea-b103) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b45, mixed mode) System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
*** This bug has been marked as a duplicate of bug 237546 ***