Re: Need help with Can't create ICOFile: Can't read bytes: 4 while creating ClientBundle
I finally found the problem.
In my project I am using a third party library that uses some other third party library for reading ICO files. It was a class in this file that was throwing a NPE. I have no idea why that class was being referred anyway because I am not using ICO files at all. So I surgically remove those classes for the jar and it worked.
I couldn't figure out how to debug the compile part in Eclipse. So I converted the project to Maven format and loaded it up in Netbeans. But when I loaded it up there, the exception was not thrown at compile time. I was thrown at run time!
It was bad. I wasted all my weekend on this stupid problem.
On Sunday, May 19, 2013 5:07:53 PM UTC-4, andy_p1 wrote:
Thank you for your reply, Jens.Yes, I think I am putting the image in the same package/location where my clientbundle class is. Otherwise, Eclipse shows error.Regarding ICO, you are right. I thought the same and so just to make sure I created a fresh gif and png and tried with those. But it shows the same message. I don't know why it says ICOFile in the message ("Can't create ICOFile: Can't read bytes: 1") but I am pretty sure that it is not an ico file. BTW, the number of bytes in the message seems random. I have seen it say Can't read bytes: 2 as well as ICOFile: Can't read bytes: 4.Another thing is, when I use the same gif and png in style sheet, it works fine. i.e. when I set the following style for a label , it shows up fine:.testStyle{background-image: url("rtick.gif");background-repeat: no-repeat;padding-left: 15px;border:none;}Of course, I had to put it in another location for the style, but it worked. So the image file itselfs seems to be ok.Regarding breakpoint, that's a good suggestion but I am not sure how to do that because the error is coming at compile time itself! I get the error when I do Google ->GWT Compile. Can you please tell me how to do the compilation in debug mode?thank you.
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home