Proxy configuration issues with jvisualvm
Asked Answered
A

3

8

I have tried the jvisualvm.exe in my JDK (1.6.0_15-b03) to reload the plugin catalog, by following

Tools > Plugins > Updates > Reload Catalog

However; no matter what proxy configuration I try (I also tried to test it on another JVM 1.6 update 23) and does not seem to to work. I get the following errors irrespective of my proxy setup.

Unable to connect to the Java VisualVM Plugins Center because of sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Here is the error window that comes up [please see attached image]certificate error

Is this a known problem or some certification issue? I have never created a trust store on my machine, could this be a problem?

Alligator answered 16/11, 2012 at 4:39 Comment(1)
you need to find a option not to check validity of the certificateBandstand
I
26

The VisualVM was migrated to Github so the plugins center is now Here

but to make it short what you need to do is
open VisualVM
open Tools -> Plugins -> Settings
on the right column ("Java VisualVM Plugins Center") click Edit
replace whatever you have there with : https://visualvm.github.io/uc/8u131/updates.xml.gz

Impersonate answered 10/8, 2017 at 16:32 Comment(1)
worked like charm, thanksSulcate
B
3

In here you can download plugins manually: http://visualvm.java.net/pluginscenters.html

Bandstand answered 16/11, 2012 at 5:26 Comment(3)
thanks for pointing this out. In my research I did find this. However; I think the issue is that the site visualvm.dev.java.net/uc/6u14/updates.xml.gz does not have a SSL certificate(I tried to see the webpage in firefox.). Is it possible to ask java not to bother for certificates for a particular site?Alligator
@Ayusman, if you got the message above it means that Proxy is configured okay. And the app recieves a certificate (it might be fake certificate) or valid one. In either case the app cannot check its validity. Now you have two options to find a way to omit certificate check in the app or add fingerprints of that certificate manually in the app.Bandstand
is there a way I can add this exception to my JDK keystore? The website visualvm.dev.java.net/uc/6u20/updates.xml.gz does not provide a certificate that I can download and add to my keystore. I must agree that my understanding of java trust store is limited.Alligator
C
0

Another way to achieve this is to download the plugins manually and then install it on JVisualVM.

Here are the steps :

  1. Start with picking up a version of the plugin from : https://visualvm.github.io/pluginscenters.html
  2. And then download the particular plugin (the file's extension would be ".nbm") that you want to install.
  3. Then, in JVisualVM, go to Tools > Plugin > Downloaded ; then click "Add Plugins" and select the previously downloaded file.
  4. Once, it shows up in the "Downloaded" plugins tab, then click "Install"

Hope this helps...

Coverlet answered 23/8, 2019 at 11:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.