{"action":"closed","issue":{"url":"https://api.github.com/repos/VivaPayments/API/issues/151","repository_url":"https://api.github.com/repos/VivaPayments/API","labels_url":"https://api.github.com/repos/VivaPayments/API/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/VivaPayments/API/issues/151/comments","events_url":"https://api.github.com/repos/VivaPayments/API/issues/151/events","html_url":"https://github.com/VivaPayments/API/issues/151","id":168089999,"number":151,"title":"Java HttpURLConnection to API endpoint","user":{"login":"konstpan","id":16276799,"avatar_url":"https://avatars.githubusercontent.com/u/16276799?v=3","gravatar_id":"","url":"https://api.github.com/users/konstpan","html_url":"https://github.com/konstpan","followers_url":"https://api.github.com/users/konstpan/followers","following_url":"https://api.github.com/users/konstpan/following{/other_user}","gists_url":"https://api.github.com/users/konstpan/gists{/gist_id}","starred_url":"https://api.github.com/users/konstpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstpan/subscriptions","organizations_url":"https://api.github.com/users/konstpan/orgs","repos_url":"https://api.github.com/users/konstpan/repos","events_url":"https://api.github.com/users/konstpan/events{/privacy}","received_events_url":"https://api.github.com/users/konstpan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-28T13:02:28Z","updated_at":"2016-07-29T06:58:07Z","closed_at":"2016-07-29T06:58:07Z","body":"Hi,\r\n\r\nI'm trying to connect to API using HttpURLConnection but I get an exception.\r\n\r\nHas something changed in your certificate?\r\n\r\nThe exception thrown:\r\n\r\n```\r\njavax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.\r\n        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)\r\n        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1730)\r\n        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:257)\r\n        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:251)\r\n        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1165)\r\n        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)\r\n        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:609)\r\n        at sun.security.ssl.Handshaker.process_record(Handshaker.java:545)\r\n        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:978)\r\n        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1223)\r\n        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1250)\r\n        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1234)\r\n        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:440)\r\n        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)\r\n        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:979)\r\n        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)\r\n        at gr.softways.dev.eshop.viva.VIVA.createOrder(VIVA.java:231)\r\n        at org.apache.jsp.checkout_005fpaygate_005fviva_jsp._jspService(checkout_005fpaygate_005fviva_jsp.java:410)\r\n        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)\r\n        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)\r\n        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)\r\n        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)\r\n        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)\r\n        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)\r\n        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)\r\n        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)\r\n        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)\r\n        at gr.softways.standard.eshop.eways.v5.PlaceOrderServlet.doPost(PlaceOrderServlet.java:192)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)\r\n        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)\r\n        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)\r\n        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)\r\n        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)\r\n        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)\r\n        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)\r\n        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)\r\n        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)\r\n        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)\r\n        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)\r\n        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)\r\n        at java.lang.Thread.run(Thread.java:679)\r\nCaused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.\r\n        at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:288)\r\n        at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:271)\r\n        at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:181)\r\n        at sun.security.validator.Validator.validate(Validator.java:235)\r\n        at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:147)\r\n        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:230)\r\n        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270)\r\n        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1144)\r\n        ... 43 more\r\nCaused by: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.\r\n        at org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(Unknown Source)\r\n        at java.security.cert.CertPathValidator.validate(CertPathValidator.java:267)\r\n        at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:283)\r\n        ... 50 more\r\n```"}}
{"actor":{"display_login":"konstpan"}}