Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWT/Eclipse/Plugin -- can no longer debug

    SmartGWT 2.5, GWT2.4, Eclipse 3.6, OmniWeb browser

    Since Firefox has made it impossible for Google to keep up with their plugin, I was using the OmniWeb browser. But now I am getting spurious errors like the one below or a ClassCastException performing the same operation when I debug or run with the development mode plugin.

    Code:
    Caused by: java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method '@com.smartgwt.client.util.JSOHelper::getAttributeAsObject(Lcom/google/gwt/core/client/JavaScriptObject;Ljava/lang/String;)': JS value of type int, expected java.lang.Object
        at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
        at com.smartgwt.client.util.JSOHelper.getAttributeAsObject(JSOHelper.java)
        at com.smartgwt.client.widgets.BaseWidget.getRef(BaseWidget.java:116)
        at com.smartgwt.client.widgets.Canvas.convertToCanvasArray(Canvas.java:7749)
        at com.smartgwt.client.widgets.layout.Layout.getMembers(Layout.java:1295)
        at com.onqueue.appweaver.client.v2.base.BaseUI.onSelectionChanged(BaseUI.java:189)
        at com.onqueue.appweaver.client.GridObjectsEdit.handleSelectionChanged(GridObjectsEdit.java:180)
        at com.onqueue.appweaver.client.GridObjectsEdit$1.onSelectionChanged(GridObjectsEdit.java:107)
        at com.smartgwt.client.widgets.grid.events.SelectionEvent.dispatch(SelectionEvent.java:98)
        at com.smartgwt.client.widgets.grid.events.SelectionEvent.dispatch(SelectionEvent.java:1)
        at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
        at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
        at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
        at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
        at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
        at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:67)
        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: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.GeneratedMethodAccessor49.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:680)
    Same operation (clicking on an item in a listgrid, causing new forms to appear) can also throw a ClassCastException:
    Code:
    Caused by: java.lang.ClassCastException: com.google.gwt.core.client.JavaScriptObject$ cannot be cast to com.smartgwt.client.widgets.BaseWidget
        at com.smartgwt.client.widgets.BaseWidget.getRef(BaseWidget.java:116)
        at com.smartgwt.client.widgets.Canvas.convertToCanvasArray(Canvas.java:7749)
        at com.smartgwt.client.widgets.layout.Layout.getMembers(Layout.java:1295)
        at com.onqueue.appweaver.client.v2.base.BaseUI.onSelectionChanged(BaseUI.java:189)
        at com.onqueue.appweaver.client.GridObjectsEdit.handleSelectionChanged(GridObjectsEdit.java:180)
        at com.onqueue.appweaver.client.GridObjectsEdit$1.onSelectionChanged(GridObjectsEdit.java:107)
        at com.smartgwt.client.widgets.grid.events.SelectionEvent.dispatch(SelectionEvent.java:98)
        at com.smartgwt.client.widgets.grid.events.SelectionEvent.dispatch(SelectionEvent.java:1)
        at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
        at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
        at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
        at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
        at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
        at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:67)
        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: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.GeneratedMethodAccessor51.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:680)
    I suspect my environment is somehow borked after upgrading to smartGWT 2.5 or something else. I'm looking for advice about how to reset/rebuild the environment.

    Thank you.

    #2
    Using an unsupported browser isn't going to help. Keep an older Firefox install around instead.

    Comment


      #3
      Good point. FireFox 6 has a GWT plugin available, I'll try to get that one back.

      Oh yeah. I'm on a Mac. Anyone know where old versions of FF for OSX exist?

      Found one here: http://mac.oldapps.com/firefox.php

      And that seems to work. Firefox 6.0.1 with the GPE from 20 Sep doesn't throw those exceptions.

      Thanks.
      Last edited by ohmi; 3 Oct 2011, 14:40.

      Comment

      Working...
      X