java和android异常输出

发布于 2024-12-10 02:43:57 字数 1938 浏览 0 评论 0原文

当我运行android应用程序时,我遇到了异常,在下面,有一个字符串“E/AndroidRuntime(2361):... 8 more”,似乎还有其他消息没有' t print ,有人知道如何打印8个以上的消息吗?

谢谢!

E/AndroidRuntime(2361):致命异常:http2 E / AndroidRuntime(2361):java.lang.RuntimeException:javax.security.cert.CertificateException:org.apache.harmony.security.asn1.ASN1Exception:ASN.1 UTCTime:DER格式错误,标识符位于[139] E / AndroidRuntime(2361):在org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:674) E / AndroidRuntime(2361):在org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(本机方法) E / AndroidRuntime(2361):在org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:474) E / AndroidRuntime(2361):在org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:328) E / AndroidRuntime(2361):在android.net.http.CertificateChainValidator.doHandshakeAndValidateServerCertificates(CertificateChainValidator.java:86) E / AndroidRuntime(2361):在android.net.http.HttpsConnection.openConnection(HttpsConnection.java:309) E / AndroidRuntime(2361):在android.net.http.Connection.openHttpConnection(Connection.java:407) E / AndroidRuntime(2361):在android.net.http.Connection.processRequests(Connection.java:260) E / AndroidRuntime(2361):在android.net.http.ConnectionThread.run(ConnectionThread.java:142) E / AndroidRuntime(2361):引起:javax.security.cert.CertificateException:org.apache.harmony.security.asn1.ASN1Exception:ASN.1 UTCTime:DER格式错误,标识符位于[139] E / AndroidRuntime(2361):在javax.security.cert.X509Certificate.getInstance(X509Certificate.java:104) E / AndroidRuntime(2361):在javax.security.cert.X509Certificate.getInstance(X509Certificate.java:223) E / AndroidRuntime(2361):在org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:658) E/AndroidRuntime(2361): ... 8 更多

when i run the android app, i got a exception , at the below , there is a string " E/AndroidRuntime( 2361): ... 8 more" , it seems that there other message didn't
print , anyone know how to print the message of the 8 more?

thanks!

E/AndroidRuntime( 2361): FATAL EXCEPTION: http2
E/AndroidRuntime( 2361): java.lang.RuntimeException: javax.security.cert.CertificateException: org.apache.harmony.security.asn1.ASN1Exception: ASN.1 UTCTime: wrong format for DER, identifier at [139]
E/AndroidRuntime( 2361): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:674)
E/AndroidRuntime( 2361): at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)
E/AndroidRuntime( 2361): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:474)
E/AndroidRuntime( 2361): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:328)
E/AndroidRuntime( 2361): at android.net.http.CertificateChainValidator.doHandshakeAndValidateServerCertificates(CertificateChainValidator.java:86)
E/AndroidRuntime( 2361): at android.net.http.HttpsConnection.openConnection(HttpsConnection.java:309)
E/AndroidRuntime( 2361): at android.net.http.Connection.openHttpConnection(Connection.java:407)
E/AndroidRuntime( 2361): at android.net.http.Connection.processRequests(Connection.java:260)
E/AndroidRuntime( 2361): at android.net.http.ConnectionThread.run(ConnectionThread.java:142)
E/AndroidRuntime( 2361): Caused by: javax.security.cert.CertificateException: org.apache.harmony.security.asn1.ASN1Exception: ASN.1 UTCTime: wrong format for DER, identifier at [139]
E/AndroidRuntime( 2361): at javax.security.cert.X509Certificate.getInstance(X509Certificate.java:104)
E/AndroidRuntime( 2361): at javax.security.cert.X509Certificate.getInstance(X509Certificate.java:223)
E/AndroidRuntime( 2361): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:658)
E/AndroidRuntime( 2361): ... 8 more

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

呆橘 2024-12-17 02:43:57

您可以通过拉动 /data/anr/traces.txt 来查看完整的堆栈跟踪,如下所示 -

adb pull /data/anr/traces.txt

然后只需在编辑器中打开 traces.txt 即可享受!

You can view the full stack trace by pulling /data/anr/traces.txt as follows -

adb pull /data/anr/traces.txt

Then just open traces.txt in an editor and enjoy!!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文