Tagged: Marketplace, MyEclipse
- This topic has 9 replies, 2 voices, and was last updated 7 months, 2 weeks ago by
support-swapna.
-
AuthorPosts
-
Not able to access the eclipse marketplace from help>>install from Catalog. Following error is always showing up even when I use different JDK’s
MarketplaceDiscoveryStrategy failed with an error
Cannot complete request to https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&client.version=1.8.2.v20200210-1402&os=win32&ws=win32&nl=en_US&java.version=11.0.7&product=com.genuitec.myeclipse.product.ide&product.version=16.0.0.CI-006&runtime.version=3.17.100.v20200203-0917&platform.version=4.15.0.v20200305-0155: Unable to read repository at https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&client.version=1.8.2.v20200210-1402&os=win32&ws=win32&nl=en_US&java.version=11.0.7&product=com.genuitec.myeclipse.product.ide&product.version=16.0.0.CI-006&runtime.version=3.17.100.v20200203-0917&platform.version=4.15.0.v20200305-0155.
Unable to read repository at https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&client.version=1.8.2.v20200210-1402&os=win32&ws=win32&nl=en_US&java.version=11.0.7&product=com.genuitec.myeclipse.product.ide&product.version=16.0.0.CI-006&runtime.version=3.17.100.v20200203-0917&platform.version=4.15.0.v20200305-0155.
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Brian FernandesModeratorRinu,
Sorry you ran into this. We will be releasing a fix for this shortly, but in the meanwhile, please try the workaround mentioned here and let us know if you still experience issue with the marketplace.
Hi Brain,
I had followed that workaround to display the eclipse marketplace icon in the install catalog window. The actual issue is Marketplace data is not loading. Please refer the attached document for the screenshots of the issue
Attachments:
You must be logged in to view attached files.
support-swapnaModeratorRinu,
Sorry that you are seeing this issue. Thank you for the screenshots.
It looks like there is a problem accessing https urls.1. Do you see the same problem with JDK 13 that is shipped with MyEclipse 2020? If you have not checked with JDK 13 after applying the workaround, then please try starting MyEclipse with JDK 13 that is included in the install and see if the issue persists.
2. Are you behind a firewall or proxy? If yes, then did you configure it in the MyEclipse IDE as suggested in this FAQ?
https://www.genuitec.com/forums/topic/configuring-the-network-proxy-settings/
Most of the time the “PKIX path building failed” exceptions are because the configuration of your firewall does not handle correctly requests done to https uris. Could you please confirm this by asking your network admin?3. Can you please check if you can access this URL in the Internal Web Browser from within MyEcliipse? Go to Window > Show View > Other > Internal Web Browser. It should display an XML file. If you cannot access the URL from within MyEclipse, then please check if you can access it from the browser outside MyEclipse.
–Swapna
Genuitec SupportHi Swapna,
find my answers below and see the attached file for more details1. Do you see the same problem with JDK 13 that is shipped with MyEclipse 2020? If you have not checked with JDK 13 after applying the workaround, then please try starting MyEclipse with JDK 13 that is included in the install and see if the issue persists.
Yes I had tried it with JDK 8,11,13 and also with the internal JDK13. Same issue with all the JDKs
2. Are you behind a firewall or proxy? If yes, then did you configure it in the MyEclipse IDE as suggested in this FAQ?
https://www.genuitec.com/forums/topic/configuring-the-network-proxy-settings/
Most of the time the “PKIX path building failed” exceptions are because the configuration of your firewall does not handle correctly requests done to https uris. Could you please confirm this by asking your network admin?
Yes I’m behind a proxy and was using the proxy settings without any issues with MyEclipse 2019. Issue is when I upgraded to version 2020.
3. Can you please check if you can access this URL in the Internal Web Browser from within MyEcliipse? Go to Window > Show View > Other > Internal Web Browser. It should display an XML file. If you cannot access the URL from within MyEclipse, then please check if you can access it from the browser outside MyEclipse.
Yes I can access the url from the internal browser without any issues.
I suspect that the issue might be with MPC client
See the attachment for more detailssee the attachment
Attachments:
You must be logged in to view attached files.
Brian FernandesModeratorRinu,
Thank you for sending in detailed notes and screenshots.
I realize these proxy settings worked for you in 2019, but you have both HTTP and HTTPS configured on the preference page. Please configure either HTTP or HTTPS – this page is used to specify your path to the proxy server (do you connect to your proxy server using HTTP or HTTPs?) For more details, please see: https://www.genuitec.com/forums/topic/configuring-the-network-proxy-settings/
If you ignore the marketplace, are you able to install plugins from an update site with these proxy settings? If you add any update site in the Help > Install from Site dialog – for example: https://dbeaver.io/update/latest – does this show you a list of items that can be installed (you don’t need to proceed with the install), or does this also fail? This will help us determine whether the problem is with the proxy settings or something specifically wrong with the marketplace.
Hi Brian,,
When I try the Help > Install from Site dialog – for example: https://dbeaver.io/update/latest, following error is getting displayed
Unable to read repository at https://dbeaver.io/update/latest/content.xml.
Unable to read repository at https://dbeaver.io/update/latest/content.xml.
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetNo issue with http urls for install from site
Pankaj SharmaParticipantYes, I did face the same issue. Here is the fix.
Problem:
eclipse.buildId=4.21.0.I20210906-0500
java.version=16.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
org.eclipse.epp.mpc.core
Error
Thu Sep 16 13:07:14 IST 2021
Cannot complete request to https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&os=win32&platform.version=4.21: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
org.eclipse.core.runtime.CoreException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at org.eclipse.epp.internal.mpc.core.transport.httpclient.HttpClientTransport.stream(HttpClientTransport.java:117)Solution:
In order to resolve this issue, I copied my security/cacert from my JRE (java-se-8u41/jre/lib/security) and then paste it in my eclipse e.g. /eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.2.v20210721-1149/jre/lib/security (replace cacert of the eclipse by cacert of JRE)For more detail step by step along with screen-shots, you may refer the following url : https://thebasictechinfo.com/java-8/pkixunable-to-find-valid-certification-path-to-requested-target-fix/
Enjoy 🙂Attachments:
You must be logged in to view attached files.
sandikumar3ParticipantI have been facing the same issue like ‘sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target PKIX path building failed’.
I am using below java and eclipse versions –
1. Eclipse Version: 2022-03 (4.23.0)
2. Java version “17.0.3.1” 2022-04-22 LTS
3. Operating System : Windows 10 Enterprise, version : 21H2, 64bitPlease let me know appropriate solution to fix this
support-swapnaModeratorKumar,
Have you tried Pankaj’s solution (see above)? If no, then please give it a try and see if it fixes the issue.
If you are behind a firewall or proxy, then please refer to Brian’s response on this thread about setting the proxy details in the IDE.Since you are working with Eclipse, I suggest you cross post to Eclipse forums and development forums like stackoverflow.com for better suggestions.
Hope this helps.
–Swapna
Genuitec Support -
AuthorPosts