Random-seeming Uncaught exception escaped with no reference to my code
Every so often, while running in Dev Mode, I'll get this exception (or something like it). Is this some under the hood local-only issue I don't need to worry about, or does it hint as something I should fix? Is there anything I can do about it? Uncaught exception escaped com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.query.client.js.JsCache::length()': JS value of type boolean, expected int at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:247) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75) at com.google.gwt.query.client.js.JsCache$.length$(JsCache.java) at com.google.gwt.query.client.js.JsObjectArray$.length$(JsObjectArray.java:52) at com.google.gwt.query.client.plugins.events.EventsListener.dispatchEvent(EventsListener.java:372) at com.google.gwt.query.client.plugins.events.EventsListener.onBrowserEvent(EventsListener.java:435) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307) at sun.reflect.GeneratedMethodAccessor65.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.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) 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:213) at sun.reflect.GeneratedMethodAccessor60.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:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:662) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Af7k-0f7aU4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Random-seeming Uncaught exception escaped with no reference to my code
Chrome has been known to randomly throw those exceptions. That is assuming you are running chrome. See: http://code.google.com/p/google-web-toolkit/issues/detail?id=5778#c65, it might be related to the issue you are experiencing. Best regards, Alfredo On Sat, Aug 4, 2012 at 4:41 AM, Richard richard.wat...@gmail.com wrote: Every so often, while running in Dev Mode, I'll get this exception (or something like it). Is this some under the hood local-only issue I don't need to worry about, or does it hint as something I should fix? Is there anything I can do about it? Uncaught exception escaped com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.query.client.js.JsCache::length()': JS value of type boolean, expected int at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:247) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75) at com.google.gwt.query.client.js.JsCache$.length$(JsCache.java) at com.google.gwt.query.client.js.JsObjectArray$.length$(JsObjectArray.java:52) at com.google.gwt.query.client.plugins.events.EventsListener.dispatchEvent(EventsListener.java:372) at com.google.gwt.query.client.plugins.events.EventsListener.onBrowserEvent(EventsListener.java:435) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307) at sun.reflect.GeneratedMethodAccessor65.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.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) 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:213) at sun.reflect.GeneratedMethodAccessor60.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:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:662) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Af7k-0f7aU4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable - ListDataProvider - Table not updating on subsequent calls
I am still investigating here on my side, but I have a feeling I might be missing the obvious so if someone knows what I am missing or potentially doing wrong please let me know. Elements: - A CellTable - A ListDataProvider - RequestFactory - A refresh button Scenario: - The CellTable is populated via RequestFactory. - On the first load, all data is shown in the table (all rows are populated) - I have a button (refresh). - The Table can be edited, so as an example I edit the first row, first cell and simply change the text to something else. - I click on the refresh button and load a brand new list of proxies from the server using request factory. - I clear my provider's list and add the new proxies. - The new list doesn't replace the old values (previously edited). Curiosity: I've noticed that after I click refresh, although at first glance the edited cell didn't change, if I click on it once or twice, it'll correctly display the last value loaded from the server. This is very unusual behavior. I've also tried to invoke refresh and flush on the provider itself after adding the new set of proxies. Presenter's code that is invoked for the first load and subsequent ones is shown below: @Override public void readAll() { destinationContext = factory.getRequestFactory().createDestinationContext(); destinationContext.findAll().with(cards, cards.trunks, daysOfWeek, daysOfWeek.hourlySchedule, holidays) .fire(new ReceiverListDestinationProxy() { @Override public void onSuccess(ListDestinationProxy proxies) { view.getDestinationCellTable().getProvider().getList().clear(); view.getDestinationCellTable().getProvider().getList().addAll(proxies); if (proxies != null proxies.size() 0) { view.getDestinationCellTable().getCellTable().getSelectionModel().setSelected(proxies.get(0), true); } } }); } I am still investigating here, but as I previously said if you see that I am simply missing the obvious I would appreciate it if you can let me know. Thank you in advance, Alfredo -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT ui:style how big of a bad idea (or not) is it to use it?
Hi, I am wondering how big a mistake is it to take advantage of the ui:style feature in ui binder interfaces? Say your styles are all comprised within ui:style tags, and you always refer to them using the {style.} notation. Now, on the browser, this shall all become obfuscated after gwt:compilation, the style name are not recognizable. If we were to follow this approach for every style used on the application, wouldn't we also lose the potential of navigating the page dom with css selectors for example using library such as the Jquery gwt wrapper? What's the policy here? One should never depend on the defined style names for executing, say, presentation logic such as collapsing dom elements? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/scG1vJiEg38J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Google Geocoder
Thanks a lot Joseph , but I'm new with GWT ! Can you give me an example of how to use the Geocoder API with GWT ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/q0onWtNvel8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there any chart library for GWT?
Hi, GWT-RCharts( http://code.google.com/p/gwt-rcharts ) and google visualization API could be a option for interactive charts on client side. On Tuesday, 8 January 2008 03:14:03 UTC+5:30, Sarah kho wrote: Hi how we can resolve charting requirement when we use GWT, is there any sample code for it? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TfVMua6jICwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Google Geocoder
The following should get you started, but could have found them through Google. - Communicating with the server - Example of using JSONPRequestBuilderhttp://stackoverflow.com/questions/2445057/gwt-how-can-i-use-jsonprequestbuilder-to-handle-a-json-response-of-a-list - Geocoder API Requestshttps://developers.google.com/maps/documentation/geocoding/#GeocodingRequests Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Google Geocoder
The following should get you started, but could have found them through Google. - Communicating with the serverhttps://developers.google.com/web-toolkit/doc/latest/DevGuideServerCommunication#DevGuideHttpRequests - Example of using JSONPRequestBuilderhttp://stackoverflow.com/questions/2445057/gwt-how-can-i-use-jsonprequestbuilder-to-handle-a-json-response-of-a-list - Geocoder API Requestshttps://developers.google.com/maps/documentation/geocoding/#GeocodingRequests Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/UIQ4UE1U5iEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Random-seeming Uncaught exception escaped with no reference to my code
That's probably it, thanks Alfredo. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dhUvqY1zb2kJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT ui:style how big of a bad idea (or not) is it to use it?
To start with CSSResource is awesome and I highly recommend using it. It forces you to program *better*. Should you really be trying to pull elements out of the page depending on their CSS names? Seems like a bad day if you ever want to rebrand or dress up your UI. If CSS is the graphical dressing of the site, separate those concerns from the functional aspects. Further, using those CSSResource interfaces keeps you from ever using string literals in your Java code or UiBinders, which is a best practice. Additionally, with UI Automation tests our testers are tempted to use ugly selectors based on class names. This is a poor idea because then a class name changes a year later and 400 tests fail, even though functionally the site works just as well as before. The real question here is what you want to do with your CSS. If you want to apply rules the site over, then don't use ui:style, but rather a CSSResource interface. This way that interface can be used by many widgets' UiBinders. However bespoke, small CSS tweaks do fit nicely into ui:style and you can always move them out to a CSSResource interface in the future if you want to use them multiple places. Note, from my experience you cannot well handle CSS inheritance/overriding between widgets with ui:style, but you can with standalone CSSResource interfaces. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/sEZBJmtPZ0sJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to vertically and horizontally centre the form panel inside a scroll panel
Thanks. Your method works fine and it is the only solution I can have right now. By the way, could you please give me some example about how to add resize handler to my page so that myform's position is always in the center even if the window is resized? On Friday, 3 August 2012 10:47:13 UTC-4, Andrei wrote: Forgot to mention that you have to attach a resize handler to your page, and call this method each time a page is resized. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/XxkdGyIfZzcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there any chart library for GWT?
Try this, Interactive, GWT compatible, touch screen ready, full animation. trust me, nothing better than this https://www.sencha.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.