Re: How to troubleshoot NPE during UIBinder component initialization

2011-03-25 Thread grigory
Thanks, adding -gen folder compiler argument (and adding it to classpath) helped with both generated code and more informative error messages. On Mar 23, 11:35 am, Thomas Broyer t.bro...@gmail.com wrote: To debug generated code: pass the -gen argument to DevMode (e.g. -gen gen) so you can look

Re: How to troubleshoot NPE during UIBinder component initialization

2011-03-25 Thread grigory
Thanks, adding -gen folder compiler argument (and adding the folder to classpath when running in dev.mode) helped with both generated code and more informative error messages. I was missing inherited modules in the application gwt.xml file. On Mar 23, 11:35 am, Thomas Broyer t.bro...@gmail.com

Re: How to troubleshoot NPE during UIBinder component initialization

2011-03-24 Thread grigory
No. private static MainPageViewUiBinder uiBinder = GWT.create(MainPageViewUiBinder.class); @Inject public MainPageView(SignInOutLink signInOutLink, ShortMessageBox shortMessageBox) { this.signInOutLink = signInOutLink; this.shortMessageBox = shortMessageBox;

How to troubleshoot NPE during UIBinder component initialization

2011-03-23 Thread grigory
Having the NPE problem during view initialization I determined that this element @UiField(provided=true) ShortMessageBox shortMessageBox; causes it. When I remove it from the view everything works fine. The ShortMessageBox is defined UIBinder-based componet: public class ShortMessageBox

Re: How to troubleshoot NPE during UIBinder component initialization

2011-03-23 Thread Y2i
More likely you are calling createAndBindUi() before initializing shortMessageBox -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group,

Re: How to troubleshoot NPE during UIBinder component initialization

2011-03-23 Thread Thomas Broyer
To debug generated code: pass the -gen argument to DevMode (e.g. -gen gen) so you can look at the generated code (will be emitted to the given folder). Here, you could then have access to the generated createAndBindUi method and the line 18 where the error occurs. You can also add the folder to