BilibiliDown icon indicating copy to clipboard operation
BilibiliDown copied to clipboard

如果软件在检查更新时出了问题,请看这里

Open nICEnnnnnnnLee opened this issue 2 years ago • 0 comments

如果你是用的是精简版的jre,在更新的时候:

  • 弹框提示 出现了异常,异常原因为org.json.JSONException:A JSONArray text must start with '[' at 0[charactor 1 line 1]
  • debug出现log
发送GET请求出现异常!javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
        at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:128)
        at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
        at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:308)
        at java.base/sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:279)
        at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:181)
        at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:164)
        at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1152)
        at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1063)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:402)
        at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567)
        at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:163)
        at nicelee.bilibili.util.HttpRequestUtil.getContent(HttpRequestUtil.java:299)
        at nicelee.bilibili.util.HttpRequestUtil.getContent(HttpRequestUtil.java:283)
        at nicelee.bilibili.util.VersionManagerUtil.queryLatestVersion(VersionManagerUtil.java:40)
        at nicelee.ui.item.MJMenuBar$12$1.run(MJMenuBar.java:379)
        at java.base/java.lang.Thread.run(Thread.java:834)

请修改run-UI.bat

将
start javaw -Dfile.encoding=utf-8 -jar INeedBiliAV.jar
改为
start javaw -Dfile.encoding=utf-8 -Dhttps.protocols=TLSv1.2 -jar INeedBiliAV.jar

请修改run-UI-debug.bat

将
java -Dfile.encoding=utf-8 -jar INeedBiliAV.jar
改为
java -Dfile.encoding=utf-8 -Dhttps.protocols=TLSv1.2 -jar INeedBiliAV.jar

nICEnnnnnnnLee avatar Jul 14 '22 15:07 nICEnnnnnnnLee