为什么有些java eclipse错误没有特定的代码行?

时间:2014-07-09 00:09:16

标签: java android eclipse

此错误在我看到的代码中没有代码行。如何追踪错误的来源?我在这里找到了一个解决问题的链接但是我甚至不知道在哪里放置代码,我有10000个类,手动找到问题听起来并不好玩。 Android : EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up

 07-08 20:02:35.078: W/webcore(11122): java.lang.Throwable: EventHub.removeMessages(int         what = 107) is not supported before the WebViewCore is set up.
  07-08 20:02:35.078: W/webcore(11122):     at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:1869)
 07-08 20:02:35.078: W/webcore(11122):  at android.webkit.WebViewCore$EventHub.access$8400(WebViewCore.java:978)
 07-08 20:02:35.078: W/webcore(11122):  at android.webkit.WebViewCore.removeMessages(WebViewCore.java:2061)
 07-08 20:02:35.078: W/webcore(11122):  at android.webkit.WebView.sendOurVisibleRect(WebView.java:3210)
 07-08 20:02:35.078: W/webcore(11122):  at android.webkit.ZoomManager.setZoomScale(ZoomManager.java:653)
 07-08 20:02:35.078: W/webcore(11122):  at android.webkit.ZoomManager.access$1700(ZoomManager.java:49)
 07-08 20:02:35.078: W/webcore(11122):  at android.webkit.ZoomManager$PostScale.run(ZoomManager.java:1096)
 07-08 20:02:35.078: W/webcore(11122):  at android.os.Handler.handleCallback(Handler.java:605)
 07-08 20:02:35.078: W/webcore(11122):  at android.os.Handler.dispatchMessage(Handler.java:92)
 7-08 20:02:35.078: W/webcore(11122):   at android.os.Looper.loop(Looper.java:154)
 07-08 20:02:35.078: W/webcore(11122):  at android.app.ActivityThread.main(ActivityThread.java:4945)
 07-08 20:02:35.078: W/webcore(11122):  at java.lang.reflect.Method.invokeNative(Native Method)
 07-08 20:02:35.078: W/webcore(11122):  at java.lang.reflect.Method.invoke(Method.java:511)
 07-08 20:02:35.078: W/webcore(11122):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
 7-08 20:02:35.078: W/webcore(11122):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
 07-08 20:02:35.078: W/webcore(11122):  at dalvik.system.NativeStart.main(Native Method)
 07-08 20:02:35.088: W/webcore(11122): java.lang.Throwable: EventHub.removeMessages(int what = 105) is not supported before the WebViewCore is set up.
 07-08 20:02:35.088: W/webcore(11122):  at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:1869)
 07-08 20:02:35.088: W/webcore(11122):  at android.webkit.WebViewCore$EventHub.access$8400(WebViewCore.java:978)
 07-08 20:02:35.088: W/webcore(11122):  at android.webkit.WebViewCore.removeMessages(WebViewCore.java:2061)
 07-08 20:02:35.088: W/webcore(11122):  at android.webkit.WebView.sendViewSizeZoom(WebView.java:3430)
 07-08 20:02:35.088: W/webcore(11122):  at android.webkit.ZoomManager.setZoomScale(ZoomManager.java:659)
 07-08 20:02:35.088: W/webcore(11122):  at android.webkit.ZoomManager.access$1700(ZoomManager.java:49)
 07-08 20:02:35.088: W/webcore(11122):  at android.webkit.ZoomManager$PostScale.run(ZoomManager.java:1096)
 07-08 20:02:35.088: W/webcore(11122):  at android.os.Handler.handleCallback(Handler.java:605)
 07-08 20:02:35.088: W/webcore(11122):  at android.os.Handler.dispatchMessage(Handler.java:92)
 07-08 20:02:35.088: W/webcore(11122):  at android.os.Looper.loop(Looper.java:154)
 07-08 20:02:35.088: W/webcore(11122):  at android.app.ActivityThread.main(ActivityThread.java:4945)
 07-08 20:02:35.088: W/webcore(11122):  at java.lang.reflect.Method.invokeNative(Native Method)
 07-08 20:02:35.088: W/webcore(11122):  at java.lang.reflect.Method.invoke(Method.java:511)
 07-08 20:02:35.088: W/webcore(11122):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
 07-08 20:02:35.088: W/webcore(11122):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
 07-08 20:02:35.088: W/webcore(11122):  at dalvik.system.NativeStart.main(Native Method)

1 个答案:

答案 0 :(得分:1)

在全球范围内搜索您正在使用网页浏览的地方的代码。然后检查您传递的URL。当您将URL传递给webview而未指定协议时,通常会发生此错误。

例如,改变:
stackoverflow.com/questions

http://stackoverflow.com/questions