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.
Running whitelist tests indicates that org.netbeans.modules.j2ee.deployment.impl.query.J2eePlatformSourceForBinaryQuery.findSourceRoots2() loads 33 classes from j2ee.deployment.plugins, glassfish.javaee, etc. while there does not seem to be a single registered server. This has already been reported as bug 177841 and bug 148177, but as those bugs are said to be fixed, I am reporting new bug to track it again.
Not all classes have to be eliminated, some may be infrastructure ones. But clearly loading glassfish related classes is wrong. See http://deadlock.netbeans.org/hudson/job/ergonomics/2571/ for list of related issues.
Hi, I can not see 33 classes from j2ee.deployment.plugins, glassfish.javaee in http://deadlock.netbeans.org/hudson/job/ergonomics/2571/testReport/org.netbeans.test.ide/WhitelistTest/testWhitelist3/, I only see 2: org.netbeans.modules.glassfish.common.wizards.GlassfishWizardProvider org.netbeans.modules.j2ee.deployment.plugins.spi.ServerLibraryManager Which other classes did you have in mind? Thanks.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/9c834f488ea6 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #200049: Allowing Glassfish & co. - backout when the bug is fixed
Not a stopper for 7.0.1 -> TM=7.1.
The 33 classes are counted together with bug 177841 and 148177 which are marked as fixed, but in fact they were not. To reproduce I suggest to remove the classes following line # IZ 200049 in http://hg.netbeans.org/main-golden/rev/9c834f488ea6 and re-run the tests.
"Profiling" snapshot showing who loads what violator: http://netbeans.org/bugzilla/attachment.cgi?id=109525
Created attachment 111427 [details] the patch
The patch prevents instantiation of serverplugin classes when there are no instances of the server registered in the IDE. Please review.
Thanks for the review. I'll integrate the change tomorrow.
Fixed in web-main f099b820fb2e.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/f099b820fb2e User: Petr Hejl <phejl@netbeans.org> Log: #200049 33 classes via J2eePlatformSourceForBinaryQuery
I reverted the patch as it introduced bug #203816.
I am trying to run WhitelistTest.testWhitelist3(), but I am not succeeding: testWhitelist3 Failed: The test testWhitelist3 did not finish in 449304ms ... Anyway, do we have some plan how to fix this? If not, then I suggest to close this as WONTFIX.
I'll give it one more day. The issue preventing this to be resolved is the complicated side effect GF registration in GF plugin. Unfortunatelly this is also deadlock prone part of GF.