Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Exceptions thrown when instantiating TileGrid

$
0
0
Hi,

Working with SmartGWT 4.1p nightly 2014-06-14, we face a set of exceptions when instantiating a TileGrid. This looks like a regression as the previous release we were using didn't have such problem (package from April).

I narrowed it down to a simple test case:

Code:

@Override
        public void onModuleLoad() {
               
                TileGrid tileGrid = new TileGrid();

                DetailViewerField pictureField = new DetailViewerField("ICON");
                pictureField.setType("image"); 
        pictureField.setImageWidth(186); 
        pictureField.setImageHeight(120); 
       
        DetailViewerField nameField = new DetailViewerField("name"); 
        DetailViewerField priceField = new DetailViewerField("price"); 
       
        tileGrid.setTileWidth(194); 
        tileGrid.setTileHeight(165); 
        tileGrid.setHeight(400); 
        tileGrid.setWidth100(); 
        tileGrid.setCanReorderTiles(true); 
        tileGrid.setBackgroundColor("white");
        //tileGrid.setShowAllRecords(true);       
 
        tileGrid.setFields(pictureField, nameField, priceField); 

        tileGrid.draw();
        }

Exceptions thrown (4 times):
Code:

com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(17269), JavaScript object(17228), JavaScript object(17856)]): Unable to get property 'get' of undefined or null reference
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
        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.GeneratedMethodAccessor116.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:662)

Notes: commenting out setShowAllRecords(true) solves the issue, but only in the test case.
TileGrid is still displayed normally, I didn't see any functional impact.

Regards
Antoine

Viewing all articles
Browse latest Browse all 4756

Trending Articles