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 215881 - Can't instal FindBugs plugin
Summary: Can't instal FindBugs plugin
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: FindBugs (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-24 14:14 UTC by Ondrej Brejla
Modified: 2016-07-07 07:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
FindBugs err (62.45 KB, image/png)
2012-07-24 14:14 UTC, Ondrej Brejla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Brejla 2012-07-24 14:14:39 UTC
Created attachment 122303 [details]
FindBugs err

If I select: Tools -> Options -> Plugins -> Available Plugins -> FindBugs

It ends up with an error, see attachement.
Comment 1 Tomas Mysik 2012-07-25 14:01:27 UTC
Could be related or the same problem:

INFO [org.netbeans.modules.autoupdate.ui.wizards.InstallStep]: http://updates.netbeans.org/netbeans/updates/7.2/uc/final/certified/extra/org-netbeans-libs-findbugs.nbm
org.netbeans.api.autoupdate.OperationException: http://updates.netbeans.org/netbeans/updates/7.2/uc/final/certified/extra/org-netbeans-libs-findbugs.nbm
	at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doDownload(InstallSupportImpl.java:796)
	at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doDownload(InstallSupportImpl.java:672)
	at org.netbeans.modules.autoupdate.services.InstallSupportImpl.access$600(InstallSupportImpl.java:90)
	at org.netbeans.modules.autoupdate.services.InstallSupportImpl$1.call(InstallSupportImpl.java:186)
	at org.netbeans.modules.autoupdate.services.InstallSupportImpl$1.call(InstallSupportImpl.java:133)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[catch] at java.lang.Thread.run(Thread.java:722)
Comment 2 Jan Lahoda 2012-07-26 07:41:06 UTC
There are probably several problems, all derived from the fact that the NBM does not really contain the FB jars, only references to them. Each of these problems is making the other ones worse:
1. the libs.findbugs module has a wrong size on the 7.2 AUC - it does not include the size of external binaries that needs to be downloaded.
2. one of the URLs from which FB jars is being downloaded uses maven to download them, which uses maven proxy settings to connect, not the IDE ones.
3. the NBM requires access to internet (maven central in this case) to install.

I have asked Petr G. if there is something that could be done with 1. I am considering options for 2 (originally, I though that simply using only the http URLs would be fine, but using file:$HOME/.m2/.../ and then a http URL might work better). Unfortunately, I don't see any solution to 3 - the jars simply cannot be part of the NBM. So if there is no connection to maven central, the NBM cannot be installed (which may normally happen e.g. due to incorrect proxy settings, but yesterday it might have actually been some problem on the server, as I have heard several reports at about the same time). I (or Jirka) will need to see if the autoupdate can be improved to show a more convenient message when an external download fails.
Comment 3 pjdm 2012-10-31 11:13:30 UTC
I added bug 220002 to document a method of installing FindBugs off-line, but it doesn't seem to be a documentation fix.

Number 3 in comment 2 seems to be the heart of the problem: off-line means no connection to Maven central.

Please provide a method for installing FindBugs off-line. Some systems do not have any Internet connection, so an improved error message does not provide a solution.
Comment 4 Petr Cyhelsky 2013-07-31 14:57:50 UTC
changing owner
Comment 5 Martin Balin 2016-07-07 07:16:42 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss