JavaScriptException:(TypeError):无法调用null的方法'getBoundingClientRect'

时间:2013-07-11 04:44:10

标签: java gwt

在Errai / GWT应用程序中使用gwt-tour library时会抛出此错误:

  

com.google.gwt.core.client.JavaScriptException:(TypeError):不能   调用方法'getBoundingClientRect'为null   com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)     在   com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)     在   com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)     在   com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)     在   com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)     在com.eemi.gwt.tour.client.GwtTour._createCallOut(GwtTour.java)at   com.eemi.gwt.tour.client.GwtTour.createCallOut(GwtTour.java:106)at at   app.client.local.UIController $ 1.execute(UIController.java:46)at   com.google.gwt.core.client.impl.SchedulerImpl $任务$ .executeScheduled $(SchedulerImpl.java:50)     在   com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:228)     在   com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(SchedulerImpl.java:388)     在   com.google.gwt.core.client.impl.SchedulerImpl $ Flusher.execute(SchedulerImpl.java:78)     在   com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:138)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:601)at   com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)     在   com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)     在   com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)     在   com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)     在   com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)     在   com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)     在   com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)     在   com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)     在   com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)     在com.google.gwt.core.client.impl.Impl.apply(Impl.java)at   com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)at at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:601)at   com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)     在   com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)     在   com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)     在   com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)     在   com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)     在   com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)     在java.lang.Thread.run(Thread.java:722)

此错误意味着什么:

JavaScriptException: (TypeError): Cannot call method 'getBoundingClientRect' of null 

0 个答案:

没有答案