microsoft / azure-devops-intellij

IntelliJ IDEA plug-in for Visual Studio Team Services and Team Foundation Server (TFS)
MIT License
151 stars 94 forks source link

Rubymine - the plugin is unable to find the JDK. #400

Open mandojim opened 4 years ago

mandojim commented 4 years ago

For some reason the plugin cannot find the JDK even though it is listed in the PATH variable.

ForNeVeR commented 4 years ago

The plugin is not supposed to pick the JDK (JRE, actually) from the PATH, and should usually use the bundled one instead. Could you please provide some details and maybe IDE logs? Thanks!

mandojim commented 4 years ago

Here is the stacktrace =>

java.lang.RuntimeException: An error occurred: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

at com.microsoft.alm.plugin.external.commands.Command.throwIfError(Command.java:438)
at com.microsoft.alm.plugin.external.commands.FindWorkspaceCommand.checkErrors(FindWorkspaceCommand.java:123)
at com.microsoft.alm.plugin.external.commands.FindWorkspaceCommand.parseOutput(FindWorkspaceCommand.java:139)
at com.microsoft.alm.plugin.external.commands.FindWorkspaceCommand.parseOutput(FindWorkspaceCommand.java:29)
at com.microsoft.alm.plugin.external.commands.Command$1.completed(Command.java:178)
at com.microsoft.alm.plugin.external.ToolRunner$ListenerProxy.completed(ToolRunner.java:295)
at com.microsoft.alm.plugin.external.ToolRunner$ProcessWaiter.run(ToolRunner.java:333)
ForNeVeR commented 4 years ago

This is something different from what you've initially stated, but alright.

Are you trying to set up the connection to an on-premise Azure DevOps server which uses HTTPS?

mandojim commented 4 years ago

Yes


Jimmy McMasters QA Analyst Technology & Solution Development

Volvo Group Connected Solutions 8003 Piedmont Triad Parkway – Uptime Center 27409 Greensboro NC USA Phone: +1 336.291.5067 Email: jimmy.mcmasters@volvo.com

[cid:image001.png@01D69184.7A378DA0]

From: Friedrich von Never notifications@github.com Sent: Wednesday, September 23, 2020 8:34 AM To: microsoft/azure-devops-intellij azure-devops-intellij@noreply.github.com Cc: McMasters Jimmy jimmy.mcmasters@volvo.com; Assign assign@noreply.github.com Subject: Re: [microsoft/azure-devops-intellij] Rubymine - the plugin is unable to find the JDK. (#400)

CAUTION: This email originated from outside of the organization. Read more here: phishing.beaware.volvo.nethttps://phishing.beaware.volvo.net/

This is something different from what you've initially stated, but alright.

Are you trying to set up the connection to an on-premise Azure DevOps server which uses HTTPS?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/azure-devops-intellij/issues/400#issuecomment-697333664, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARDIHOKOYSYPELGFQ7P42DTSHHTKDANCNFSM4RWFRERA.

This email message (including its attachments) is confidential and may contain privileged information and is intended solely for the use of the individual and/or entity to whom it is addressed. If you are not the intended recipient of this e-mail you may not disseminate, distribute or copy this e-mail (including its attachments), or any part thereof. If this e-mail is received in error, please notify the sender immediately by return e-mail and make sure that this e-mail (including its attachments), and all copies thereof, are immediately deleted from your system. Please further note that when you communicate with us via email or visit our website we process your personal data. See our privacy policy for more information about how we process it: https://www.volvogroup.com/en-en/privacy.html

ForNeVeR commented 4 years ago

Alright. Here's what happens in your case: the external TFVC client tries to access your server, but it couldn't validate the certificate, and thus it throws an exception.

To fix the issue, first locate the cacerts file in your RubyMine installation (usually somewhere in the RubyMine installation directory), and then follow this answer on Stack Overflow.

(keytool is a binary from JDK which may be missing on your system; in such case, please install Amazon Coretto JDK, and run keytool from it, while still pointing it to the cacerts file from the JetBrains IDE installation)

Please let me know if this helps.

mandojim commented 4 years ago

No dice. I don’t have direct access to the server to export the certificate. I am accessing the Azure DevOps website running on the server.


Jimmy McMasters QA Analyst Technology & Solution Development

Volvo Group Connected Solutions 8003 Piedmont Triad Parkway – Uptime Center 27409 Greensboro NC USA Phone: +1 336.291.5067 Email: jimmy.mcmasters@volvo.com

[cid:image001.png@01D69191.BD8BCEB0]

From: Friedrich von Never notifications@github.com Sent: Wednesday, September 23, 2020 8:43 AM To: microsoft/azure-devops-intellij azure-devops-intellij@noreply.github.com Cc: McMasters Jimmy jimmy.mcmasters@volvo.com; Assign assign@noreply.github.com Subject: Re: [microsoft/azure-devops-intellij] Rubymine - the plugin is unable to find the JDK. (#400)

CAUTION: This email originated from outside of the organization. Read more here: phishing.beaware.volvo.nethttps://phishing.beaware.volvo.net/

Alright. Here's what happens in your case: the external TFVC client tries to access your server, but it couldn't validate the certificate, and thus it throws an exception.

To fix the issue, first locate the cacerts file in your RubyMine installation (usually somewhere in the RubyMine installation directory), and then follow this answer on Stack Overflowhttps://stackoverflow.com/a/63107961/2684760.

(keytool is a binary from JDK which may be missing on your system; in such case, please install Amazon Coretto JDK, and run keytool from it, while still pointing it to the cacerts file from the JetBrains IDE installation)

Please let me know if this helps.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/azure-devops-intellij/issues/400#issuecomment-697338603, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARDIHON3B2BMZSPXYJONFN3SHHULTANCNFSM4RWFRERA.

This email message (including its attachments) is confidential and may contain privileged information and is intended solely for the use of the individual and/or entity to whom it is addressed. If you are not the intended recipient of this e-mail you may not disseminate, distribute or copy this e-mail (including its attachments), or any part thereof. If this e-mail is received in error, please notify the sender immediately by return e-mail and make sure that this e-mail (including its attachments), and all copies thereof, are immediately deleted from your system. Please further note that when you communicate with us via email or visit our website we process your personal data. See our privacy policy for more information about how we process it: https://www.volvogroup.com/en-en/privacy.html

ForNeVeR commented 4 years ago

If you're able to open the site in browser, then you should be able to save it like this.