Dear all,
we tried to call interface methods with parameters(e.g. String) and
got the following exception within gwt development mode(showCoursePlan
is the method name we want to call with a string "test"):
00:00:35,298 [ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError):
gwtElem.showCoursePlan is not a function fileName:
http://127.0.0.1:8888
lineNumber: 12 stack: ("test")@http://127.0.0.1:8888:12 @:0 ([object
GWTJavaObject],35323905,[object XMLHttpRequest])@
http://127.0.0.1:8888/
WebApp/hosted.html?WebApp:56 ([object Event])@http://127.0.0.1:8888:90
((function () {__gwt_makeJavaInvoke(1)(handler, 35323905, _this);}),
[object XMLHttpRequest],[object Object])@http://127.0.0.1:8888:38 @:0
(null,65560,(function () {__gwt_makeJavaInvoke(1)(handler, 35323905,
_this);}),[object XMLHttpRequest],[object Object])@http://
127.0.0.1:8888/WebApp/hosted.html?WebApp:56 ([object Event])@http://
127.0.0.1:8888:20 at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
195) at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120) at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507) at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264) at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at
sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25) at java.lang.reflect.Method.invoke(Method.java:597) at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71) at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157) at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:
1669) at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
401) at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222) at java.lang.Thread.run(Thread.java:619)
Can you help me on this issue?
We are using:
Google Web Toolkit 2.0.4
GWT AI 0.2
Java JDK 1.6
Firefox 3.6.13
Regards,
Mark