You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an URL has no port then the value -1 will be returned. This results in the following exception
Exception in thread "main" java.lang.IllegalArgumentException: port out of range:-1
at java.base/java.net.InetSocketAddress.checkPort(InetSocketAddress.java:153)
at java.base/java.net.InetSocketAddress.<init>(InetSocketAddress.java:234)
at org.moditect.layrry.config.UrlDownloader.setupProxy(UrlDownloader.java:115)
at org.moditect.layrry.config.UrlDownloader.download(UrlDownloader.java:48)
at org.moditect.layrry.config.LayersConfigLoader.loadConfig(LayersConfigLoader.java:102)
at org.moditect.layrry.config.LayersConfigLoader.loadConfig(LayersConfigLoader.java:66)
at org.moditect.layrry.Layrry.run(Layrry.java:48)
at org.moditect.layrry.launcher.LayrryLauncher.launch(LayrryLauncher.java:70)
at org.moditect.layrry.launcher.LayrryLauncher.main(LayrryLauncher.java:41)
Solution: check the value of the given port and use url.getDefaultPort() if needed.
The text was updated successfully, but these errors were encountered:
If an URL has no port then the value
-1
will be returned. This results in the following exceptionSolution: check the value of the given port and use
url.getDefaultPort()
if needed.The text was updated successfully, but these errors were encountered: