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 211560 - Unable to use Plugin Manager when one provider is hung
Summary: Unable to use Plugin Manager when one provider is hung
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Plugin Manager (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 211951 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-22 14:17 UTC by Jesse Glick
Modified: 2012-05-11 16:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (21.19 KB, text/plain)
2012-04-22 14:17 UTC, Jesse Glick
Details
Screenshot (18.36 KB, image/png)
2012-04-22 14:18 UTC, Jesse Glick
Details
Help > Check for Updates also hangs (16.77 KB, image/png)
2012-04-22 14:21 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-04-22 14:17:40 UTC
Created attachment 118600 [details]
Thread dump

20120420-53323b77776c. One of the update sites in my configuration is not responding - not sure which, but probably a NetBeans site, since deadlock.netbeans.org is also not responding at the moment, so likely a network issue. Unfortunately PM seems to be loading this network content while initializing the dialog. In the meantime, all controls in the dialog are disabled, so I cannot even go to the Settings tab and try disabling that update site temporarily!

I would not expect network connections to be made while the dialog is being prepared - only when the Reload Catalog button is clicked. But if you do want to trigger an automated refresh at this time, at least offer a Cancel button. And display the name of the update site being loaded in the progress bar!
Comment 1 Jesse Glick 2012-04-22 14:18:04 UTC
Created attachment 118601 [details]
Screenshot
Comment 2 Jesse Glick 2012-04-22 14:21:07 UTC
Created attachment 118602 [details]
Help > Check for Updates also hangs
Comment 3 Jesse Glick 2012-04-22 14:31:12 UTC
Workaround is to edit relevant $userdir/config/Preferences/org/netbeans/modules/autoupdate/*.properties to say enabled=false, then restart IDE.
Comment 4 Jiri Rechtacek 2012-04-23 19:30:31 UTC
I guess it makes it faster - core-main/rev/834829579dbd
Comment 5 Jesse Glick 2012-04-23 21:41:27 UTC
This seems like avoiding the problem in most cases but leaving it in less common cases. getInputSource, which I suppose is operating on cached data, should directly examine toParse.openStream() to see if it is in GZIP format. (I.e. whether it starts with \037\213, at least according to gzip-1.2.4.tar.gz!/INSTALL.) Why would it ever try to make a network connection?

BTW isGzip also opens a URLConnection which it does not close, which could leak a socket.
Comment 6 Quality Engineering 2012-04-25 09:57:39 UTC
Integrated into 'main-golden', will be available in build *201204250400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/834829579dbd
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #211560: Unable to use Plugin Manager when one provider is hung
Comment 7 Jiri Rechtacek 2012-05-11 16:36:40 UTC
*** Bug 211951 has been marked as a duplicate of this bug. ***