小编Sya*_*nda的帖子

Paypal Sandbox API:javax.net.ssl.SSLHandshakeException:收到致命警报:handshake_failure

PayPal MassPay API在沙盒模式下使用时遇到异常.

相同的代码早先工作,现在它给了我一个SSLHandshakeException.我认为这是因为PayPal最新的SSL认证更新.有人可以帮我解决这个问题吗?

以下是我的异常日志:

http-bio-9090-exec-1, READ: TLSv1 Alert, length = 2
http-bio-9090-exec-1, RECV TLSv1 ALERT:  fatal, handshake_failure
http-bio-9090-exec-1, called closeSocket()
http-bio-9090-exec-1, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
com.paypal.core.rest.PayPalRESTException: Received fatal alert: handshake_failure
    at com.paypal.core.rest.PayPalResource.execute(PayPalResource.java:374)
    at com.paypal.core.rest.PayPalResource.configureAndExecute(PayPalResource.java:225)
    at com.paypal.sdk.openidconnect.Tokeninfo.createFromAuthorizationCode(Tokeninfo.java:245)
    at com.oldwallet.controllers.CouponPaymentController.redeemed(CouponPaymentController.java:321)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
    at …
Run Code Online (Sandbox Code Playgroud)

java paypal ssl-certificate paypal-sandbox masspay

14
推荐指数
1
解决办法
2万
查看次数

如何使用node.JS中的phantomJs将html内容呈现为pdf文件

如何使用某些html内容生成pdf文件,并使用node.js中的phantom.js将文件和内容呈现给浏览器?

html pdf node.js phantomjs

5
推荐指数
1
解决办法
6147
查看次数

使用 html-pdf 创建 PDF 文件在我的部署服务器中不起作用?

我正在使用 html-pdf npm 模块创建一个 pdf 文件,在我的本地环境(mac、windows)中一切正常。但是当我们在我们的亚马逊 ec2 服务器中部署相同的代码时,html-pdf 的 create() 无法创建文件,也没有给我任何错误。我几乎通过异常处理、绝对路径等尝试了所有可能的方法。它们都不起作用。任何人都可以帮我解决这个问题。我的代码是

function generatePdf(content, options, callback) {
    var fileName = new Date().getTime() + Math.random() + '.pdf';
    pdf.create(content, options).toFile('../uploads/' + fileName, function(error, response) {
        if (error) {
            callback(error);
        } else {
            callback({
                fileName: fileName,
                filePath: response.filename
            });
        }                                
    });
}
Run Code Online (Sandbox Code Playgroud)

这里的错误是 {},响应是 {}

javascript pdf amazon-ec2 node.js

5
推荐指数
1
解决办法
4949
查看次数

如何在 mongoDB 中创建复合唯一键

如何在 mongodb 集合中的多个列上创建唯一键。就像我们使用这个 ADD UNIQUE unique_index( user, email, phonenumber); 在 SQL 中。

mongoose mongodb nosql node.js

4
推荐指数
1
解决办法
5137
查看次数