I have created a Java request sampler using Jmeter 4.0. After packaging the jar using maven, I copied the jar file to lib/ext and I can see the class in java request. But, when I try to execute, I'm getting the below error. Can someone help me to understand what went wrong?
2020-06-19 12:38:01,265 WARN o.j.r.PluginManagerMenuItem: Failed to load plugin updates info
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
at sun.security.ssl.Alerts.getSSLException(Unknown Source) ~[?:1.8.0_241]
Also this is the way I have created the Java request.
The error you're getting is related to JMeter Plugins Manager not being able to connect to the JMeter Plugins Repository due to some problem with SSL certificates.
If you're behind a corporate proxy - you need to make JMeter aware of this proxy.
Related
I am trying to build some services in my local. But while building I am getting following error
A problem occurred configuring root project 'MyService'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.2.7.RELEASE.
Required by:
project :
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.2.7.RELEASE.
> Could not get resource 'https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-gradle-plugin/2.2.7.RELEASE/spring-boot-gradle-plugin-2.2.7.RELEASE.pom'.
> Could not HEAD 'https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-gradle-plugin/2.2.7.RELEASE/spring-boot-gradle-plugin-2.2.7.RELEASE.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Similar PKIX issue I am facing with all the services.
I am using IntelliJ and project uses Gradle.
This is also a new system, but I have installed JDK in the macOS. And JDK path shows correctly in the project.
When I open the dependency URL I am able to access in my chrome browser.
Most solution given seems to be for windows.
Anything differently do I have to do for macOS?
I am just getting started making plugins and am hoping to make an IntelliJ plugin using gradle and java. For now, just to learn the basic, all I am trying to do is change the menubar in IntelliJ. But, following this IntelliJ tutorial, I created a Gradle project with Java and IntelliJ Platform Plugin as the additional libraries/frameworks, and when I build, even if I do not change anything at all once the project is created, I get an error I do not understand and do not know how to fix:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'project.project'.
> Could not resolve all files for configuration ':detachedConfiguration1'.
> Could not resolve com.jetbrains.intellij.idea:ideaIC:2019.2.3.
Required by:
project :
> Could not resolve com.jetbrains.intellij.idea:ideaIC:2019.2.3.
> Could not get resource 'https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2019.2.3/ideaIC-2019.2.3.pom'.
> Could not GET 'https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2019.2.3/ideaIC-2019.2.3.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
However, when I create a gradle project, and do not use the IntelliJ Platform Plugin, I am able to build and create tasks etc. and as best I can tell it works fine.
I'm using:
IntelliJ 2019.2.3
Gradle 5.6.2
Java 8
I assume that there is something simple I am missing since I am so new but I haven't seen solutions to this issue elsewhere that I was able to use. Any help with this is appreciated.
The last line in the errors looks like a problem with the chain of certificates. This happens when the Gradle plugin attempts to download a build of IntelliJ IDEA v2019.2.3. But the Gradle plugin for IntelliJ is not involved when you build a generic project.
Have you tried pasting the URL from the failed GET statement into the address bar of your browser?
www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2019.2.3/ideaIC-2019.2.3.pom
Does the POM file download or do you get an error about certificates?
If you get certificate errors, searching for sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target will yield postings about how to import a server certificate and install it in your JDK's keystore.
I am trying to integrate Jenkins maven plugin to pull dependencies from a local nexus server. When the build starts I end up with the following Error
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I have tried to disable it by suppling the following wagon ssl properties as MAVEN_OPTS:
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true
I have also tried to add the certificate to the
javahome/lib/security/cacerts of the JVM.
using the key tool
are there any additional things I should try to disable the self-signed certificate check.
I have installed the Teamcity Artifactory plugin on my Teamcity 10 but when I configure the artifactory by providing the server URL and doing the Test Connection it gives below error:
Error occurred while requesting version information: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (javax.net.ssl.SSLHandshakeException)
It seems that the TeamCity instance is unable to reach your Artifactory instance.
Can you do a ping call from the TeamCity to Artifactory? Even better will be to run the Artifactory REST API call for the system ping, using your defined URL of Artifactory in TeamCity.
The REST should look like that:
curl -u user:password "https://{artifactoryURL}:{port}/artifactory/api/system/ping"
After running this from TeamCity instance see if you are able to reach the Artifactory instance.
Also, do you have any proxy server between TeamCity to Artifactory? From the error it seems like there is a proxy server in the middle, if so please follow the instructions on how to configure the TeamCity Artifactory plugin to go via the proxy server here.
Maven build throwing this exception
Failed to execute goal on project mdf-portal-3rdParty: Could not
resolve dependencies for project
com.alu.ipprd.bsm.soa:mdf-portal-3rdParty:jar:0.0.1-SNAPSHOT: Failed
to collect dependencies at
com.alu.ipprd.bsm.soa.portal.soo:common:jar:0.0.1-SNAPSHOT: Failed to
read artifact descriptor for
com.alu.ipprd.bsm.soa.portal.soo:common:jar:0.0.1-SNAPSHOT: Could not
transfer artifact
com.alu.ipprd.bsm.soa.portal.soo:common:pom:0.0.1-SNAPSHOT from/to
googlecode.com
(http://gmaps4jsf.googlecode.com/svn/trunk/gmaps4jsf-repo):
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target -> [Help 1]
I did not made any single change in pom.xml file ,suddenly after taking update from SVN i am getting this exception.
I will want to know
What is the cause of this problem?
Is this issue due to anything change in SVN server?
Even no any change in local machine why this build fail error?
Something wrong with Gmaps4jsf repository ?(May be due to closing of Google code)
maybe your maven version isnot the proper version. I encounter this problem in 3.2.3. and resolve it in 3.3.9 version.
you need to add ssl certificate to your jre installation
Please refer this answer and follow steps!
Step 1 - Get Root CA certificate
Step 2 - install that certificate at jre cacerts file