Thanks, Awanthika.
I was able to resolve the issue.

On Thu, May 19, 2016 at 1:52 PM, Awanthika Senarath <[email protected]>
wrote:

> Hi Thilini,
>
> With the eclipse migration to Mars, we cannot use the system property JKS
> parameters, Eclipse has removed this facility from Mars onwards.
>
> The recommended approach is to set a Trust all manager for your
> connection, Please refer commit at [1] at class CloudAdminServiceClient for
> an example of the implementation required to fix the issue mentioned.
>
>
> [1]
> https://github.com/wso2/devstudio-tooling-platform/commit/3baa889449568d29f2fdc71b2bc34d2451f1c359
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Thu, May 19, 2016 at 11:43 AM, Thilini Cooray <[email protected]>
> wrote:
>
>> Hi,
>>
>> I am trying to call a HTTPS REST service of WSO2 API Manager through a
>> Developer Studio plugin.
>>
>> I am getting following error [1] as API Manager does not contain any
>> valid certificate for this plugin on its client truststore.
>>
>> Appreciate your opinion on how to retrieve the Devstudio kernel keystore
>> certificate to resolve above issue.
>>
>> Thanks.
>>
>> [1]
>>
>> java.lang.Exception: Connection error (is server running at
>> https://localhost:9443/client-registration/v0.9/register ?):
>> sun.security.validator.ValidatorException: PKIX path building failed:
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
>> valid certification path to requested target
>>
>>     at .......    at
>> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:463)
>>
>>     at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:371)
>>
>>     at
>> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:500)
>>
>>     at
>> org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:284)
>>
>>     at
>> org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1204)
>>
>>     at
>> org.eclipse.ui.internal.progress.ProgressManager$RunnableWithStatus.run(ProgressManager.java:1394)
>>
>>     at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>
>>     at
>> org.eclipse.ui.internal.progress.ProgressManager$5.run(ProgressManager.java:1228)
>>
>>     at
>> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:186)
>>
>>     at
>> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)
>>
>>     at org.eclipse.swt.widgets.Display.syncExec(Display.java:4781)
>>
>>     at
>> org.eclipse.ui.internal.progress.ProgressManager.runInUI(ProgressManager.java:1225)
>>
>>     at ..............
>>
>>     at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
>>
>>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>
>>     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
>>
>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
>>
>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
>>
>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499)
>>
>>     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299)
>>
>>     at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
>>
>>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
>>
>>     at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
>>
>>     at org.eclipse.jface.window.Window.open(Window.java:803)
>>
>>     at .........
>>
>>     at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
>>
>>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>
>>     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
>>
>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
>>
>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
>>
>>     at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1564)
>>
>>     at
>> org.eclipse.swt.widgets.Link.textView_clickOnLink_atIndex(Link.java:117)
>>
>>     at org.eclipse.swt.widgets.Display.windowProc(Display.java:6010)
>>
>>     at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
>>
>>     at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
>>
>>     at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1121)
>>
>>     at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1113)
>>
>>     at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2571)
>>
>>     at org.eclipse.swt.widgets.Display.windowProc(Display.java:5692)
>>
>>     at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
>>
>>     at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
>>
>>     at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2130)
>>
>>     at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2337)
>>
>>     at org.eclipse.swt.widgets.Display.windowProc(Display.java:5756)
>>
>>     at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
>>
>>     at
>> org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5193)
>>
>>     at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5342)
>>
>>     at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
>>
>>     at
>> org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
>>
>>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3695)
>>
>>     at
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
>>
>>     at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
>>
>>     at
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
>>
>>     at
>> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
>>
>>     at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
>>
>>     at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
>>
>>     at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
>>
>>     at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
>>
>>     at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
>>
>>     at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>
>>     at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
>>
>>     at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
>>
>>     at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
>>
>>     at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
>>
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>     at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>
>>     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>>     at java.lang.reflect.Method.invoke(Method.java:497)
>>
>>     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
>>
>>     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
>>
>>     at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
>>
>>     at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
>>
>> Caused by: 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)
>>
>>     at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
>>
>>     at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
>>
>>     at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
>>
>>     at
>> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
>>
>>     at
>> sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
>>
>>     at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
>>
>>     at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
>>
>>     at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
>>
>>     at
>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
>>
>>     at
>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
>>
>>     at
>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
>>
>>     at
>> sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
>>
>>     at
>> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
>>
>>     at
>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1283)
>>
>>     at
>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1258)
>>
>>     at
>> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
>>
>>     at ......
>>
>>     ... 79 more
>>
>> Caused by: 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.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
>>
>>     at
>> sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
>>
>>     at sun.security.validator.Validator.validate(Validator.java:260)
>>
>>     at
>> sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
>>
>>     at
>> sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
>>
>>     at
>> sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
>>
>>     at
>> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)
>>
>>     ... 92 more
>>
>> Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
>> unable to find valid certification path to requested target
>>
>>     at
>> sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:146)
>>
>>     at
>> sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)
>>
>>     at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
>>
>>     at
>> sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
>>
>>     ... 98 more
>> --
>> Best Regards,
>>
>> *Thilini Cooray*
>> Software Engineer
>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>> E-mail : [email protected]
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>
>


-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : [email protected]

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to