I just upgraded my application from GWT 2.3 to GWT 2.5.1 and SmartGWT 4p and viewing the app with IE 8.
The error occurs when I am just runnign the application and when I use the debugger.
Here is the call that fails.
private static native void setReportKeyonFlash(String reportkey) /*-{
var elem = @com.nscorp.npw.web.shared.event.AppEvent::FLASHNAME;
var swf = $doc[elem];
swf.setReportKey(reportkey);
}-*/;
The odd item is that this method is called a few times successfully. However after a number of clicks in the application I get the following failure. I have identified that failure is occurring prior to the Flex component being called. And it appears to come from inside BrowserChannelServer.invokeJavascript
This code runs successful in GWT 2.3 with SmartGWT 2.5.
When looking at the Javascript I can see all of the mapping between JS and the Flex component. After the error all of the mappings are null.
GWT error has occuredException caught: (TypeError) @com.nscorp.npw.web.shared.event.AppEvent::setReportKeyonFlash(Ljava/lang/String;)([string: 'dp_01_status_report_key']): Object doesn't support this property or method
com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) @com.nscorp.npw.web.shared.event.AppEvent::setReportKeyonFlash(Ljava/lang/String;)([string: 'dp_01_status_report_key']): Object doesn't support this property or method
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:80)
at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)
at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:87)
at com.google.gwt.user.client.impl.HistoryImpl.newItem(HistoryImpl.java:131)
at com.google.gwt.user.client.History.newItem(History.java:179)
at com.google.gwt.user.client.History.newItem(History.java:164)
at com.nscorp.npw.web.shared.URLUtils.createAndSetURL(URLUtils.java:54)
at com.nscorp.npw.web.shared.URLUtils.createAndSetURL(URLUtils.java:38)
at com.nscorp.npw.web.client.ModuleFactory.setTab(ModuleFactory.java:106)
at com.nscorp.npw.web.shared.linkadapter.LinkManager.navigate(LinkManager.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
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:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
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:242)
at sun.reflect.GeneratedMethodAccessor58.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:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:619)
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment