Error in SonarLint for IntelliJ IllegalArgumentException: port out of range:-1


  • Java: JetBrains s.r.o. 17.0.7
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.2
  • SonarLint:
java.lang.IllegalArgumentException: port out of range:-1
	at java.base/
	at java.base/<init>(
	at java.base/$3$1.accept(
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(
	at java.base/
	at java.base/
	at java.base/$ReduceOp.evaluateSequential(
	at java.base/
	at java.base/
	at org.apache.hc.client5.http.impl.routing.SystemDefaultRoutePlanner.determineProxy(
	at org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner.determineRoute(
	at org.apache.hc.client5.http.impl.async.InternalHttpAsyncClient.determineRoute(
	at org.apache.hc.client5.http.impl.async.InternalAbstractHttpAsyncClient.lambda$doExecute$0(

Hi @mblascht, thank you for your report!

I suspect you use a Proxy within IntelliJ and your URI does not provide a port number. If that’s the root cause, it’s an issue on our side.

Edit: It seems that I identified an issue on our side regarding the proxy selector. I created those tickets 1 and 2 as a result. It should be part of the next release at the end of the month or within a patch depending on the impact.

Same error here

Note that if that’s a blocker, we invite you to downgrade to the previous 8.4 version by following the steps to directly install the plugin from disk while we work on it.

Is there a roadmap, when the fix is pubilshed?

We will proceed to create a patch today containing the fixes. I will keep you updated whenever this is ready.


Patch, version 8.5.1, was released today, could you please update and see if the issue is resolved? Thank you!