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.
This is reproduced only with VisualVM, not with netbeans. See original VisualVM bug #454 <http://java.net/jira/browse/VISUALVM-454> Kill Application plugin installs fine in the 1st VisualVM session but in subsequent sessions installation timeouts. Steps to reproduce: =================== 1. Launch VisualVM with empty userdir. 2. Invoke "Tools > Plugins", switch to "Available Plugins" tab, check "KillApplication" entry and push "Install" button. 3. Push "Next >", confirm license and finish the installation. It will be successful. 4. Now delete the userdir e.g. ~/.visualvm/1.3.2 and launch VisualVM. 5. Exit it and launch again. 6. Repeat steps 2 and 3 but installation will timeout.
The log from the autoupdate shows that the plugin installs fine, but according to org.netbeans.core.startup.ModuleList log, the filesystems never fires the 'fileDataCreated' event that there is a new .xml file in the Modules directory. While debugging the code, I found out that ModuleList listens on the fileobject representing the Modules directory, but no-one asked it for its children and therefor it fires no events. Based on this evaluation I was able to workaround this problem, but simply invoking getChildren() on the Modules directory fileobject in module install of one of the VisualVM modules. See <http://java.net/projects/visualvm/sources/svn/diff/trunk/visualvm/appui/src/com/sun/tools/visualvm/modules/appui/Install.java?rev1=2983&rev2=2984>.
Thanks for the analysis: ergonomics#14528d224a90
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/14528d224a90 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #204035: Initialize the listener by always asking for children
Verified in VisualVM with NB 7.1 RC2.