Sonarlint throws IllegalStateException when Finish is pressed on the Bind to SonarQube wizard

Errors about not being able to connect to SonarQube were being displayed in Eclipse. I decided to delete my existing connection and reconnect to SonarQube, but the SonarQube binding wizard would not complete at the last step. I restarted Eclipse using consolelog and debug options:

.\eclipse\jee-2020-09\eclipse\eclipse.exe -consolelog -debug

When clicking Finish at the end of the wizard an exception was thrown and visible in the console log window (exception displayed below). I know my login credentials are good because I can go the web page and authenticate with those same credentials to get access.


  • Windows 10 Enterprise
  • SonarQube version SonarLint for Eclipse
  • Eclipse IDE for Enterprise Java Developers (includes Incubating components)
    Version: 2020-09 (4.17.0) Build id: 20200910-1200

Steps to reproduce:

  1. In open Eclipse project, Open Bind to SonarQube wizard by:
    right clicking project > SonarLint > Bind to SonarQube or SonarCloud
  2. Select SonarQube, then select Next
  3. Enter URL …then select Next
  4. Select 'Username + Password" …then select Next
  5. Enter Username and Pazssword …then select Next
  6. Ensure the connection name is displayed in the box, mine is …then select Next
    6.Configuraton completed should be displayed along with a message indicating success
  7. Click Finish to complete the wizard.
  8. Observe that the wizard doesn’t respond when clicking Finish

This problem also happens when using a token instead of username/password to authenticate.

What is happening is that Sonarlint is throwing an exception:

!ENTRY org.eclipse.ui 4 0 2021-03-15 18:36:33.714
!MESSAGE Unhandled event loop exception
java.lang.IllegalStateException: Unable to store connection credentials in secure storage: No password provided.
        at org.sonarlint.eclipse.core.internal.engine.connected.ConnectedEngineFacadeManager.storeCredentials(
        at org.sonarlint.eclipse.core.internal.engine.connected.ConnectedEngineFacadeManager.addServer(
        at org.sonarlint.eclipse.ui.internal.binding.wizard.connection.ServerConnectionWizard.performFinish(
        at org.eclipse.jface.wizard.WizardDialog.finishPressed(
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(
        at org.eclipse.jface.dialogs.Dialog.lambda$0(
        at org.eclipse.swt.widgets.TypedListener.handleEvent(
        at org.eclipse.swt.widgets.EventTable.sendEvent(
        at org.eclipse.swt.widgets.Display.sendEvent(
        at org.eclipse.swt.widgets.Widget.sendEvent(
        at org.eclipse.swt.widgets.Display.runDeferredEvents(
        at org.eclipse.swt.widgets.Display.readAndDispatch(
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
        at org.eclipse.ui.internal.Workbench.lambda$3(
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.base/java.lang.reflect.Method.invoke(
        at org.eclipse.equinox.launcher.Main.invokeFramework(
        at org.eclipse.equinox.launcher.Main.basicRun(
Caused by: No password provided.
        at org.sonarlint.eclipse.core.internal.engine.connected.ConnectedEngineFacadeManager.storeCredentials(
        ... 33 more

Hi @clinthelton

The error is related to the Eclipse secure storage. This is a place where Eclipse plugins like SonarLint can safely write credentials. This feature is OS dependent.
Seems Eclipse was unable to open the secure storage because the master password has not been provided.
Maybe you could check in Eclipse settings if the storage is readable (in the content tab), and possibly reset it if it was corrupted (but you will have to re-enter all your passwords):

Thanks, Julien.

The file is readable and writeable. The Security > Secure Storage properties tab I have appears to match with what you sent me. I’ve attached a screenshot of my Contents tab. Is there supposed to be a master password entry for SonarQube on the Secure Storage tab?



I went ahead and deleted my master password for sonarlint and reattempted to create a connection to SonarQube. It worked that time. Instructions from below were also helpful. I just now ran across them after searching quite a bit on the forums for this answer. Thanks again!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.