Announcement

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

    fetchData(criteria) causing null pointer exception

    Hi,

    I am using SmartGWTPower 2.3 with SmartClient 7.0 Power Edition. I am trying to create a simple login procedure and eventually I would like to call a custom operation on the server for user authentication. The problem is when I call fetchData against my data source with any arguments I get a null pointer exception. If I call a pure fetchData with no arguments I get no error. I'm not getting much from the console to point me in the right direction. Here is what I am doing:

    Client code:
    Code:
    package t1.client;
    
    import com.google.gwt.core.client.EntryPoint;
    import com.smartgwt.client.data.Criteria;
    import com.smartgwt.client.data.DataSource;
    import com.smartgwt.client.types.VerticalAlignment;
    import com.smartgwt.client.widgets.IButton;
    import com.smartgwt.client.widgets.Window;
    import com.smartgwt.client.widgets.events.ClickEvent;
    import com.smartgwt.client.widgets.events.ClickHandler;
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.fields.PasswordItem;
    import com.smartgwt.client.widgets.form.fields.TextItem;
    
    
    public class login implements EntryPoint {
    
    	@Override
    	public void onModuleLoad() {
    
    		final Window winModal = new Window();  
    		winModal.setWidth(360);  
    		winModal.setHeight(115);  
    		winModal.setTitle("SmartClient Login");  
    		winModal.setShowMinimizeButton(false);  
    		winModal.setIsModal(true);  
    		winModal.setShowModalMask(true);  
    		winModal.centerInPage();  		
    		DynamicForm form = new DynamicForm();  
    		form.setHeight100();  
    		form.setWidth100();  
    		form.setPadding(5);  
    		form.setLayoutAlign(VerticalAlignment.BOTTOM);  
    		final TextItem userName = new TextItem();  
    		final PasswordItem password = new PasswordItem();
    		userName.setTitle("Username");
    		password.setTitle("Password");
    		IButton blogin = new IButton("Login");
    		blogin.addClickHandler(new ClickHandler() {
    
    			@Override
    			public void onClick(ClickEvent event) {
    				DataSource ds = new DataSource();
    				ds = DataSource.get("users");
    				Criteria userdata = new Criteria();
    				userdata.addCriteria("username", userName.getValue().toString());
    				userdata.addCriteria("password", password.getValue().toString());
    				ds.fetchData(userdata);
    			}
    		});
    		form.setFields(userName, password);  
    		winModal.addItem(form);
    		winModal.addItem(blogin);
    		winModal.show();  		
    		
    		
    		
    	}
    
    }
    war/shared/ds/users.ds.xml
    Code:
    <DataSource ID="users" serverType="sql" tableName="users">
    
        <fields>
            <field name="userid" type="sequence" title="Patid" hidden="true" primaryKey="true"/>
            <field name="username" type="text" length="32" title="Firstname"/>
            <field name="password" type="text" length="32" title="Lastname"/>
            <field name="firstname" type="text" length="32" title="Address1"/>
        </fields>
    <!-- I have the custom operation commented out until I get my exception solved so this is just a vanilla data source
    <operationBindings>
    <binding operationId="login" operationType="fetch" serverMethod="fetchlogin">
    <serverObject lookupStyle="new" className="t1.server.login"/>
    </binding>
    </operationBindings> -->
    
        <dataSourceVersion>1</dataSourceVersion>
        <generatedBy>7.0rc2/SDK Development Only 2009-05-30</generatedBy>
    </DataSource>
    When I click on the login button I get

    Code:
    "Uncaught exception escaped : com.google.gwt.core.client.JavaScriptException
    (null): null
    See the Development console log for details.
    Register a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling."
    and the console gives me

    Code:
    14:17:29.076 [ERROR] [t1] Uncaught exception escaped
    com.google.gwt.core.client.JavaScriptException: (null): null
        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.invokeNativeVoid(ModuleSpace.java:284)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
        at com.smartgwt.client.data.DataSource.fetchData(DataSource.java)
        at t1.client.login$1.onClick(login.java:48)
        at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:96)
        at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:1)
        at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)
        at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)
        at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178)
        at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:67)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        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.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
        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.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        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:636)
    It seems such a simple thing, any ideas where I could be going wrong?

    Thanks,
    Justin

    #2
    You refer to using "SmartGWTPower 2.3 with SmartClient 7.0 Power Edition". If you mixed two downloaded packages (SmartClient and SmartGWT) you could create a problem like this. Never do this - each package is self-contained.

    Comment


      #3
      Thanks for the quick response Isomorphic.

      So I created a new project, only configured it for SmartGWT Power 2.3 and ran the same code. I get exactly the same problem. Any ideas?

      Thanks again,
      Justin

      Comment


        #4
        Given that Power ships with tons of samples that show this API working, you most likely made a mistake during installation. Full instructions for adding to an existing project are here.

        Comment


          #5
          Thanks Isomorphic for the quick info again. I think there is a bug here.

          I have tested this configuration on Windows and Linux x64

          I downloaded and installed SmartGWT2.3, Eclipse 3.6, Sun JDK 1.6.0_21, and GWT 2.0.4 on both machines.

          I imported and configured the sample projects into eclipse as per the instructions

          As my test I then run the DataSourceDMI project

          On windows the project compiles and runs perfectly, however on Ubuntu 10.04 x64 I get the error described above.

          Comment


            #6
            Try deploying the included showcase.war directly to a Tomcat on Ubuntu and trying a few of the samples that call fetchData() (eg, SQL -> Dynamic Reporting). If there's no issue with that, it indicates either a corrupted project or a bug somewhere in the toolchain - your IDE or the GWT compiler.

            Comment


              #7
              Interesting!

              When I deploy the showcase.war on Ubuntu x64 it works perfectly.

              Then I use the build.xml file from the DataSourceDMI project to build the project and deploy it on a Tomcat server on my Ubuntu box and it also works perfectly.

              The only time it does not work perfectly is when running in dev mode in eclipse, something up with the web server there obviously

              Comment


                #8
                I also experience the same problem in just DEVMODE
                Windows x64
                SmartGWT 2.3 (nightly: 12/15/2010)

                Note: DataSource.fetchData(Criteria) works just fine, it's when ListGrid.fetchData(Criteria) is called that NPE is thrown.

                Does anyone know if there is a fix to DEVMODE? ...as I'd hate to have to build out in order to test.

                Comment


                  #9
                  Workaround so I could use DevMode was to do something like this

                  Code:
                          Criteria criteria = new Criteria();
                          criteria.addCriteria("batchId", batchId);
                          dataSource.fetchData(criteria, new DSCallback() {
                              public void execute(DSResponse response, Object rawData, DSRequest request) {
                                  listGrid.setData(response.getData());
                              }
                          });
                  Anyone at Isomorphic think of any reasons why I *should not* leave it this way?

                  Comment


                    #10
                    Originally posted by micsky
                    I also experience the same problem in just DEVMODE
                    Windows x64
                    SmartGWT 2.3 (nightly: 12/15/2010)

                    Note: DataSource.fetchData(Criteria) works just fine, it's when ListGrid.fetchData(Criteria) is called that NPE is thrown.

                    Does anyone know if there is a fix to DEVMODE? ...as I'd hate to have to build out in order to test.
                    Please post the stacktrace of the exception. Based on the code a NPE should not occur.

                    Comment


                      #11
                      StackTrace as requested

                      Code:
                      00:29:25.266 [ERROR] Uncaught exception escaped
                      com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses
                       	at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:214)
                       	at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103)
                       	at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:96)
                       	at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:66)
                       	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:157)
                       	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
                       	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
                       	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
                       	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:214)
                       	at sun.reflect.GeneratedMethodAccessor74.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.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
                       	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
                       	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                       	at java.lang.Thread.run(Thread.java:619)
                      Caused by: com.google.gwt.core.client.JavaScriptException: (null): null
                       	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
                       	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
                       	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
                       	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
                       	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
                       	at com.smartgwt.client.widgets.grid.ListGrid.fetchData(ListGrid.java)
                       	at com.bazaarvoice.webtestapp.client.pane.ResultSetPane.loadContent(ResultSetPane.java:35)
                       	at com.bazaarvoice.webtestapp.client.pane.ResultListPane.loadResultsBatch(ResultListPane.java:43)
                       	at com.bazaarvoice.webtestapp.client.pane.ResultListPane.access$0(ResultListPane.java:42)
                       	at com.bazaarvoice.webtestapp.client.pane.ResultListPane$ResultList$1.onRecordClick(ResultListPane.java:75)
                       	at com.smartgwt.client.widgets.grid.events.RecordClickEvent.dispatch(RecordClickEvent.java:98)
                       	at com.smartgwt.client.widgets.grid.events.RecordClickEvent.dispatch(RecordClickEvent.java:1)
                       	at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:204)
                       	at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103)
                       	at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:96)
                       	at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:66)
                       	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:157)
                       	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
                       	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
                       	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
                       	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:214)
                       	at sun.reflect.GeneratedMethodAccessor74.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.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
                       	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
                       	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                       	at java.lang.Thread.run(Thread.java:619)
                      Last edited by micsky; 15 Dec 2010, 13:09.

                      Comment


                        #12
                        I am seeing this same problem with a new, very simple module although the code in my old module (much much more complicated logic) still works fine.
                        Each of the following methods fail with the exact same exception, previously reported several times:
                        ListGrid.setAutoFetchData(true),
                        Listgrid.fetchData(),
                        ListGrid.fetchData(null),
                        ListGrid.fetchData(null, new DSCallback..),
                        DataSource.fetchData(),
                        DataSource.fetchData(null)
                        DataSource(new Criteria())
                        DataSource(new Criteria(), new DSCallback..)

                        This is the only method that works:

                        Code:
                        	grid.setDataSource(newDS);
                        	newDS.fetchData(null, new DSCallback() {
                        		public void execute(DSResponse response, Object rawData, DSRequest request) {
                        				// This shouldn't be necessary, but in  grid.fetchData() is bugged
                        				grid.setData(response.getData());
                        		}
                        	});
                        This is the only way I can smartGwt to return data although all the above methods work just fine in my other module/entry point in the same Eclipse project, indicating to me that it isn't a tool/environment setup issue.

                        smartGWT 2.4, Firefox, GWT 2.3 (loaded first )


                        Code:
                        com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses
                            at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
                            at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:66)
                            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:167)
                            at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
                            at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
                            at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132)
                            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:214)
                            at sun.reflect.GeneratedMethodAccessor42.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:167)
                            at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
                            at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
                            at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                            at java.lang.Thread.run(Thread.java:680)
                        Caused by: com.google.gwt.core.client.JavaScriptException: (null): null
                            at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
                            at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132)
                            at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
                            at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
                            at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
                            at com.smartgwt.client.data.DataSource.fetchData(DataSource.java)
                            at com.onqueue.showcase.client.ChannelTopTab$5.onClick(ChannelTopTab.java:132)
                            at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:98)
                            at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:1)
                            at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
                            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:66)
                            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:167)
                            at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
                            at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
                            at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132)
                            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:214)
                            at sun.reflect.GeneratedMethodAccessor42.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:167)
                            at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
                            at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
                            at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                            at java.lang.Thread.run(Thread.java:680)

                        Comment


                          #13
                          We've still never been able to reproduce this.

                          Can you try the latest nightly build? (smartclient.com/builds).

                          If you still get a problem, can you post a stack trace obtained from the Developer Console in compiled mode?

                          Comment


                            #14
                            My issue seems to be caused by some kind of error in the classes I derive from DataSource. Using DataSource directly, I do not see the exception. These derived classes set up GET/PUT/ADD/DELETE OperationBindings but something must not quite be right.

                            Comment

                            Working...
                            X