I have been trying to figure out this error for past two days but I have no
idea what is happening. I am totally lost. I have stripped out everything
from the project and still no lock. Here is what I have:
1.
package test.webclient.widget;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
public interface ImageResourceBundle extends ClientBundle{
public static final ImageResourceBundle INSTANCE =
GWT.create(ImageResourceBundle.class);
@Source("rtick.gif")
ImageResource rtick();
}
In my Eclipse, I have put *rtick.gif* file in
*src/test/webclient/widget*folder. If I don't put it here, then Eclipse shows a
red squiggly underline
under *@Source("rtick.gif")* so I know it is looking for it at this
location.
However, when I do *Google -> Compile* on the project, I get the following
exception:
Can't create ICOFile: Can't read bytes: 4
Computing all possible rebind results for
'test.webclient.widget.ImageResourceBundle'
Rebinding test.webclient.widget.ImageResourceBundle
Invoking generator
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
[ERROR] Generator
'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' threw
an exception while rebinding 'test.webclient.widget.ImageResourceBundle'
java.lang.NullPointerException
at
com.google.gwt.resources.rg.ImageResourceGenerator$BundledImage.addImage(ImageResourceGenerator.java:99)
I have put this rtick.gif pretty much everywhere in the project. So I don't
know where is it looking for this file?
If I don't create the ImageResourceBundle, the project compiles file and
works well in the dev mode as well. Everything works. Except this
ImageResourceBundle thing.
I also tried adding a new ClientBundle using the wizard. But that same
error happens to that as well.
Please please please help!
thank you for reading.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.