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.

Bug 168697 - Plugin uninstallation takes forever
Summary: Plugin uninstallation takes forever
Status: RESOLVED DUPLICATE of bug 168672
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: dlipin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-16 16:34 UTC by ejvyas
Modified: 2012-02-29 19:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
This is just an example. Any plugin uninstall has bad performance (27.58 KB, image/jpeg)
2009-07-16 16:35 UTC, ejvyas
Details
messages.log (37.35 KB, text/plain)
2009-07-16 21:22 UTC, ejvyas
Details
console picture (45.98 KB, image/jpeg)
2009-07-16 21:23 UTC, ejvyas
Details
console output correct version (14.38 KB, text/plain)
2009-07-16 22:16 UTC, ejvyas
Details
message new (37.35 KB, text/plain)
2009-07-16 22:18 UTC, ejvyas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ejvyas 2009-07-16 16:34:10 UTC
Firstly, I am not sure about the categorization of this bug.

I have a fresh installation of Netbeans 6.7 and I found millions of unwanted plugins installed automatically (not good)
I went ahead and tried to uninstall. Tools->Plugins->Installed->Show details.

Sample screen attached. 

It takes forever to find dependencies. The status message is "Please wait until the installer discovers plugin
dependencies" (over 15 minutes now)
Comment 1 ejvyas 2009-07-16 16:35:01 UTC
Created attachment 84843 [details]
This is just an example. Any plugin uninstall has bad performance
Comment 2 dlipin 2009-07-16 16:41:56 UTC
could you please attach the ~/.netbeans/6.7/var/log/messages.log file and a few thread dumps as well?
http://wiki.netbeans.org/GenerateThreadDump

thanks in advance,
Dmitry
Comment 3 ejvyas 2009-07-16 16:52:59 UTC
I do not understand the Windows instructions (Probably I will raise an issue for that - which component?)

Ctrl - Break does not get me anything NOR do I have any nb.exe
Comment 4 dlipin 2009-07-16 20:53:36 UTC
Open command prompt (cmd.exe), change directory (cd) to <installdir>\bin and execute 
netbeans.exe > output.txt 2>&1

Reproduce the issue (wait while NB is "hanging" at the uninstallation dialog), press ctrl-break 2-3 times with ~1 
second delay, exit the dialog and the NetBeans.

After that please attach output.txt and ~/.netbeans/6.7/var/log/messages.log.

Thanks,
Dmitry

PS. Regarding the instructions - that is the wiki page, it is supported by several peaple... and no issuezilla 
component.
Comment 5 ejvyas 2009-07-16 21:22:31 UTC
Created attachment 84860 [details]
messages.log
Comment 6 ejvyas 2009-07-16 21:23:28 UTC
Created attachment 84861 [details]
console picture
Comment 7 ejvyas 2009-07-16 21:25:13 UTC
I have run the console command (see console picture attached) as you said. When I do Ctrl+Break it exits to c:\. Is this
correct? The output.txt is blank. 

I guess I am missing something here. Please let me know and I will try it again

Thanks!
Comment 8 dlipin 2009-07-16 21:50:34 UTC
Hm... it does not work for me either :(
The thing that work is to run "netbeans --console new" from the command line. 
That will open new console window. Make sure that that window have enough buffer (Right-click on the window title, 
choose "Properties", then "Layout" tab and set e.g. 3000 as the Screen Buffer Size height (the rest values can be the 
default), click OK.

After that reproduce the issue, go to that new console window, type Ctrl-Break a few times (you`ll see the thread dumps 
in the console window), then close the plugin uninstallation dialog and exit NB. 
After that do the right-click on that console window, choose Edit->Select All, then press Enter in that Window.
Then open Notepad and do Ctrl-V, save the file and attach it here.
That`s it.

However I already see the following issue in the log, maybe it is the reason.
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor 
org.netbeans.modules.autoupdate.ui.wizards.OperationDescriptionStep$1
java.lang.ClassCastException: org.netbeans.modules.autoupdate.services.FeatureUpdateElementImpl cannot be cast to 
org.netbeans.modules.autoupdate.services.ModuleUpdateElementImpl
	at org.netbeans.modules.autoupdate.services.OperationValidator.filterCandidatesToDeactivate
(OperationValidator.java:528)
	at org.netbeans.modules.autoupdate.services.OperationValidator.findRequiredModulesForDeactivate
(OperationValidator.java:514)
	at org.netbeans.modules.autoupdate.services.OperationValidator.access$1000(OperationValidator.java:67)
	at org.netbeans.modules.autoupdate.services.OperationValidator$UninstallValidator.getRequiredElementsImpl
(OperationValidator.java:261)
	at org.netbeans.modules.autoupdate.services.OperationValidator.getRequiredElements(OperationValidator.java:126)
	at org.netbeans.modules.autoupdate.services.OperationContainerImpl$OperationInfoImpl.getRequiredElements
(OperationContainerImpl.java:339)
	at org.netbeans.api.autoupdate.OperationContainer$OperationInfo.getRequiredElements(OperationContainer.java:373)
	at org.netbeans.modules.autoupdate.ui.wizards.OperationWizardModel.getRequiredUpdateElements
(OperationWizardModel.java:130)
	at org.netbeans.modules.autoupdate.ui.wizards.OperationDescriptionStep$1.run(OperationDescriptionStep.java:180)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)

That is very close to Issue 168672 if not the same (with the only difference is the assertions enabled/disabled).
Comment 9 ejvyas 2009-07-16 22:16:43 UTC
Created attachment 84863 [details]
console output correct version
Comment 10 ejvyas 2009-07-16 22:18:03 UTC
Created attachment 84864 [details]
message new
Comment 11 ejvyas 2009-07-16 22:20:10 UTC
Does this mean we cannot uninstall a plugin until this is fixed?
Comment 12 dlipin 2009-07-17 17:01:31 UTC
BTW, is it reproducible with development builds?
http://bits.netbeans.org/netbeans/trunk/nightly/latest/
Comment 13 dlipin 2009-07-23 11:37:44 UTC

*** This issue has been marked as a duplicate of 168672 ***