我一直在稳步调试应用程序时,突然在联系服务器登录时开始收到空指针异常。如果我在设备上独立运行应用程序,则不会出现此问题。堆栈跟踪如下。似乎有一些迹象表明这是 Eclipse 的一个问题,但我对它为什么突然开始发生感到困惑。其他人正在成功联系此服务器。我已经尝试从问题之前恢复到代码库。我已经重新启动了我的机器,我的设备。尝试了 Eclipse 3.7 和 3.8。似乎没有任何效果。除了在 IntelliJ 上旋转之外,我可以在 Eclipse 上尝试什么吗?
我在 LG Revolution 2.3.4 上看到了这个问题。在 Droid 2.2 或 HDMaxx 4.0.4 上没有问题
Thread [<11> pool-2-thread-1] (Suspended (exception NullPointerException))
<VM does not provide monitor information>
Class.forName(String, boolean, ClassLoader) line: 234
Class.forName(String) line: 181
X509Certificate.<clinit>() line: 60
OpenSSLSocketImplWrapper(OpenSSLSocketImpl).verifyCertificateChain(byte[][], String) line: 658
NativeCrypto.SSL_do_handshake(int, FileDescriptor, NativeCrypto$SSLHandshakeCallbacks, int, boolean) line: not available [native method]
OpenSSLSocketImplWrapper(OpenSSLSocketImpl).startHandshake(boolean) line: 474
OpenSSLSocketImplWrapper(OpenSSLSocketImpl).startHandshake() line: 328
HttpConnection.setupSecureSocket(SSLSocketFactory, boolean) line: 185
HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(boolean) line: 433
HttpsURLConnectionImpl$HttpsEngine.makeConnection() line: 378
HttpsURLConnectionImpl$HttpsEngine(HttpURLConnectionImpl).connect() line: 205
HttpsURLConnectionImpl$HttpsEngine(HttpURLConnectionImpl).getOutputStream() line: 614
HttpsURLConnectionImpl.getOutputStream() line: 268
LoginRequest.performNetworkCall() line: 52
LoginRequest(RevelationRequest).loadDataFromNetwork() line: 28
LoginRequest(RevelationRequest).loadDataFromNetwork() line: 1
CachedSpiceRequest.loadDataFromNetwork() line: 28
RequestProcessor.processRequest(CachedSpiceRequest) line: 247
RequestProcessor$2.run() line: 172
Executors$RunnableAdapter.call() line: 444
FutureTask$Sync.innerRun() line: 306
FutureTask.run() line: 138
ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) line: 1088
ThreadPoolExecutor$Worker.run() line: 581
Thread.run() line: 1019