xingePush / xinge-api-java

信鸽ServerSDK-Java版本
54 stars 29 forks source link

java.io.IOException: HTTPS hostname wrong #16

Closed xingePush closed 6 years ago

xingePush commented 6 years ago

https://github.com/xingePush/xinge-api-java/blob/master/src/main/java/com/tencent/xinge/XingeApp.java#L94

java.io.IOException: HTTPS hostname wrong:  should be <openapi.xg.qq.com>
at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:649)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:573)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(HttpsURLConnectionOldImpl.java:142)
at com.tencent.xinge.XingeApp.callRestful(XingeApp.java:94)
at com.tencent.xinge.XingeApp.pushApp(XingeApp.java:57)