It was through looking through the GWT source that I realized the
source of my error, so that's definitely a good pointer.

It would have helped me if the error message was:
Invalid request parameterization:
edu.hope.cs.surveys.dao.pojo.Tag must extend EntityProxy

I think that would be a valid error message, right?  Adding "must
extend EntityProxy" would seem to make it quite clear what had gone
wrong.

Ryan

On Jun 7, 5:05 pm, Thomas Broyer <[email protected]> wrote:
> On Tuesday, June 7, 2011 9:56:10 PM UTC+2, Ryan McFall wrote:
>
> > For others who might see this message, I quickly discovered my
> > problem.  In the TagRequest class (which extends RequestContext), the
> > method getTags is declared to return a List<Tag>.  That should have
> > been List<ITag>, as ITag is the interface which extends EntityProxy.
> > The error message seems to indicate to me there is something wrong
> > with the Tag class, rather than the true source of the error.  Perhaps
> > the error message could have been different, but I place at least 90%
> > of the blame squarely on my own shoulders :-)
>
> Searching for the error message in GWT's code [1] which lead to this method
> [2], where you can see what types are checked: "Simple values, like Integer
> and String", "EntityProxy and ValueProxy return types", Collection, or Map.
> But well, I an't find a way to make this message clearer without making it
> too long: "invalid Request parameterization" clearly means the type
> parameter is wrong, not what's *in* that type, but the type itself (i.e. the
> classes or interfaces it extends)
>
> [1]http://www.google.com/codesearch?q=%22Invalid+Request+parameterizatio...
>
> [2]http://www.google.com/codesearch/p#A1edwVHBClQ/user/src/com/google/we...

-- 
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