Please provide
- Operating system: Windows 11 22H2 (OS Build 22621.1265)
- SonarLint plugin version: 3.15.1
- Programming language you’re coding in: Apex
- Is connected mode used:
- Connected to SonarCloud or SonarQube (and which version): SonarQube Enterprise Edition Version 8.9 (build 43852)
And a thorough description of the problem / question: I’ve configured SonarLint to connect to SonarQube in connected mode. But the connection seems to be not possible.
I’m working behind a corporate VPN. I also have the server certificate installed in my system. Java is allowed through my Windows Defender firewall for both Private and Public networks.
Below is my SonarLint config:
"sonarlint.connectedMode.connections.sonarqube": [
{
"serverUrl": "https://salesforce-b2b-sonarqube.tcloud-acc1.np.aws.kpn.org"
}
],
"sonarlint.ls.javaHome": "C:\\\\Program Files\\\\Zulu\\\\zulu-11",
"sonarlint.connectedMode.project": {
"projectKey": "SIT"
}
The Error I’m getting in VSCode SonarLint output window:
[Info - 10:48:04.451] Started request handler on port 64120
Initializing file:///c%3A/Users/debna501/repos/team-guinness on branch feature/SMEE-58798-integrate-with-servicenow-for-creation-of-complaints
[Warn - 10:49:01.172] Failed to request SonarLint notifications
[Warn - 10:49:01.172] java.lang.IllegalStateException: java.net.SocketException: Permission denied: no further information
at org.sonarsource.sonarlint.ls.http.ApacheHttpClient.executeSync(ApacheHttpClient.java:199)
at org.sonarsource.sonarlint.ls.http.ApacheHttpClient.get(ApacheHttpClient.java:63)
at org.sonarsource.sonarlint.core.serverapi.ServerApiHelper.rawGet(ServerApiHelper.java:96)
at org.sonarsource.sonarlint.core.serverapi.developers.DevelopersApi.getEvents(DevelopersApi.java:57)
at org.sonarsource.sonarlint.core.serverconnection.smartnotifications.NotificationChecker.request(NotificationChecker.java:42)
at org.sonarsource.sonarlint.core.serverconnection.smartnotifications.NotificationTimerTask.requestForServer(NotificationTimerTask.java:75)
at org.sonarsource.sonarlint.core.serverconnection.smartnotifications.NotificationTimerTask.run(NotificationTimerTask.java:59)
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
at java.base/java.util.TimerThread.run(Timer.java:506)
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(SocketChannelImpl.java:777)
at org.apache.hc.core5.reactor.InternalConnectChannel.onIOEvent(InternalConnectChannel.java:64)
at org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(InternalChannel.java:51)
at org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(SingleCoreIOReactor.java:178)
at org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:127)
at org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:85)
at org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44)
at java.base/java.lang.Thread.run(Thread.java:829)
I can open the SonarQube URL from on Chrome just fine. So my pc can connect to SonarQube server. While I’m almost sure that some firewall or network connectivity issue is probably causing this, I don’t know what to describe to my IT support team to check. Could you please help me? Let me know in case any other details are required.