Hi All, When I try to execute the integration test cases of the connector, it gives me the following error. The connector is getting uploaded and enabled successfully. I've imported the certificate to the keystore as well. And I'm passing the valid access token via url. Please let me know a way to solve this.
=============================================== Foursquare-Connector-Test Tests run: 1, Failures: 1, Skips: 0 =============================================== [2014-06-26 17:00:02,108] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - --------------Finishing executing test class Foursquare-Connector-Test on suiteESBTestSuite-------- [2014-06-26 17:00:02,115] INFO {org.wso2.carbon.automation.core.PlatformSuiteManager} - ***********Finishing executing test Suite ESBTestSuite on user******* [2014-06-26 17:00:02,115] INFO {org.wso2.carbon.automation.core.PlatformExecutionManager} - ---------------Test Execution Finished -------------------------- [2014-06-26 17:00:02,166] INFO {org.wso2.carbon.automation.core.PlatformReportManager} - ----/home/ian/Documents/foursquare_new/foursquare_proj/target/surefire-reports/ESBTestSuite--------- [TestNG] Time taken by org.wso2.carbon.automation.core.PlatformReportManager@70092adf: 61 ms [TestNG] Time taken by org.testng.reporters.XMLReporter@1604470f: 5 ms [TestNG] Time taken by [TestListenerAdapter] Passed:0 Failed:0 Skipped:0]: 5 ms [TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@73cd15da: 9 ms [TestNG] Time taken by org.testng.reporters.EmailableReporter@7ae73995: 8 ms [TestNG] Time taken by org.testng.reporters.JUnitReportReporter@67d6bdeb: 4 ms Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 33.961 sec <<< FAILURE! testgetCheckinDetails(org.wso2.carbon.connector.integration.test.foursquare.FoursquareConnectorIntegrationTest) Time elapsed: 0.321 sec <<< FAILURE! 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:1884) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868) at sun.security.ssl.Handshaker.process_record(Handshaker.java:804) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) at org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.readResponse(ConnectorIntegrationTestBase.java:489) at org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.sendJsonRestRequest(ConnectorIntegrationTestBase.java:277) at org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.sendJsonRestRequest(ConnectorIntegrationTestBase.java:211) at org.wso2.carbon.connector.integration.test.foursquare.FoursquareConnectorIntegrationTest.testgetCheckinDetails(FoursquareConnectorIntegrationTest.java:69) 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:385) 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:326) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323) ... 50 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380) ... 56 more Results : Failed tests: testgetCheckinDetails(org.wso2.carbon.connector.integration.test.foursquare.FoursquareConnectorIntegrationTest): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Tests run: 1, Failures: 1, Errors: 0, Skipped: 0 [ERROR] There are test failures. Please refer to /home/ian/Documents/foursquare_new/foursquare_proj/target/surefire-reports for the individual test results. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ org.wso2.carbon.connector.foursquare --- [INFO] Building jar: /home/ian/Documents/foursquare_new/foursquare_proj/target/org.wso2.carbon.connector.foursquare-4.2.0.jar [INFO] [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ org.wso2.carbon.connector.foursquare --- [INFO] Building jar: /home/ian/Documents/foursquare_new/foursquare_proj/target/org.wso2.carbon.connector.foursquare-4.2.0-tests.jar [INFO] [INFO] --- maven-install-plugin:2.3:install (default-install) @ org.wso2.carbon.connector.foursquare --- [INFO] Installing /home/ian/Documents/foursquare_new/foursquare_proj/target/org.wso2.carbon.connector.foursquare-4.2.0.jar to /home/ian/.m2/repository/org/wso2/carbon/connector/org.wso2.carbon.connector.foursquare/4.2.0/org.wso2.carbon.connector.foursquare-4.2.0.jar [INFO] Installing /home/ian/Documents/foursquare_new/foursquare_proj/pom.xml to /home/ian/.m2/repository/org/wso2/carbon/connector/org.wso2.carbon.connector.foursquare/4.2.0/org.wso2.carbon.connector.foursquare-4.2.0.pom [INFO] Installing /home/ian/Documents/foursquare_new/foursquare_proj/target/foursquare.zip to /home/ian/.m2/repository/org/wso2/carbon/connector/org.wso2.carbon.connector.foursquare/4.2.0/org.wso2.carbon.connector.foursquare-4.2.0.zip [INFO] Installing /home/ian/Documents/foursquare_new/foursquare_proj/target/org.wso2.carbon.connector.foursquare-4.2.0-tests.jar to /home/ian/.m2/repository/org/wso2/carbon/connector/org.wso2.carbon.connector.foursquare/4.2.0/org.wso2.carbon.connector.foursquare-4.2.0-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 51.087s [INFO] Finished at: Thu Jun 26 17:00:03 IST 2014 [INFO] Final Memory: 85M/741M [INFO] ------------------------------------------------------------------------ Thank you! Best Regards, Asanki Fernando.
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev