You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Martin Entlicher (Jira)" <ji...@apache.org> on 2021/10/12 12:40:00 UTC
[jira] [Created] (NETBEANS-6126) NullPointerException: Cannot
invoke "java.net.URL.toURI()" because the return value of
"AutoupdateCatalogProvider.getUpdateCenterURL()" is null
Martin Entlicher created NETBEANS-6126:
------------------------------------------
Summary: NullPointerException: Cannot invoke "java.net.URL.toURI()" because the return value of "AutoupdateCatalogProvider.getUpdateCenterURL()" is null
Key: NETBEANS-6126
URL: https://issues.apache.org/jira/browse/NETBEANS-6126
Project: NetBeans
Issue Type: Bug
Components: platform - Autoupdate
Reporter: Martin Entlicher
I've got this exception in an VSCode extension, but it seems to be a generic NetBeans issue. Run on JDK 17 and the system did not have network available at the moment. The exception has caused crash of the NetBeans backend in the VSCode extension:
{code}
java.lang.NullPointerException: Cannot invoke "java.net.URL.toURI()" because the return value of "org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.getUpdateCenterURL()" is null
at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.getUpdateItems(AutoupdateCatalogParser.java:165)
at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.getUpdateItems(AutoupdateCatalogProvider.java:120)
at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:150)
at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:118)
at org.netbeans.modules.autoupdate.services.UpdateManagerImpl$Cache.<init>(UpdateManagerImpl.java:267)
at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getCache(UpdateManagerImpl.java:227)
at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:186)
at org.netbeans.api.autoupdate.UpdateManager.getUpdateUnits(UpdateManager.java:67)
at org.netbeans.modules.autoupdate.cli.ModuleOptions.listAllModules(ModuleOptions.java:138)
at org.netbeans.modules.autoupdate.cli.ModuleOptions.process(ModuleOptions.java:170)
at org.netbeans.spi.sendopts.Option$1.process(Option.java:362)
at org.netbeans.api.sendopts.CommandLine.process(CommandLine.java:336)
at org.netbeans.modules.sendopts.HandlerImpl.execute(HandlerImpl.java:37)
at org.netbeans.modules.sendopts.Handler.cli(Handler.java:44)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209)
at org.netbeans.core.startup.CLICoreBridge.cli(CLICoreBridge.java:57)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209)
at org.netbeans.CLIHandler$1.exec(CLIHandler.java:243)
at org.netbeans.CLIHandler.finishInitialization(CLIHandler.java:423)
at org.netbeans.MainImpl.finishInitialization(MainImpl.java:231)
at org.netbeans.Main.finishInitialization(Main.java:67)
at org.netbeans.core.startup.Main.start(Main.java:291)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
at java.base/java.lang.Thread.run(Thread.java:833)
Cannot find org.netbeans.modules.java.lsp.server in the log!
Request to kill LSP server.
Cannot kill: Requested kill on 230607, current process is None
Apache NetBeans Language Server not enabled!
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists