-
26 Oct 2011 6:42 PM #1
Deferred Binding error when trying to create a new Grid
Deferred Binding error when trying to create a new Grid
This is the error I get when I try to create a new grid. I'm running GWT 2.4 with STS and the stock Jetty server.
[ERROR] [applicationScaffold] - Errors in 'jar:file:/Developer/Library/Frameworks/gxt-3.0.0-dp5/gxt-3.0.0-SNAPSHOT.jar!/com/sencha/gxt/core/client/util/IconHelper.java'
[ERROR] [applicationScaffold] - Line 30: The constructor ImageResourcePrototype(null, SafeUri, int, int, int, int, boolean, boolean) is undefined
If you check the offending file it is passing a hardcoded null instead of a String. Here is the function call:
ImageResourcePrototype(null, url, 0, 0, width, height, false, false);
And here is the method signature:
public ImageResourcePrototype(String name, SafeUri url, int left, int top, int width, int height, boolean animated, boolean lossy)
It looks like this may be a problem with deferred binding or a compiler.
Here's another error I get:
[ERROR] [applicationScaffold] - Errors in 'jar:file:/Developer/Library/Frameworks/gxt-3.0.0-dp5/gxt-3.0.0-SNAPSHOT.jar!/com/sencha/gxt/theme/base/client/grid/GridBaseAppearance.java'
[ERROR] [applicationScaffold] - Line 34: The attribute preventInlining is undefined for the annotation type ImageResource.ImageOptions
It looks like the annotation is defined, so why this compiler error?
Thanks
-
27 Oct 2011 2:31 AM #2
Can you make sure that you really use GWT 2.4? Both errors you get where added in some newer GWT release and GWT 2.4 has this classes. Looks like you are not using GWT 2.4
-
27 Oct 2011 7:22 AM #3
I had two silly mistakes. 1) I had included gwt 2.4 jars in my class path but my pom.xml was including gwt 2.3 jars and 2) the gwt-servlet jar I was including in my class path wasn't even 2.4!
You guys are off the hook. Thanks for pointing me in the right direction!
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote