INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Timeout while opening connection to http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/enterprise/org-netbeans-modules-websvc-metro-lib.nbm
java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess$Task$1.run(NetworkAccess.java:111)
Caused: java.io.IOException: Timeout while opening connection to http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/enterprise/org-netbeans-modules-websvc-metro-lib.nbm
at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess$Task$1.run(NetworkAccess.java:131)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Cannot access http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/enterprise/org-netbeans-modules-websvc-metro-lib.nbm
java.io.IOException: Cannot access http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/enterprise/org-netbeans-modules-websvc-metro-lib.nbm
at org.netbeans.modules.autoupdate.services.InstallSupportImpl.copy(InstallSupportImpl.java:981)
[catch] at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doDownload(InstallSupportImpl.java:733)
at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doDownload(InstallSupportImpl.java:661)
at org.netbeans.modules.autoupdate.services.InstallSupportImpl.access$600(InstallSupportImpl.java:92)
at org.netbeans.modules.autoupdate.services.InstallSupportImpl$1.call(InstallSupportImpl.java:172)
at org.netbeans.modules.autoupdate.services.InstallSupportImpl$1.call(InstallSupportImpl.java:144)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2条答案
按热度按时间ou6hu8tu1#
代理服务器设置对我来说不是问题。
我运行的是NetBeans 11.0,看到配置了4个默认的“更新中心”。由于与代理设置无关,我发现“NetBeans插件门户”URL出现
https://netbeans.apache.org/nb/plugins/11.1/catalog.xml.gz
故障,上次成功检查此站点是在4/20/21。我的解决方案是取消选择该更新中心,并添加11.0存档站点:
http://plugins.archive.librebeans.org/catalogue/11.0/catalog.xml
个现在我可以像预期的那样更新/安装插件了。也许这也是适合你的解决方案。
z9gpfhce2#
很久以前就有很多类似的问题(例如this one),建议主要是关于错误配置的代理。在我的案例中,查看IDE日志文件时发现了以下堆栈跟踪:
因为我以为我的代理设置没什么问题(没有选择代理,连接测试正常),我搜索了又搜索,甚至进入NetBeans代码,试图找到一些隐藏的Timeout属性是徒劳的。确实在代码中有一个地方(AutoupdateSettings.getOpenConnectionTimeout,似乎对应于plugin.manager.connection.timeout属性),它设置了一个超时--但我无法使其工作(在~/AppData/Roaming/NetBeans/8.2/config/Preferences/org/netbeans/modules/autoupdate中处理.properties文件)
最后,我找到的唯一解决方法是手动下载堆栈跟踪中提到的NBM文件。看起来要么是我的防火墙(防病毒检查?),要么是文件本身太大,因此导致超时。要么是服务器过载。总之。
幸运的是,可以通过Tools -〉Plugins -〉Downloaded -〉Add Plugins来安装下载的文件,即使该插件已经安装。这样做的更新过程正常继续(尽管后来又有一次超时-所以我重复了上面的过程),并最终完成。
上面的插件是METRO 2.0和JAXB 2.2,我必须手动安装它们