Can't use plugin - Connection to the servers failed.

Issue #451 resolved
Stephen Piercey created an issue

Hello, I am trying to evaluate the plugin to replace our existing MavensMate installs. However I cannot even launch IntelliJ when the plugin is enabled, I get the following error:

An unexpected error occurred during license validation: Connection to the servers failed.

This forces the application to be disabled and IntelliJ to restart.

I have used Settings -> Appearance & Behavior -> System Settings -> HTTP Proxy -> Check connection to confirm I can get a successful connection to wyday.com so I'm not sure what else I can do to test this plugin for suitability within our organization.

I've attached the log - start from the bottom to see the error with licensing and validation.

Comments (5)

  1. Scott Wells repo owner

    Stephen, let me reviewed the provided log (thanks!) and I'll let you know what I find. Hopefully it's something simple.

    As I'm reviewing this, are you configured for a proxy? If so, is it by chance an auto-proxy configuration? IC doesn't currently support auto-proxy configuration, only manual configuration.

  2. Scott Wells repo owner

    Stephen, it definitely looks like something is strange with IntelliJ IDEA's proxy configuration. I'm seeing NullPointerExceptions in the log when it's trying to access its own proxy config:

    java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:459)
        at java.util.Properties.setProperty(Properties.java:166)
        at com.intellij.util.net.HttpConfigurable.storeSecure(HttpConfigurable.java:685)
        at com.intellij.util.net.HttpConfigurable.setProxyLogin(HttpConfigurable.java:260)
        at com.intellij.util.net.HttpProxySettingsUi.apply(HttpProxySettingsUi.java:315)
        at com.intellij.util.net.HttpProxySettingsUi$5.actionPerformed(HttpProxySettingsUi.java:167)
    

    Do you mind checking your proxy config to make sure it's correct?

    It also does look like your firewall/proxy is performing certificate substitution based on the following:

    Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    

    Let's make sure the proxy settings are correct and aren't causing errors in the log, then we can look at the certificate substitution aspect.

  3. Stephen Piercey reporter

    Scott, thank you for the fast response. Yes we are behind a corporate proxy, I'll see what I can do with the proxy settings.

    Stephen

  4. Scott Wells repo owner

    Okay. I did just confirm that the third-party license validation software does not support certificate replacement and will fail if the certificate cannot be 100% validated. You (likely your IT) would need to add https://wyday.com/ as an exception if certificate replacement is taking place. Let me know if you can't get it working after checking into your corporate firewall/proxy and I'll see what I can do to help.

  5. Scott Wells repo owner
    • changed status to resolved
    • edited description

    Resolving since there's nothing I can do to make the licensing software support a network that support certificate replacement. However, I will be adding integrated support for offline activation (#427) which will be the only viable way to deal with this issue aside from moving the machine to a less restrictive network temporarily.

  6. Log in to comment