【问题标题】:Unable to connect to the NetBeans Distribution because of Zero sized file由于文件大小为零,无法连接到 NetBeans 分发版
【发布时间】:2019-06-17 00:39:40
【问题描述】:

我最近在我的 Windows 10 PC 上重新安装了 Netbeans IDE,以恢复一些不相关的配置。当我尝试检查新插件以便能够下载 Sakila 示例数据库时, I get this error.

我已经在 No Proxy 和 Use Proxy Settings 上测试了连接,并且两个连接都测试了seem to end succesfully.

我已经允许 Netbeans 通过我的防火墙,但这也没有改变。

我没有动过我的代理配置,所以它是默认的(自动检测)。关闭自动检测也不会改变任何东西,无论我在 Netbeans 上有什么代理配置。

这是我的日志文件的一部分,可能会有所帮助:

Compiler: HotSpot 64-Bit Tiered Compilers
Heap memory usage: initial 32,0MB maximum 910,5MB
Non heap memory usage: initial 2,4MB maximum -1b
Garbage collector: PS Scavenge (Collections=12 Total time spent=0s)
Garbage collector: PS MarkSweep (Collections=3 Total time spent=0s)
Classes: loaded=6377 total loaded=6377 unloaded 0
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 17.130.041.344
INFO [org.netbeans.modules.autoupdate.updateprovider.DownloadListener]: Connection content length was 0 bytes (read 0bytes), expected file size can`t be that size - likely server with file at http://updates.netbeans.org/netbeans/updates/8.0.2/uc/final/distribution/catalog.xml.gz?unique=NB_CND_EXTIDE_GFMOD_GROOVY_JAVA_JC_MOB_PHP_WEBCOMMON_WEBEE0d55337f9-fc66-4755-adec-e290169de9d5_bf88d09e-bf9f-458e-b1c9-1ea89147b12b is temporary down
INFO [org.netbeans.modules.autoupdate.ui.Utilities]: Zero sized file reported at http://updates.netbeans.org/netbeans/updates/8.0.2/uc/final/distribution/catalog.xml.gz?unique=NB_CND_EXTIDE_GFMOD_GROOVY_JAVA_JC_MOB_PHP_WEBCOMMON_WEBEE0d55337f9-fc66-4755-adec-e290169de9d5_bf88d09e-bf9f-458e-b1c9-1ea89147b12b
java.io.IOException: Zero sized file reported at http://updates.netbeans.org/netbeans/updates/8.0.2/uc/final/distribution/catalog.xml.gz?unique=NB_CND_EXTIDE_GFMOD_GROOVY_JAVA_JC_MOB_PHP_WEBCOMMON_WEBEE0d55337f9-fc66-4755-adec-e290169de9d5_bf88d09e-bf9f-458e-b1c9-1ea89147b12b
	at org.netbeans.modules.autoupdate.updateprovider.DownloadListener.doCopy(DownloadListener.java:155)
	at org.netbeans.modules.autoupdate.updateprovider.DownloadListener.streamOpened(DownloadListener.java:78)
	at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess$Task$1.run(NetworkAccess.java:111)
Caused: java.io.IOException: Zero sized file reported at http://updates.netbeans.org/netbeans/updates/8.0.2/uc/final/distribution/catalog.xml.gz?unique=NB_CND_EXTIDE_GFMOD_GROOVY_JAVA_JC_MOB_PHP_WEBCOMMON_WEBEE0d55337f9-fc66-4755-adec-e290169de9d5_bf88d09e-bf9f-458e-b1c9-1ea89147b12b
	at org.netbeans.modules.autoupdate.updateprovider.DownloadListener.notifyException(DownloadListener.java:103)
	at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache.copy(AutoupdateCatalogCache.java:246)
	at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache.writeCatalogToCache(AutoupdateCatalogCache.java:99)
	at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.refresh(AutoupdateCatalogProvider.java:154)
	at org.netbeans.modules.autoupdate.services.UpdateUnitProviderImpl.refresh(UpdateUnitProviderImpl.java:180)
	at org.netbeans.api.autoupdate.UpdateUnitProvider.refresh(UpdateUnitProvider.java:196)
[catch] at org.netbeans.modules.autoupdate.ui.Utilities.tryRefreshProviders(Utilities.java:433)
	at org.netbeans.modules.autoupdate.ui.Utilities.doRefreshProviders(Utilities.java:411)
	at org.netbeans.modules.autoupdate.ui.Utilities.presentRefreshProviders(Utilities.java:405)
	at org.netbeans.modules.autoupdate.ui.UnitTab$14.run(UnitTab.java:806)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

可能是更新服务器刚刚关闭;我也无法对此进行测试。但这也可能是我的配置有问题。我要疯了!!1!

【问题讨论】:

  • 您没有提及您刚刚安装的 NetBeans 版本,但如果是 8.2,您可以尝试使用 URL updates.netbeans.org/netbeans/updates/8.2/uc/final /certified/catalog.xml.gz 而不是 updates.netbeans.org/netbeans/updates/8.0.2/uc/final/distribution/catalog.xml.gz (我删除了 http:// 从这些 URL 的前面添加,以便它们在此评论中正确显示。)

标签: netbeans netbeans-8 netbeans-platform


【解决方案1】:

对我有用的方法是将更新网址中的“http:”更改为“https:”。

I.E.更改“http://updates.netbeans.org/netbeans/updates/8.0.2/uc/final/distribution/catalog.xml.gz” 到“https://updates.netbeans.org/netbeans/updates/8.0.2/uc/final/distribution/catalog.xml.gz”

不知道为什么这使它对我有用。我正在运行 Linux Mint 19.1。

【讨论】:

猜你喜欢
  • 2016-09-28
  • 1970-01-01
  • 2016-03-22
  • 1970-01-01
  • 2022-10-04
  • 2022-09-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多