Skip to content

Commit 928b05d

Browse files
committed
add error message about finishConnect() permissions error
Error below: java.net.ConnectException: Permission denied: no further information at java.net.http/jdk.internal.net.http.HttpClientImpl.send(Unknown Source) at java.net.http/jdk.internal.net.http.HttpClientFacade.send(Unknown Source) at net.runelite.launcher.Launcher.getBootstrap(Launcher.java:489) at net.runelite.launcher.Launcher.postInstall(Launcher.java:929) at net.runelite.launcher.Launcher.main(Launcher.java:265) Caused by: java.net.ConnectException: Permission denied: no further information at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Unknown Source) at java.net.http/jdk.internal.net.http.PlainHttpConnection$ConnectEvent.handle(Unknown Source) at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent(Unknown Source) at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3(Unknown Source) at java.base/java.util.ArrayList.forEach(Unknown Source) at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(Unknown Source) Caused by: java.net.SocketException: Permission denied: no further information at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
1 parent 7545556 commit 928b05d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/net/runelite/launcher/FatalErrorDialog.java

+9
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import java.awt.event.WindowEvent;
3636
import java.awt.image.BufferedImage;
3737
import java.io.IOException;
38+
import java.net.ConnectException;
3839
import java.net.SocketException;
3940
import java.net.UnknownHostException;
4041
import java.security.GeneralSecurityException;
@@ -224,11 +225,19 @@ public static void showNetErrorWindow(String action, Throwable err)
224225
message += " Cannot assign requested address. This error is most commonly caused by \"split tunneling\" support in VPN software." +
225226
" If you are using a VPN, try turning \"split tunneling\" off.";
226227
}
228+
// connect() returning SOCKET_ERROR:
227229
// WSAEACCES error formatted by NET_ThrowNew()
228230
else if (err.getMessage().equals("Permission denied: connect"))
229231
{
230232
message += " Your internet access is blocked. Firewall or antivirus software may have blocked the connection.";
231233
}
234+
// finishConnect() waiting for connect() to finish:
235+
// Java_sun_nio_ch_SocketChannelImpl_checkConnect throws the error, either from select() returning WSAEACCES
236+
// or SO_ERROR being WSAEACCES. NET_ThrowNew adds on the "no further information".
237+
else if (err instanceof ConnectException && err.getMessage().equals("Permission denied: no further information"))
238+
{
239+
message += " Your internet access is blocked. Firewall or antivirus software may have blocked the connection.";
240+
}
232241
else
233242
{
234243
message += " Please check your internet connection.";

0 commit comments

Comments
 (0)