Here's my problem...
When running my app in development mode, everything works fine. I call
myAsyncProvider.get(myCallback) and the code makes it to the
onSuccess() method of my AsyncCallback eventually. [*]
When I compile my app to javascript, however, it make it all the way
to myAsyncProvider.get() and beyond. (I confirmed with a
Window.alert()), but the neither my onSuccess() nor my onFailure() is
executed. I also get the following javascript error (compiled with -
style DETAILED):
Uncaught ReferenceError:
java_lang_Class_createForClass__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_Class_2Ljava_lang_Class_2
is not defined
I've pasted the entire generated javascript here:
http://pastebin.com/iQ44u3bY
The error is on line 322.
I don't have a minimal example where this happens, but you can look at
my MVP implementation of the GWT sample at:
http://code.google.com/p/gwt-platform/
The SVN repository for this sample is:
http://gwt-platform.googlecode.com/svn/samples/gwtpsample
Starting this in development mode works, but you'll get the error when
compiled. The error also shows up in the AppEngine version at:
http://gwtpsample.appspot.com/
[*] In development mode, I've noticed that AsyncProvider.get() seems
to be blocking: the code after the get() is only executed after the
call to onSuccess(). Is this the normal behaviour?
--
You received this message because you are subscribed to the Google Groups "google-gin" group.
To post to this group, send email to googl...@googlegroups.com.
To unsubscribe from this group, send email to google-gin+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-gin?hl=en.
I'm not quite sure which -gen file you're talking about, but here's
what I think could be relevant:
AsyncLoader1*.java: http://pastebin.com/b1tfWD9m
AsyncLoader2*.java: http://pastebin.com/7Jh5Rqvv
MyGinjectorImpl.java: http://pastebin.com/cyamcuKg
They look pretty good to me, although I'm not quite sure what all
those $ signs do in java... Any other -gen file you'd like to see?
For info: It's AsyncProvider<MainPagePresenter> that fails. The
AsyncProvider<ResponsePresenter> works fine. Also, if I remove the
AsyncProvider<ResponsePresenter> then the
AsyncProvider<MainPagePresenter> works. (Maybe it's just flakyness
too...)
Cheers,
Philippe
On Apr 12, 2:35 pm, Peter Schmitt <ara...@gmail.com> wrote:
> I couldn't detect any issues in the code. No idea why the error occurs. It
> almost looks as if some piece of code is calling the GWT function
> createForClass[1] but can't find it. Maybe an issue with GWT's code
> splitting? I'd ask on the GWT list.
>
> [1]http://www.google.com/codesearch/p?hl=en#MTQ26449crI/com/google/gwt/e...
> > >> On Fri, Apr 9, 2010 at 12:42, PhilBeaudoin <philippe.beaud...@gmail.com
> > >>> google-gin+...@googlegroups.com<google-gin%2Bunsubscribe@googlegrou ps.com>
> > .
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/google-gin?hl=en.
>
> > >> --
> > >> You received this message because you are subscribed to the Google
> > Groups
> > >> "google-gin" group.
> > >> To post to this group, send email to googl...@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> google-gin+...@googlegroups.com<google-gin%2Bunsubscribe@googlegrou ps.com>
> > .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/google-gin?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "google-gin" group.
> > To post to this group, send email to googl...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-gin+...@googlegroups.com<google-gin%2Bunsubscribe@googlegrou ps.com>