Javen205 / IJPay

IJPay 让支付触手可及,封装了微信支付、QQ支付、支付宝支付、京东支付、银联支付、PayPal 支付等常用的支付方式以及各种常用的接口。不依赖任何第三方 mvc 框架,仅仅作为工具使用简单快速完成支付模块的开发,可轻松嵌入到任何系统里。右上角点下小星星✨
http://javen205.gitee.io/ijpay
Apache License 2.0
5.51k stars 1.35k forks source link

Caused by: java.lang.UnsupportedOperationException: clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+ #41

Closed bingxueai123456 closed 2 years ago

bingxueai123456 commented 3 years ago

版本信息

报错信息 (注意格式化)


    at com.jpay.util.HttpUtils$OkHttp3Delegate.postSSL(HttpUtils.java:411)
    at com.jpay.util.HttpUtils.postSSL(HttpUtils.java:50)
    at com.jpay.weixin.api.WxPayApi.doPostSSL(WxPayApi.java:663)
    at com.jpay.weixin.api.WxPayApi.orderRefund(WxPayApi.java:209)

Caused by: java.lang.UnsupportedOperationException: clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+
    at okhttp3.internal.platform.Jdk9Platform.trustManager(Jdk9Platform.kt:61)
    at okhttp3.OkHttpClient$Builder.sslSocketFactory(OkHttpClient.kt:751)
    at com.jpay.util.HttpUtils$OkHttp3Delegate.postSSL(HttpUtils.java:402)
    ... 134 common frames omitted

### 问题描述(包括回显步骤、截图 )

此项没有详细描述将直接关闭不给予解决
![image](https://user-images.githubusercontent.com/25632537/109273992-e7b2c600-784d-11eb-84b5-2950ea41a5a2.png)

### 预期效果描述 

### 交流群

- IJPay 让支付触手可及交流群:723992875
- TNWX 微信系开发脚手架交流群:114196246
Javen205 commented 3 years ago

建议升级,使用最新版本