Thanks, you got me on the right rack.  I didn't realize that more
information on the exceptions was available in the dev mode console of
eclipse.  My domain entity objects had some Boolean accessors which I
had named isProperty() instead of getProperty().  I changed all of
those, and also made the domain service methods 'static' like you
suggested.

Now the application is running, but when it fires a request for
UserInformation, I get a null pointer exception.  After debugging, it
gets into AbstractRequestContext.doFire(receiver) method, which
attempts to call requestFactory.getRequestTransport().send(...).
requestFactory.getRequestTransport() returns NULL so it throws a Null
Pointer Exception.  Do I need to configure the transport somewhere?  I
didn't see anything in the documentation or the Expenses sample app.

The portion of my code that is initiating this is (~ line 60) in:
http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src/com/eatrightapp/publicweb/client/activity/UserAccountsActivity.java

On Nov 17, 6:28 pm, Thomas Broyer <[email protected]> wrote:
> On 17 nov, 21:06, Nicholas <[email protected]> wrote:
>
>
>
>
>
>
>
>
>
> > I am working on a small GWT app (I have used GWT in the past but it
> > was a while ago), trying to learn the new MVP and RequestFactory.  I
> > am not sure if I am just approaching this wrong, or have some error I
> > can't spot.  When I add a call to instantiate my app's RequestFactory,
> > it no longer runs.  It gives me "Deferred Binding Failed" for my
> > request factory.
>
> > I went back and double-checked the domain / entity objects and I think
> > I have the required pattern in place (implicit no-arg constructor,
> > getId(), findEntity(id) and getVersion()).
>
> > Some of the relevant code:
>
> > Domain 
> > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > EntityRequest and Proxy 
> > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > This class instantiates the RequestFactory (line 35) and passes it to
> > the Activity (line 
> > 41)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > This class is where I have a method utilizing the request factory. (~
> > line 
> > 49)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> >http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > Any ideas?
>
> Your "service methods" in your domain objects aren't static, but
> aren't declared as InstanceRequest in your RequestContext.
> (don't you have more specific errors than "deferred binding failed"?)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to