Multiple instances of a RequestFactory?

28 views
Skip to first unread message

Kevin Jordan

unread,
Aug 10, 2011, 4:10:57 PM8/10/11
to Google Web Toolkit
I'm making my code use one instance of my RequestFactory, but anywhere
else that I've missed so far that still creates another instance of it
through GWT.create seems to have no transport:
Cannot call method
'send__Ljava_lang_String_2Lcom_google_web_bindery_requestfactory_shared_RequestTransport
$TransportReceiver_2V' of null


Is this the desired behavior that you should only create it once? Not
sure if this is an issue in 2.4 as I haven't upgraded to that yet, but
it definitely is in 2.3.0. I'm switching to just using the one
instance, so it shouldn't be an issue for me after that, but it can be
sort of deceiving if this is the desired behavior since it's not noted
in the docs as far as I've seen.

Jeff Larsen

unread,
Aug 10, 2011, 4:39:30 PM8/10/11
to google-we...@googlegroups.com
On the ones you are creating new, are you giving them an EventBus? 

Kevin Jordan

unread,
Aug 10, 2011, 6:11:46 PM8/10/11
to Google Web Toolkit
No, I suppose I'm not. Is that where it gets the transport? Does it
normally default to null? If you don't initialize it on an EventBus
it doesn't get a transport?
Reply all
Reply to author
Forward
0 new messages