Hi,
We are upgrading from v9.0p_2013-07-17/Pro Deployment to v9.0p_2013-09-02/Pro Deployment 2013-09-02 and are hitting a nullpointer after using the new version.
This is the error trace:
I did some backtracing and it seems that it starts happening in v9.0p_2013-07-28/Pro Deployment 2013-07-28 already.
The error is thrown while a page/canvas is being loaded/build that contains a listgird. The call to 'getHeaderContextMenuItems' inspects the menuitems which do not have an ID set at that time - somehow the system thinks that they do and things go wrong.
Thanks for investigating.
We are upgrading from v9.0p_2013-07-17/Pro Deployment to v9.0p_2013-09-02/Pro Deployment 2013-09-02 and are hitting a nullpointer after using the new version.
This is the error trace:
Code:
com.smartgwt.client.util.IDManager.validateID(IDManager.java:68) com.smartgwt.client.util.IDManager.registerID(IDManager.java:118) com.smartgwt.client.widgets.BaseWidget.internalSetID(BaseWidget.java:387) com.smartgwt.client.widgets.menu.Menu.setJavaScriptObject(Menu.java:106) com.smartgwt.client.widgets.menu.Menu.<init>(Menu.java:143) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338) com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219) com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571) com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279) com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) com.smartgwt.client.widgets.menu.Menu.getOrCreateRef(Menu.java) com.smartgwt.client.widgets.menu.MenuItem.getSubmenu(MenuItem.java:416) foo.bar.custom.widgets.FooListGrid.getHeaderContextMenuItems(FooListGrid.java:1249) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338) com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219) com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571) com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279) com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) com.google.gwt.core.client.impl.Impl.apply(Impl.java) com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242) sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293) com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547) com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364) java.lang.Thread.run(Thread.java:662)
The error is thrown while a page/canvas is being loaded/build that contains a listgird. The call to 'getHeaderContextMenuItems' inspects the menuitems which do not have an ID set at that time - somehow the system thinks that they do and things go wrong.
Thanks for investigating.
Comment