cancel
Showing results for 
Search instead for 
Did you mean: 

SSL Error while Running Test Case from Java but works perfect in Soap UI Tool

Occasional Contributor

SSL Error while Running Test Case from Java but works perfect in Soap UI Tool

Hello,

 

I am using TestRunner from Java run SoapUI Test Case, which is working perfectly through SoapUI, however while running with Java I get SSL Exception, please advise.

 

Below is code:
TestRunner runner = testCase.run( new PropertiesMap(), false ); 

 

Below is the exception of SSL:

11:57:02,430 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\mcptt\soapui-settings.xml]
11:57:02,902 INFO [WsdlProject] Loaded project from [file:/C:/Code/workspace/BNEWMcpttTestAutomation/usm_soapui_project/MCPTT-BNEW-soapui-project.xml]
11:57:02,917 WARN [WsdlProject] Project 'BNEW-MCPN-MCPTT-USM-Backend' is from a newer version (5.5.0) of soapUI than this (4.0.1) and parts of it may be incompatible or incorrect. Saving this project with this version of soapUI may cause it to function differently.
11:57:04,485 ERROR [WsdlSubmit] Exception in request: 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
11:57:04,486 ERROR [SoapUI] An error occured [sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target], see error log for details
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(Alerts.java:192)

 

Thanks

Vishnu

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors