java和android异常输出
当我运行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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过拉动 /data/anr/traces.txt 来查看完整的堆栈跟踪,如下所示 -
然后只需在编辑器中打开 traces.txt 即可享受!
You can view the full stack trace by pulling /data/anr/traces.txt as follows -
Then just open traces.txt in an editor and enjoy!!